reorder detail page sidebar

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

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

Open Support Ticket
  • Author
    Posts
  • #52709

    urbanfix
    Expired Member
    Post count: 310

    Hi guyw,
    I am using whoop theme and wish to reorder the detail sidebar.
    I want order to be:
    rating info
    Listing info
    User links

    I am unsure how to go about doing this, i looked at other examples but they just confused me further,
    how do i go about doing this?

    Thanks,
    UF

    #52765

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    This should just be a matter of changing some hooks, i’ll assign this to the whoop dev.
    (i don’t see the rating info in the sidebar though, but maybe just our demo)

    Thanks,

    Stiofan

    #52767

    Giri
    Expired Member
    Post count: 3155

    Place this code in your child theme.

    
    
    function whoop_change_sidebar_content_order() {
        return array('geodir_social_sharing_buttons',
            'geodir_share_this_button',
            'geodir_detail_page_google_analytics',
            'geodir_detail_page_review_rating',
            'geodir_detail_page_more_info',
            'geodir_edit_post_link'
        );
    }
    add_filter('geodir_detail_page_sidebar_content', 'whoop_change_sidebar_content_order');
    #52802

    urbanfix
    Expired Member
    Post count: 310

    Perfect @giri, worked a treat!
    Thanks,
    UF

    #52853

    Paolo
    Site Admin
    Post count: 31206

    Thanks for lettings us know! 🙂

    #66045

    algmed
    Buyer
    Post count: 30

    Hi @paolo

    This thread might be a bit old but still relevant.
    After using the above code, it does remove links like “Claim Listing” or “Business Hours”.
    Is there any function that shows me which hooks are all added to the sidebar before I use the code? In that way I would be able to figure out what I have to use to get claim and business hours back.

    #66089

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the claim listing link can be added with:

    geodir_display_post_claim_link

    For the business hours function, you’ll need to ask support to its developer.

    Thanks

    #66133

    algmed
    Buyer
    Post count: 30

    Thank you, will contact him since there are some more issues.
    Happy new year to you @guust and the rest of the team!

    #66296

    Paolo
    Site Admin
    Post count: 31206

    You are welcome and happy new year to you too 🙂

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