- This topic has 7 replies, 3 voices, and was last updated 3 years, 9 months ago by
Fernando.
-
AuthorPosts
-
July 8, 2022 at 5:00 pm #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?
July 9, 2022 at 11:04 am #2278070Leo
StaffCustomer SupportHi 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?
July 18, 2022 at 9:45 pm #2286875Michelle
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?
July 18, 2022 at 10:24 pm #2286905Fernando 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.
July 18, 2022 at 10:57 pm #2286929Michelle
I can try that, but since WPShow Posts has been replaced, I am currently switching my design to Query Loops.
July 18, 2022 at 11:38 pm #2286944Fernando 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!
July 19, 2022 at 2:36 pm #2287868Michelle
It definitely does. Thank you.
July 19, 2022 at 11:04 pm #2288059Fernando Customer Support
You’re welcome Michelle!
-
AuthorPosts
- You must be logged in to reply to this topic.