Site logo

Archived topic

How to disable post title link

7 replies · Started by Michelle on July 8, 2022

Viewing posts 1–8 of 8

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?

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?

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?

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.

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

It definitely does. Thank you.

You’re welcome Michelle!

This archived topic is closed to new replies.