Site logo

Archived topic

Disable Post Title Link

10 replies · Started by Belinda White on May 23, 2018

Viewing posts 1–11 of 11

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.

Hi Belinda, simplest method may be some CSS

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

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

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

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

Belinda

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

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

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.

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

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;
}

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.

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

Thanks :)

This archived topic is closed to new replies.