How to remove Add to Favorites

This topic contains 14 replies, has 5 voices, and was last updated by  Paolo 8 years, 5 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #4259

    nasc
    Expired Member
    Post count: 235

    Can we remove the “add to favorites” selection without causing other issues?
    If so, How?

    Is is possible to remove “No review”, but just for certain post types?

    Thanks,

    #4262

    Paolo
    Site Admin
    Post count: 31206

    Hi,
    this will remove the links to add favourites.

    .geodir-addtofav {
    display: none;
    }

    To hide the favourite section from your user page, I have to ask to Vikas for 1 tip.

    Can I ask you where exactly is the no review that you want to hide?

    Thanks

    #4267

    nasc
    Expired Member
    Post count: 235

    I have 4 custom post-types. I believe I would like to remove it from two of them.

    Specifically, Affiliate members and Channel Partners.

    Thanks,

    #4268

    Paolo
    Site Admin
    Post count: 31206

    Link pls?

    #4278

    nasc
    Expired Member
    Post count: 235
    This reply has been marked as private.
    #4285

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
    #5703

    stever
    Expired Member
    Post count: 26

    Hi Paolo,

    Where should we add this code? I’ve added to both parent and child themes but nothing changes. I also tried adding this to the code section of GDF options (theme).

    Also, I see in the class referenced on the page is “geodir-addtofav” but I don’t see that in the .css file anywhere.

    Please advise.

    #5704

    stever
    Expired Member
    Post count: 26

    Disregard.

    I used:

    
    
    .geodir-addtofav-icon {
    display: none;
    }

    to remove the Favorites link to the right of places listed in results.

    #5807

    Paolo
    Site Admin
    Post count: 31206

    yes, css changed a bit with the latest release.

    Glad you figured it out on your own! 🙂

    #6749

    Gulshan Chandan
    Free User
    Post count: 7

    While clicking on Add to Favourites its giving me error (Error Loading Listing). I want it work and added in my dashobard Add to Favourite List

    #6853

    Paolo
    Site Admin
    Post count: 31206

    link pls?

    #62228

    lcndesign
    Expired Member
    Post count: 3

    Hi,

    is there any cleaner way to do that? i mean by filtering or child template modification instead of display: none;

    Thanks,

    #62300

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    yes you can modify the template in your child theme.

    1) Create a folder in your child theme named geodirectory.
    2) Move a copy of the template geodirectory-templates/listing-listview.php in the geodirectory folder of your child theme.
    3) Customize its code.

    GeoDirectory will use your customized template.

    Thanks

    #62394

    lcndesign
    Expired Member
    Post count: 3

    Hi,

    yes i’m already working with template modification but the add to favorite link is in placed by an external function. That’s why i’m asking you if is possible to filtwer it in some way…

    #62466

    Paolo
    Site Admin
    Post count: 31206

    No it isn’t, but you can copy the external function too in your functions.php, rename it, remove the favorite part and from your modified template, called your customized function instead of the original function.

    Thanks

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

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

Open Support Ticket