WordPress.org

Support

Support » Themes and Templates » [Resolved] Post Titles not Links

[Resolved] Post Titles not Links

  • geckoinbelize
    Member

    @geckoinbelize

    I’m working through the format edits on all my historical posts to use this theme – slowly! When a user selects a category from the top menu it displays the relevant posts, now in alphabetical order as I require. But I do not want the titles of each post to be links to the post – there is no other info to be displayed and with the tags, comments, menu etc just looks messy.

    How can I disable the links from the post titles in the category listing?

    For example on this category page – http://bztest.info/category/restaurants/ – I don’t want the restaurant names to be links.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Styled Themes
    Participant

    @gejay

    The only way would be to take the link off the post title in the theme file. This would be a global change so that all post titles won’t have a link. You would need to edit the content.php file which is for the standard blog posts.

    You would need to find this:

    <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark">
    …and this part
    </a>

    Then remove that. Making this kind of change though, you should use a child theme which this theme includes one you can install. You would have to copy that content.php file and put it in the child theme’s partials folder.

    geckoinbelize
    Member

    @geckoinbelize

    exactly what I needed – thank you again for a great theme and great support

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Post Titles not Links’ is closed to new replies.