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-
AuthorPosts
-
February 25, 2019 at 8:28 pm #471101
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
February 25, 2019 at 8:58 pm #471108Which widget do you mean?
February 26, 2019 at 3:04 pm #471253Hey 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
February 26, 2019 at 5:22 pm #471270Are you using v1?
This would be a lot easier if you used V2.
Let us know.
February 26, 2019 at 5:46 pm #471277Im using V2
February 26, 2019 at 5:49 pm #471279IM using beaver builder, beaver theme, and Geodirecotry V2
February 26, 2019 at 5:52 pm #471280In that case you are looking into the wrong docs.
Please see:
https://wpgeodirectory.com/docs-v2/geodirectory/personalize/February 26, 2019 at 6:08 pm #471281Thanks… 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
February 26, 2019 at 7:02 pm #471294Hi 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!February 26, 2019 at 7:24 pm #471303This reply has been marked as private.February 26, 2019 at 9:13 pm #471329GDV2 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.
February 26, 2019 at 9:52 pm #471335It 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 sidebarI 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
February 26, 2019 at 9:55 pm #471336Where 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 theul
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 theul
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
February 26, 2019 at 10:20 pm #471338If 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/February 26, 2019 at 10:45 pm #471342Thats 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?
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket