ThemeShaper Forums » Thematic

[closed]

Remove link from Author

(7 posts)
  • Started 4 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 4 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);
    }
    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 4 years ago #
  3. That's great! Exactly what I was looking for! Many thanks.

    Posted 4 years ago #
  4. n8w
    Member

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

    Posted 4 years ago #
  6. 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 4 years ago #
  7. I'm glad you figured it out. Thanks for sharing your variation of the solution :)

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.