Using Beaver Builder

This topic contains 17 replies, has 4 voices, and was last updated by  Alex Rollin 6 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #471101

    Timothy Cermak
    Expired Member
    Post count: 96

    Hey Team Thank you for everything so far!

    I am using beaver builder and beaver theme with your plugin,

    I have questions about this site :https://new.resourceshark.com

    Is there a way to on

    https://new.resourceshark.com/index.php/places/ and https://new.resourceshark.com/index.php/places/buddakan/

    To add a widget to the template files like have in your starter theme

    #471108

    Alex Rollin
    Moderator
    Post count: 27815

    Which widget do you mean?

    #471253

    Timothy Cermak
    Expired Member
    Post count: 96

    Hey Alex,

    Basically im trying to edit the template files in the geoplugin to include a sidebar

    I would like the sidebar on The listing pages, and the individual place pages. I have read the doc https://wpgeodirectory.com/docs/customizing-geodirectory-templates/

    Just not understanding where to place the sidebar in the template code

    #471270

    Paolo
    Site Admin
    Post count: 31211

    Are you using v1?

    This would be a lot easier if you used V2.

    Let us know.

    #471277

    Timothy Cermak
    Expired Member
    Post count: 96

    Im using V2

    #471279

    Timothy Cermak
    Expired Member
    Post count: 96

    IM using beaver builder, beaver theme, and Geodirecotry V2

    #471280

    Paolo
    Site Admin
    Post count: 31211

    In that case you are looking into the wrong docs.

    Please see:
    https://wpgeodirectory.com/docs-v2/geodirectory/personalize/

    #471281

    Timothy Cermak
    Expired Member
    Post count: 96

    Thanks… I think i already looked there but couldnt find how to do it

    I was looking at this page https://wpgeodirectory.com/docs/customizing-geodirectory-templates/

    But couldn’t figure out what code i needed to add to the template pages and where to get the sidebars to show up

    #471294

    Kor
    Moderator
    Post count: 16516

    Hi Timothy,
    Thanks for your reply. Could you share your WP admin access here in private reply so that we could check and see if this requires complex customization?
    Thanks!

    #471303

    Timothy Cermak
    Expired Member
    Post count: 96
    This reply has been marked as private.
    #471329

    Alex Rollin
    Moderator
    Post count: 27815

    GDV2 uses the sidebars that come with your theme.
    GDV2 does not have any settings that can force a sidebar to show on a particular page.

    We do often recommend the use of Widget Logic, which can restrict a widget to display on certain pages.

    You can read more about GDV2 theme considerations here:
    https://wpgeodirectory.com/docs-v2/themes/

    Most GDV2 widgets have a control that can be used to force them to display only on certain pages, but, it is up to the theme to display sidebars on particular pages.

    Consult your theme documentation about page templates to discover which template will load which sidebar.

    #471335

    Timothy Cermak
    Expired Member
    Post count: 96

    It is not my page template from my theme that are needing to be edited.

    Geodirectory plugin templates need to be edited to have a sidebar added. I have already talked to beaver builder and they have told me that it is the Geodirectory plugins templates for the listing page and the template for the places pages that need code added to them for the sidebars
    I have confirmed that it is the geodirectory plugin templates being used for the listing and places pages. I have changed the code to include a sidebar, It has worked but when i do that i completely lose they geodirectory plugin template style. I Dont want to change it at all except for adding a sidebar

    I already have a plugint o change what widgets display in the sidebar depending on category. I do not need help with that . I need help adding code to the geodirectory templates to add a sidebar on the templates responsible for the listing pages and places pages

    #471336

    Timothy Cermak
    Expired Member
    Post count: 96

    Where would i add sidebar code to this below?

    <?php
    /**
    * Template for the list of places
    *
    * This is used mostly on the listing (category) pages and outputs the actual grid or list of listings.
    * See the link below for info on how to replace the template in your theme.
    *
    * @link http://docs.wpgeodirectory.com/customizing-geodirectory-templates/
    * @since 1.0.0
    * @package GeoDirectory
    * @global object $wpdb WordPress Database object.
    * @global object $post The current post object.
    * @global object $wp_query WordPress Query object.
    */

    /**
    * Called before the listing template used to list listing of places.
    *
    * This is used anywhere you see a list of listings.
    *
    * @since 1.0.0
    */
    do_action(‘geodir_before_listing_listview’);

    global $related_nearest, $related_parent_lat, $related_parent_lon, $gd_layout_class;

    ?>
    <ul class=”geodir-category-list-view clearfix <?php echo apply_filters(‘geodir_listing_listview_ul_extra_class’, $gd_layout_class, ‘listing’); ?>”>
    <?php if (have_posts()) {

    /**
    * Called inside the

    ul

    of the listings template, but before any

    li

    elements.
    *
    * When used by the widget view template then it will only show if there are listings to be shown.
    *
    * @since 1.0.0
    * @see ‘geodir_after_listing_post_listview’
    */
    do_action( ‘geodir_before_listing_post_listview’ );

    while ( have_posts() ) : the_post();

    geodir_get_template_part( ‘content’, ‘listing’ );

    endwhile;

    /**
    * Called inside the

    ul

    of the listings template, but after all

    li

    elements.
    *
    * When used by the widget view template then it will only show if there are listings to be shown.
    *
    * @since 1.0.0
    * @see ‘geodir_before_listing_post_listview’
    */
    do_action( ‘geodir_after_listing_post_listview’ );

    }else {
    geodir_no_listings_found();
    }

    ?>
    <!– geodir_category_list_view ends here–>

    <div class=”clear”></div>
    <?php
    /**
    * Called after the listings list view template, after all the wrapper at the very end.
    *
    * @since 1.0.0
    */
    do_action(‘geodir_after_listing_listview’);

    ———————-

    You can see on my website once you log in that if you change the archive-listing.php inside of geodirectoryplugin’s templates that the listing scrteen changes

    #471338

    Alex Rollin
    Moderator
    Post count: 27815

    If you are using GDV2, then you are looking in the wrong place, and that snippet is from GDV1.

    This is GDV1 https://wpgeodirectory.com/docs/customizing-geodirectory-templates/
    This is GDV2 https://wpgeodirectory.com/docs-v2/faq/customizing/

    In GDV2 the detail template is a WP page. as described here:
    https://wpgeodirectory.com/docs-v2/geodirectory/page-design/

    #471342

    Timothy Cermak
    Expired Member
    Post count: 96

    Thats so strange. I have GDv2 installed on the website…. but i also see those pages as well..

    I have edited those template php and have seen changes.

    So i need to add a Sidebar to the actual pages then?

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