More tabs on a listing

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

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

Open Support Ticket
  • Author
    Posts
  • #23765

    Fiskani Chirwa
    Expired Member
    Post count: 29

    Hi GD Team,

    I’d like to add more or similar tabs on my listings. Such as another gallery tab to add menu images for restaurants or supplies for supplier comapnys. Also I’d like to add another tab like related listing to display shops in malls. Don’t you think its a good idea.

    Thanks

    #23769

    Guust
    Moderator
    Post count: 29970

    To add tabs, look here: http://docs.wpgeodirectory.com/core-place-settings/#custom
    Look for “Show as a tab on Detail page?”

    Let us know how you went.

    #23778

    Fiskani Chirwa
    Expired Member
    Post count: 29

    Hi Guust,

    Nice to hear from you again. I’d like to add a field like gallery and related listing instead of the fields listed. Is that possible?

    #23856

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    there is a hook to extend tabs and display custom content like you want to do.

    With current options, it is not possible to do what you are looking for.

    In this post you’ll find more info: https://wpgeodirectory.com/support/topic/exclude-selected-tabs-from-detail-page-if-empty/#post-7305

    Thanks

    #24035

    Fiskani Chirwa
    Expired Member
    Post count: 29

    Is it fine if I added a new image gallery like

    
    
    
        if(isset($tab_array['post_images'])){
             $new_tab_array['post_images'] = $tab_array['post_images'];// set in new array
    		 unset($tab_array['post_images']);//unset in old one
    	}
    
    

    Also would the fact that I have no child theme change or add the code in?

    #24093

    Paolo
    Site Admin
    Post count: 31206

    it’s always better to work with a child theme to avoid losing customization after updating the theme.

    Not mandatory though.

    Thx

    #24096

    Fiskani Chirwa
    Expired Member
    Post count: 29

    I meant to say I have no GD themes installed so I doubt it would work…

    Is there no other way around it?

    Could I ask someone to edit my site please?

    #24102

    Paolo
    Site Admin
    Post count: 31206

    Other way around it, avoid to update the theme. Or before updating make sure to have your customization ready to be applied again.

    There is no need to have a GD theme to use a child theme. All wordpress themes should be usable via child theme: http://codex.wordpress.org/Child_Themes

    Thx

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

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

Open Support Ticket