[Resolved] Disable Post Title Link

Home Forums Support [Resolved] Disable Post Title Link

Home Forums Support Disable Post Title Link

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #582589
    Belinda White

    This is a strange one I know. My client wants to disable the post title link. The title will still show but the link is removed.
    Can you provide a script or css to disable post title links.

    GeneratePress 2.1.2
    #582607
    David
    Staff
    Customer Support

    Hi Belinda, simplest method may be some CSS

    .entry-title {
        pointer-events: none;
    }
    #582713
    Belinda White

    @David That hasn’t worked. I am using WP Show Posts for some of the content, would that need to be taken into consideration?

    #582720
    Belinda White

    I’ve got it –
    .wp-show-posts-entry-title{
    pointer-events: none;
    }

    This worked. Thanks for the insight on what to look for.

    Belinda

    #582723
    David
    Staff
    Customer Support

    Hi Belinda, thats great, glad you got it working!

    #1155048
    Jan Pecenka

    Hi, sorry for re-open. Is possible disable post title link in specific post?

    #1155141
    David
    Staff
    Customer Support

    Hi there,

    for the GP blog you can do this:

    .post-XXXX .entry-title {
        pointer-events: none;
    }

    replace the XXXX with the ID of the specific post.

    #1170110
    Jan Pecenka

    Hi, thanks. So its still not what I need. Is possible disable post link for specific format or category?

    #1170246
    David
    Staff
    Customer Support

    So to target a post in a specific category you would use:

    .category-slug .entry-title

    Example CSS to disable link on posts within the red category

    .category-red .entry-title {
        pointer-events: none;
    }

    And for the Post Format this:

    .format-type .entry-title

    Example CSS to disable link on posts that are a video format

    .format-video .entry-title {
        pointer-events: none;
    }
    #1280980
    arthurweber

    Hi there

    I’m using the block «latest posts» because I only want to show certain categories within the blog.
    How can I disable the post title links in this case?

    I tried you css solution but I didn’t get it this way.

    #1281243
    Leo
    Staff
    Customer Support

    Can you open a new topic for your question and link us to the page in question?

    Thanks 🙂

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