Skip to content
Public Ticket #20198

Hide Links

Conversation thread

PenciDesign Supporter replied

Staff Reply

Hi,

This code will apply for the first post only:

body.archive.category-182 .item.hentry:first-child a {
    pointer-events: none;
}
body.archive.tag-2021-12 .item.hentry:first-child a,
body.archive.tag-2020-07 .item.hentry:first-child a {
    pointer-events: none;
}

Regards,
PenciDesign.



fuse2marketing replied

Customer Reply

I want to disable links for a specific category on a tag archive page. I’m guessing that isn’t possible? I want to disable the links on only the first post in each of the two pages I sent. 

fuse2marketing replied

Customer Reply

This seems more like the code I need, but it doesn't work.

body.archive.category-182 .item.hentry a {
    pointer-events: none;
}

I'd prefer not to disable links by tag or post, but by category, if possible. Particularly, the category-182 (About This Issue). Is that possible?

Thanks so much for all the help you've provided!

PenciDesign Supporter replied

Staff Reply

Hi,

Please add this CSS code to your site:

body.archive.tag-2021-12 .item.hentry a,
body.archive.tag-2020-07 .item.hentry a {
    pointer-events: none;
}

Regards,
PenciDesign.



PenciDesign Supporter replied

Staff Reply

Hi,

Please send me a category URL you've added this CSS code.

Regards,
PenciDesign.


fuse2marketing replied

Customer Reply

That CSS codes doesn't seem to work. Any suggestions?

PenciDesign Supporter replied

Staff Reply

Hi,

If you want to apply for all posts in this category, please use this CSS code.

body.category-182 .item.hentry a {
    pointer-events: none;
}

Regards,
PenciDesign.



fuse2marketing replied

Customer Reply

This works just for post-9289 and I can apply it to any specific post, so that's great. Can it work for all posts in category-182 so I don't need to create a new custom CSS rule for each new post in category-182? 

I'm trying to find a solution to remove all links for the first post in these two archive pages (and any future archive pages with a post that uses category-182 – "About this Issue").

https://theprofitabledentist.com/issue/2021-12/

https://theprofitabledentist.com/issue/2020-07/

PenciDesign Supporter replied

Staff Reply

Hi,

Please add this CSS code to your site:

body.category-182 #post-9289 a {
    pointer-events: none;
}

Regards,
PenciDesign.



fuse2marketing replied

Customer Reply

That works. Is it possible to do the same thing based on a category and not just a post? The category ID is cat-182 (about-this-issue).

PenciDesign Supporter replied

Staff Reply

Hi,

Please go to Appearance → Customize → Custom CSS then add the following custom CSS code:

body.archive #post-9289 a {
    pointer-events: none;
}

Regards,
PenciDesign.



fuse2marketing started the conversation

Conversation Start

Can CSS be used to hide the featured image link and the post title link in a category archive page? I'd like for the first post (2021-22 Winter Issue) to not be linked to anything. The ID for that post is post9289.

https://theprofitabledentist.com/issue/2021-12/

Want to join this conversation or access attachments? Sign in first.