Feature Idea about additional Widget areas

This topic contains 6 replies, has 3 voices, and was last updated by  Guust 8 years, 1 month ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #134982

    pedstone
    Lifetime Member
    Post count: 102

    Using GD I noticed that there is a Widget area called Home Content Section.

    Maybe I have missed something but would it be possible to add the same type of section for Listing, Search, Detail and Author plus the according widgets?

    This could make GD more flexible to use with a wider range of themes.

    #134997

    Guust
    Moderator
    Post count: 29970

    Have a look at https://wpgeodirectory.com/docs/layout/
    Go to GD > design > and add top sections to the other templates.

    #134998

    pedstone
    Lifetime Member
    Post count: 102

    Hi Guust

    thanks for the hint about the top section. I had tried that but that’s a full width section, is great to add a map.

    But what i was looking for is to have a content section like the home content section.
    This would make it more flexible to set up the content area the way one would like it. Like for example add a search above the Listing or Detail.

    This way there would result something like a page builder for GD, which more users could like 🙂

    #135154

    Guust
    Moderator
    Post count: 29970

    You can edit the templates so the TOP section is next to the sidebar, above the content.

    https://wpgeodirectory.com/docs/customizing-geodirectory-templates/

    #135301

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you can also use an action: geodir_listings_content

    Example:

    
    
    //add search widget on top of listings page content
    add_action('geodir_listings_content','sd_search_form_on_search_page', 1);
    
    function sd_search_form_on_search_page() {echo do_shortcode('[gd_advanced_search]');}

    You need to add this code in your child theme functions.php file.

    Thanks

    Thanks

    #135617

    pedstone
    Lifetime Member
    Post count: 102

    Guust, Paolo

    thanks for the helpful hints, just gave a try to paolos solution and it works like a charm.

    Guusts method I try tomorrow, but I’m not using a GD theme so I will have to find out how to tweak it. But is definitly a good idea too, so I can place any widget there.

    Thanks again for your both helpful replies.

    #135620

    Guust
    Moderator
    Post count: 29970

    the GD templates are not theme dependant. They are slotted in between the header and footer of your theme.

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

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

Open Support Ticket