Skip to content

Instantly share code, notes, and snippets.

@DalavanCloud
DalavanCloud / my-function-that-does-stuff.php
Created March 7, 2019 02:19 — forked from cobaltapps/my-function-that-does-stuff.php
Learning To Code In PHP: The basic add_action function.
// 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!';
@DalavanCloud
DalavanCloud / my-function-that-does-stuff-conditionally.php
Created March 7, 2019 02:18 — forked from cobaltapps/my-function-that-does-stuff-conditionally.php
Learning To Code In PHP: The adding conditional code.
// 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() ) {
@DalavanCloud
DalavanCloud / child-themer-include-custom-function-files.php
Created March 7, 2019 02:18 — forked from cobaltapps/child-themer-include-custom-function-files.php
Child Themer: Conditionally include both a front-end and back-end custom functions file for better custom coding compartmentalization.
// 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' );
@DalavanCloud
DalavanCloud / child-themer-add-header-footer-script-files.php
Created March 7, 2019 02:17 — forked from cobaltapps/child-themer-add-header-footer-script-files.php
Child Themer: Add both a header-scripts.js and footer-scripts.js file to your WordPress website.
@DalavanCloud
DalavanCloud / dynamik-fixed-header-min-width-filter
Created March 7, 2019 02:16 — forked from cobaltapps/dynamik-fixed-header-min-width-filter
Sets a custom minimum width for the fixed header functionality to remain in effect.
/*
* 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';
}
@DalavanCloud
DalavanCloud / genesis-logo-and-header-menu-swap-css
Created March 7, 2019 02:16 — forked from cobaltapps/genesis-logo-and-header-menu-swap-css
CSS snippet to position the Genesis Title Area right and the Header Widget Area left.
.title-area {
float: right;
}
.site-header .widget-area {
float: left;
text-align: left;
}
@DalavanCloud
DalavanCloud / dynamik-vertical-toggle-shortcodes-tutorial-part-1
Created March 7, 2019 02:15 — forked from cobaltapps/dynamik-vertical-toggle-shortcodes-tutorial-part-1
Code for a tutorial walking through some use-case scenarios of the Dynamik Responsive Vertical Toggle Menu Shortcode feature (Part 1).
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>
@DalavanCloud
DalavanCloud / dynamik-vertical-toggle-shortcodes-tutorial-part-2
Created March 7, 2019 02:15 — forked from cobaltapps/dynamik-vertical-toggle-shortcodes-tutorial-part-2
Code for a tutorial walking through some use-case scenarios of the Dynamik Responsive Vertical Toggle Menu Shortcode feature (Part 2).
Custom Hookbox:
Name - Custom Toggle Icon
Setup as "Shortcode"
Code:
<div class="responsive-menu-icon">
<i class="fa fa-ellipsis-h" aria-hidden="true"></i>
<?php wp_enqueue_script( 'jquery-ui-draggable' ); ?>
Reports: 0
Home
Forums
>
Resources
>
How To's
>
How To Add CSS Animation Effects To Your Mobile Hamburger Menu Icons