remove link from post title?

Home Forums WordPress Themes – Premium Flat Responsive remove link from post title?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #17201
    gebseng
    Participant

    Hi again,

    Is it possible to make the heading of a post not a link? I would like to see posts only in the category, but not as single posts. Here is a link to the part of my website that I’m talking about: http://knallfrosch.at/category/naehpaket/

    thanks,

    Gebhard

    #22661
    Sushil Adhikari
    Moderator

    Hi

    In order to remove the post link from archive page, here are the two procedures. You can use/apply any one of these as per your ease.

    Using css:
    add this css on child theme style.css file:

    .archive  .entry-title a  {
           pointer-events: none;
           cursor: default;
        } 

    Customizing on content.php template of child theme:
    You can see this following code on content.php file

      

    <a href="https://www.styledthemes.com/" title="" rel="bookmark">

    Replace the above code with:

     

    Note: For second procedure you need to be technically sound on WordPress, otherwise you will face error.

    Thanks

    #22681
    gebseng
    Participant

    the first version works perfectly, thank you so much!

    best,

    geb

    #17202
    Sushil Adhikari
    Moderator

    Oh that’s great gebseng, we are really happy for you.

    Thanks

    #44882
    gebseng
    Participant

    Hi again,

    for some reason, the CSS version of your fix stopped working. I tried to do the php version, but the child theme does not contain a content.php (it consists only of functions.php and style.css).

    Is there another way to remove links from post titles?

    thanks,

    geb

    #44894
    Sushil Adhikari
    Moderator

    Hi Gebseng,

    You can copy content.php from parent theme and keep on child theme. Then you can make proper changes on child theme.

    Thanks

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.