Hide detail Sidebar

This topic contains 10 replies, has 4 voices, and was last updated by  Guust 9 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #29557

    njainb
    Free User
    Post count: 13

    Hi Team

    How to hide right sidebar on detail page. I want to use my theme sidebars. I’ve made sidebar size 0 for home and listing. But don’t have any handle for making this sidebar size 0.

    Thanks
    Nitin

    #29629

    Paolo
    Site Admin
    Post count: 31206

    The detail page sidebar can be moved to right or left, but it can’t be removed without adding some actions to your theme functions.php

    However removing the detail page sidebar will also remove info like address, avarage rating, website link, enquiry form and send to friend etc.

    Removing that sidebar requires to re-add all this fields with other actions.

    You sure you want to go down that path?

    Thanks

    #29636

    njainb
    Free User
    Post count: 13
    This reply has been marked as private.
    #29682

    Guust
    Moderator
    Post count: 29970

    What is the difference between the GD detail sidebar and your theme’s sidebar?
    It would be way simpler to remove things from the GDsidebar and add the same widgets to the GD sidebar as you would add to your theme sidebar.
    In the end the result is exactly the same.

    #29717

    njainb
    Free User
    Post count: 13

    Hi Guust.. Pls see the url, I’ve shared in private post. I’m not going to use any GD sidebar widgets and I’ve moved all the required data on detail page.

    #29718

    John Allsopp
    Expired Member
    Post count: 399

    Hi,
    Have you tried this:

    remove_action( 'geodir_detail_sidebar', 'geodir_action_details_sidebar', 10 );
    #29724

    njainb
    Free User
    Post count: 13
    This reply has been marked as private.
    #29726

    Paolo
    Site Admin
    Post count: 31206

    Hi Nitin,

    that sidebar isn’t a GD sidebar as far as I can see:

    it comes with ad ID = gk-sidebar-right, which isn’t part of GD…

    Seems to be a theme’s sidebar instead.

    Please provide wp admin credentials if you want us to look into it further.

    Thanks

    #29757

    njainb
    Free User
    Post count: 13
    This reply has been marked as private.
    #29795

    Paolo
    Site Admin
    Post count: 31206

    Hi again,

    I don’t have access to the theme editor. You should make it writable CHMOD 755 minimum, but I think I understood now.

    Please apply that code again and this to your custom css:

    
    
    #geodir-wrapper-content {
        width: 100%;
    }

    Let us know,

    Thanks

    #29821

    Guust
    Moderator
    Post count: 29970

    Replying to https://wpgeodirectory.com/support/topic/hide-detail-sidebar/#post-29717
    I never said to use GD widgets, I meant any widgets.
    A sidebar is a sidebar is a sidebar.
    If you are going to use a sidebar anyway, what is the difference between the GD sidebar and your theme’s sidebar (if you remove all the GD content from it)?

    But I will leave this with Paolo for you.

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

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

Open Support Ticket