Even though you are able to add pretty much anything using widgets, we decided to open up site building for developers that are more familiar with coding. You’re now able to alter anything on your website, from one file, called custom/custom_function.php. If you want to add one line of code to one particular spot on your website, you’re now able to do just that.
How it works?
- Open custom/custom_functions.php
- Add new filters, examples below:
Filter example: Adding code after selected grid
add_action( 'bizz_sidebar_grid_before', 'custom_grid_code_after' );
function custom_grid_code_after( $grid ) {
if ( $grid == 'main_two' )
echo 'This message appears before main_two grid area';
}
Filter example: Adding code before selected grid
add_action( 'bizz_sidebar_grid_before', 'custom_grid_code_before' );
function custom_grid_code_before( $grid ) {
if ( $grid == 'main_two' )
echo 'This message appears before main_two grid area';
}
List of available grids
To find out, which grids are available on your site, open lib_theme/theme_widgets.php
file. You may also remove/edit/create custom grids for this purpose, without ever even visiting theme options panel.
Works with 7.0+ theme framework