Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2992039
Hide Links
Closed

Comments

  • fuse2marketing started the conversation

    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/

  •  2,610
    PenciDesign replied

    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 replied

    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).

  •  2,610
    PenciDesign replied

    Hi,

    Please add this CSS code to your site:

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

    Regards,
    PenciDesign.



  • fuse2marketing replied

    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/

  •  2,610
    PenciDesign replied

    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

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

  •  2,610
    PenciDesign replied

    Hi,

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

    Regards,
    PenciDesign.


  •  2,610
    PenciDesign replied

    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.



  • fuse2marketing replied

    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!

  •  2,610
    PenciDesign replied

    Hi,

    I've sent a CSS code by following the page you've sent:

    If you want to disable the specific category, please send me a category page.

    Regards,
    PenciDesign.



  • fuse2marketing replied

    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. 

  •  2,610
    PenciDesign replied

    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.