Hi, I’m relatively new to bb and have searched the forums without much luck (could be my terms).
I’m attempting to integrate wpgeodirectory with my bb child theme. I’m currently following this guide :http://docs.wpgeodirectory.com/how-to-build-your-own-theme-compatibility-plugin/
However, when I replace the classes with some of the beaverbuilder classes, the content still seems to span the whole width of the page v.s being fixed. What am I missing?
<?php
/*
Plugin Name: GeoDirectory compat
Plugin URI: http://localhost/dev
Description: none
Version: 1.0.0
Author: M33
Author URI: http://localhost/dev
*/
// BECAUSE THIS PLUGIN IS CALLED BEFORE GD WE MUST CALL THIS PLUGIN ONCE GD LOADS
add_action( 'plugins_loaded', 'geodir_mytheme_action_calls', 10 );
function geodir_mytheme_action_calls(){
/* ACTIONS
****************************************************************************************/
// WRAPPER OPEN ACTIONS
remove_action( 'geodir_wrapper_open', 'geodir_action_wrapper_open', 10 );
add_action( 'geodir_wrapper_open', 'geodir_mytheme_action_wrapper_open', 9 );
// WRAPPER CLOSE ACTIONS
remove_action( 'geodir_wrapper_close', 'geodir_action_wrapper_close', 10);
add_action( 'geodir_wrapper_close', 'geodir_mytheme_action_wrapper_close', 11);
// WRAPPER CONTENT OPEN ACTIONS
remove_action( 'geodir_wrapper_content_open', 'geodir_action_wrapper_content_open', 10 );
add_action( 'geodir_wrapper_content_open', 'geodir_mytheme_action_wrapper_content_open', 9, 3 );
// WRAPPER CONTENT CLOSE ACTIONS
remove_action( 'geodir_wrapper_content_close', 'geodir_action_wrapper_content_close', 10);
add_action( 'geodir_wrapper_content_close', 'geodir_mytheme_action_wrapper_content_close', 11);
// SIDEBAR RIGHT OPEN ACTIONS
remove_action( 'geodir_sidebar_right_open', 'geodir_action_sidebar_right_open', 10 );
add_action( 'geodir_sidebar_right_open', 'geodir_mytheme_action_sidebar_right_open', 10, 4 );
// SIDEBAR RIGHT CLOSE ACTIONS
remove_action( 'geodir_sidebar_right_close', 'geodir_action_sidebar_right_close', 10 );
add_action( 'geodir_sidebar_right_close', 'geodir_mytheme_action_sidebar_right_close', 10, 1 );
} // Close geodir_mytheme_action_calls
/* FUNCTIONS
****************************************************************************************/
// All the functions we replaced above will go here
// WRAPPER OPEN FUNCTIONS
// WRAPPER OPEN FUNCTIONS
function geodir_mytheme_action_wrapper_open() {
echo '<div class="fl-builder-content">';
}
// WRAPPER CLOSE FUNCTIONS
function geodir_mytheme_action_wrapper_close() {
echo '</div>';
}
// WRAPPER CONTENT OPEN FUNCTIONS
function geodir_mytheme_action_wrapper_content_open($type='',$id='',$class='') {
echo '<div class="fl-row fl-row-fixed-width fl-row-bg-none">';
}
// WRAPPER CONTENT CLOSE FUNCTIONS
function geodir_mytheme_action_wrapper_content_close() {
echo '</div>';
}
// SIDEBAR RIGHT OPEN FUNCTIONS
function geodir_mytheme_action_sidebar_right_open($type='',$id='',$class='',$itemtype='') {
echo '<aside id="my-sidebar-wrapper">';
}
// SIDEBAR RIGHT CLOSE FUNCTIONS
function geodir_mytheme_action_sidebar_right_close($type='') {
echo '</aside>';
}
My site is under development locally. Your help is appreciated.