[Support request] How to disable post title link

Home Forums Support [Support request] How to disable post title link

Home Forums Support How to disable post title link

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2277534
    Michelle

    I want to disable post title links and featured image links.

    If you’re curious why, there are a few reasons, the last reason being the most important:

    1. This a web app, so it should not look like a blog
    2. There is no reason to have a full post displayed on the home page click to the same full post on a single post page
    3. When hiding a certain post category from the home page (a category I named “Lite”), posts in that category “Lite” still show up in the previous/next nav links at the bottom of single post pages.

    What I’ve tried:

    1. Adding the CSS David suggested in this post– https://generatepress.com/forums/topic/disable-post-title-link/

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

    2. Disabling the featured image from being clickable, following this tutorial — https://docs.generatepress.com/article/generate_featured_image_output/#example

    3. Adding this CSS to disable the Title links –https://generatepress.com/forums/topic/disable-link-in-title/

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

    How can I achieve what I’m trying to do?

    #2278070
    Leo
    Staff
    Customer Support

    Hi there,

    The solutions you found should work.

    I’m not able to access your site to view the issue though – can you double check on the links?

    #2286875
    Michelle

    Hi again, Leo.

    I am still working with this issue. I currently have this code in my Additional CSS, but it isn’t working:

    /*Make Title Not-Clickable to Single Post Page since I am showing entire posts instead of using excerpts that require Read More link*/
    .entry-title a {
    pointer-events: none;
    }

    Ideas?

    #2286905
    Fernando
    Customer Support

    Hi Michelle,

    Can you try this CSS instead?:

    .wp-show-posts-entry-title a, .wp-show-posts-image a {
        pointer-events: none !important;
    }

    Kindly let us know how it goes.

    #2286929
    Michelle

    I can try that, but since WPShow Posts has been replaced, I am currently switching my design to Query Loops.

    #2286944
    Fernando
    Customer Support

    I see. The reason why the code you’re trying to add here: https://generatepress.com/forums/topic/how-to-disable-post-title-link/#post-2277534 isn’t working is because its selector doesn’t apply to WPSP posts.

    When you use GB Query Loop Block, you wouldn’t need code to remove the link. You can just set it up as a normal title and image.

    Hope this clarifies!

    #2287868
    Michelle

    It definitely does. Thank you.

    #2288059
    Fernando
    Customer Support

    You’re welcome Michelle!

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