This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Custom Hookbox: | |
Name - Custom Toggle Icon | |
Code: | |
<div class="responsive-menu-icon"> | |
<i class="fa fa-bars" aria-hidden="true"></i> | |
<i class="fa fa-times" aria-hidden="true" style="display:none;"></i> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Sets a custom minimum width for the fixed header functionality to remain in effect. | |
* Paste this into your Custom Functions and then adjust the '920' value to your specific needs. | |
*/ | |
add_filter( 'dynamik_fixed_header_min_width', 'custom_fixed_header_min_width' ); | |
function custom_fixed_header_min_width() { | |
return '920'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Include the front-end.php file only to non-admin pages. | |
if ( ! is_admin() ) | |
include_once( get_stylesheet_directory() . '/custom/front-end.php' ); | |
// Include the front-end.php file only to admin pages. | |
if ( is_admin() ) | |
include_once( get_stylesheet_directory() . '/custom/back-end.php' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use this if working with Genesis | |
//add_action( 'genesis_before', 'my_function_that_does_stuff' ); | |
// Use this if working with BB Theme | |
//add_action( 'fl_body_open', 'my_function_that_does_stuff' ); | |
function my_function_that_does_stuff() { | |
if( is_page() ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use this if working with Genesis | |
//add_action( 'genesis_before', 'my_function_that_does_stuff' ); | |
// Use this if working with BB Theme | |
//add_action( 'fl_body_open', 'my_function_that_does_stuff' ); | |
function my_function_that_does_stuff() { | |
echo 'Hello World!'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body class="page page-id-623 page-template page-template-my-templates page-template-testing-template page-template-my-templatestesting-template-php logged-in admin-bar no-customize-support fl-preset-default fl-full-width" itemscope="itemscope" itemtype="http://schema.org/WebPage"> | |
<div class="fl-page"> | |
<header class="fl-page-header fl-page-header-fixed fl-page-nav-right"> | |
<div class="fl-page-header-wrap"> | |
<div class="fl-page-header-container container"> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Display BB action hooks on front-end of site (visible to logged in admins only) | |
function bb_theme_hooks_map() { | |
if ( ! current_user_can( 'administrator' ) ) | |
return; | |
$hooks = bb_theme_hooks_array(); | |
foreach ( $hooks as $hook => $value ) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Fixed Header */ | |
.site-header { | |
position: fixed; | |
width: 100%; | |
z-index: 999; | |
} | |
.site-inner { | |
margin-top: 80px; |