Remove Favourite Option Only

This topic contains 5 replies, has 2 voices, and was last updated by  Paolo 9 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #123894

    mattyf
    Buyer
    Post count: 3

    Hi

    I’ve looked extensively through the forums but can’t find away to just remove the favourites icon from the listings without it also removing the author options when logged in as well.

    Let me explain…

    If a visitor isn’t logged I don’t want them to be able to see the favourite option/icon.

    I used this code found in another thread to remove it >

    .geodir-addtofav, .geodir_category_list_view li .geodir-addinfo a.geodir-pcomments, .geodir_category_list_view li .geodir-addinfo span {
    display: none;
    }

    This code works however it then also removes all the author options of ‘edit’ and ‘delete’ when the author is logged in as well (see attached image).

    Is there a simple way to just remove the favourite without losing the author options?

    Hope you can help.

    Matt

    #124165

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    just use this:

    
    
    
    .geodir-addtofav {
        display: none;
    }

    Thanks

    #124352

    mattyf
    Buyer
    Post count: 3

    Hi,

    Thanks I had already tried that but it didn’t work… just checked again and it doesn’t remove it.

    The only bit of code that seems to remove the favourites is .geodir_category_list_view li .geodir-addinfo span … but that also removes the author edit code mentioned before?

    #124354

    Paolo
    Site Admin
    Post count: 31211

    I tested it on my side and it works, please provide a link and admin credentials and we will apply it for you.

    Thanks

    #124358

    mattyf
    Buyer
    Post count: 3
    This reply has been marked as private.
    #124716

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    I’m sorry, it appeared that we had to target the css a little better:

    
    
    .geodir_category_list_view li .geodir-addinfo span.geodir-addtofav {
        display: none;
    }

    This is working and already applied to your website.

    Thank you for your patience,

Viewing 6 posts - 1 through 6 (of 6 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