Facebook, Twitter & Co

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

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

Open Support Ticket
  • Author
    Posts
  • #25692

    Claudia
    Buyer
    Post count: 2

    Hi there,
    I don’t want to have all the social things like Facebook, Twitter, ShareThis and “Send end Enquiry…” in the right column of detail page. How can I hide this?

    (In fact I don’t want to have the whole right column on detail page. But I don’t find a way…)

    #25697

    Simone
    Expired Member
    Post count: 3515

    Hello, to hide the social button, add this in your style.css (inside your child theme)

    
    
    div.geodir-company_info.geodir-details-sidebar-social-sharing {
    display:none;
    }

    to hide the share this, insert this

    
    
    div.geodir-company_info.geodir-details-sidebar-sharethis {
    display:none;
    }
    #32991

    will-wink
    Expired Member
    Post count: 33

    Is this the best way to disable these?, will it not still load the associated scripts etc for them on the page, therefore affecting the load speed?

    #32996

    Claudia
    Buyer
    Post count: 2

    No. It’s not the best way. At the end I deleted the content of the equivalent functions_xxx in /plugins/geodirectory/geodirectory_hooks_actions.php. But this is a bad way because all changes went with next update.

    It’s too bad that this isn’t an option in settings (on/off for social things)

    #33015

    Simone
    Expired Member
    Post count: 3515

    Hello Claudia, a solution would be to remove the functions with some remove_action code. This code should be written inside the functions.php in the child theme’s folder so it will not be lost in the future updates.

    (I will reply back with the code, as for now I was unsuccessful doing that, need a coffee 🙂 )

    #33021

    Paolo
    Site Admin
    Post count: 31211
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