ThemeShaper Forums » Thematic


Remove link from Author

(7 posts)
  • Started 11 years ago by cehwitham
  • Latest reply from em hr
  • This topic is resolved
  1. 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?

    Posted 11 years ago #
  2. thematic_postheader() is the function you're looking for inside that function there is a filter thematic_postheader_postmeta
    so try this

    function child_remove_author_link($output) {
    	return preg_replace(array('/<a(.*?)>/', '/<\/a>/'),'', $output,1);

    and style this back to the default if you like

    .entry-meta .author {
    Posted 11 years ago #
  3. That's great! Exactly what I was looking for! Many thanks.

    Posted 11 years ago #
  4. n8w

    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 11 years ago #
  5. How would I do this to remove the link around the post title?

    Posted 11 years ago #
  6. Actually, I think I figured it out:

    function child_remove_title_link($output) {
    	return preg_replace(array('/<a(.*?)>/', '/<\/a>/'),'', $output,1);
    Posted 11 years ago #
  7. I'm glad you figured it out. Thanks for sharing your variation of the solution :)

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.