I want to leave the By (Author) | Published: (Date) | Edit as it is in the Post Meta section but I want to remove the link from the Author, currently it links to an Author Archive page. I've had a dig around trying to work out which function I need to remove then replace / alter but I've not figured it out yet. Any suggestions please?
ThemeShaper Forums » Thematic
[closed]
Remove link from Author
(7 posts)-
Posted 3 years ago #
-
thematic_postheader() is the function you're looking for inside that function there is a filter thematic_postheader_postmeta
so try thisfunction child_remove_author_link($output) { return preg_replace(array('/<a(.*?)>/', '/<\/a>/'),'', $output,1); } add_filter('thematic_postheader_postmeta','child_remove_author_link');and style this back to the default if you like
.entry-meta .author { font-size:11px; font-style:normal; letter-spacing:0.05em; text-transform:uppercase;Posted 3 years ago # -
That's great! Exactly what I was looking for! Many thanks.
Posted 3 years ago # -
This is almost what I am looking for ... how do I keep the link .. but change it to the author url link instead of the archive
Posted 3 years ago # -
How would I do this to remove the link around the post title?
Posted 3 years ago # -
Actually, I think I figured it out:
<?php function child_remove_title_link($output) { return preg_replace(array('/<a(.*?)>/', '/<\/a>/'),'', $output,1); } add_filter('thematic_postheader_posttitle','child_remove_title_link'); ?>Posted 3 years ago # -
I'm glad you figured it out. Thanks for sharing your variation of the solution :)
Posted 3 years ago #
Topic Closed
This topic has been closed to new replies.