Disable/ remove links to category listing page

This topic contains 4 replies, has 2 voices, and was last updated by  Alex Howes 6 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #429939

    Alex Howes
    Expired Member
    Post count: 175

    Hello,

    Is there a way to disable the category listing page, accessed by clicking on the category shown on a listing detail page (i.e. the pages with the url http://www.mydomain/cpt/category)? Alternatively is there a way to remove the hyperlink attached to CPT post category information? I don’t want to just remove it with CSS because I still want the category information to show, just for it not to link anywhere.

    Thanks! 🙂
    Alex

    #429944

    Kor
    Moderator
    Post count: 16516

    Hi Alex,

    We can use custom CSS code to disable the links. Could you share the URL of the site in question so that I could work it out for you?

    Thanks!

    #429960

    Alex Howes
    Expired Member
    Post count: 175

    Thanks Kor, I didn’t realise custom CSS could be used to do that 🙂

    An example page is this: https://www.barn-door.co.uk/farms/coybal-farm/ where the category link is “Dairy Cows” at the top of the page.

    #429966

    Kor
    Moderator
    Post count: 16516

    Hi Alex,

    Use the custom CSS below and see if it’s what you’re looking for.

    
    
    .single-gd_farm .geodir-category a {
        pointer-events: none!important;
        cursor: default!important;
    }
    #429967

    Alex Howes
    Expired Member
    Post count: 175

    Thanks Kor, that’s perfect! I’ll apply it in the same way to my other pages 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount