WordPress.org

Forums

Celestial - Lite
[resolved] Post Titles not Links (3 posts)

  1. geckoinbelize
    Member
    Posted 1 year ago #

    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.

  2. StyledThemes
    Member
    Theme Author

    Posted 1 year ago #

    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.

  3. geckoinbelize
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic