Skip to content

Instantly share code, notes, and snippets.

/* (Primary Navigation) Vertical Toggle Menu Styles: */
.responsive-primary-menu-container {
background: #333333;
border-bottom: 2px solid #DDDDDD;
width: 100%;
padding: 12px 0;
overflow: hidden;
cursor: pointer;
-webkit-box-sizing: border-box;
box-sizing: border-box;
@cobaltapps
cobaltapps / DWB Responsive Logo Image Trick
Last active August 28, 2019 01:10
This CSS code is for a DWB screencast where I show how to make your Logo Image responsive, without the need for multiple images.
/* 5th @media query trigger point */
.site-header {
min-height: 80px;
}
.header-image .site-header .wrap .title-area {
width: 320px;
height: 80px;
background-size: 320px 80px;
}
/* HTML5 Custom CSS for Vertical Toggle */
.nav-primary { display: none; }
/* Pre-HTML5 Custom CSS for Vertical Toggle */
#nav { display: none; }
/* 6th @media query CSS */
.header-widget-area { display: none; }
if( file_exists( dynamik_get_stylesheet_location( 'path' ) . 'my-custom-functions.php' ) )
{
require_once( dynamik_get_stylesheet_location( 'path' ) . 'my-custom-functions.php' );
}
@cobaltapps
cobaltapps / Function Reference: From the Catalyst Transport Plugin that Converts Catalyst Hooks to their Genesis counterparts
Created August 23, 2013 18:29
This function reference might be useful to those wanting to know what the Genesis Hook equivalent is for any particular Catalyst Hook.
/**
* Convert Catalyst Hooks to their Genesis counterparts.
*
* @since 1.0
*/
function catalyst_transport_hook_converter( $catalyst_hook, $html5 = false )
{
$catalyst_to_genesis_hooks = array(
'catalyst_hook_in_head' => 'wp_head',
'catalyst_hook_before_html' => 'genesis_before',
@cobaltapps
cobaltapps / Genesis Footer & EZ Fat Footer Fluid
Created August 22, 2013 00:26
Making your Genesis Footer & EZ Fat Footer Fluid by "breaking it out" of your main site container.
@cobaltapps
cobaltapps / Genesis-Dynamik Website Builder Column Class Styles
Created August 21, 2013 20:02
The are the Genesis Column Class Styles found in Dynamik Website Builder as of DWB version 1.2.2
/* Column Classes
------------------------------------------------------------ */
.five-sixths,
.four-fifths,
.four-sixths,
.one-fifth,
.one-fourth,
.one-half,
.one-sixth,
@cobaltapps
cobaltapps / Catalyst EZ Column Class Styles
Created August 20, 2013 17:28
This may be useful if you decided to continue using the Catalyst EZ Column Classes in your Catalyst-to-Genesis converted websites.
/*** EZ Column Styles ***/
.ez-five-sixths,
.ez-four-fifths,
.ez-four-sixths,
.ez-one-fifth,
.ez-one-fourth,
.ez-one-half,
.ez-one-sixth,
.ez-one-third,
add_action( 'wp_enqueue_scripts', 'custom_enqueue_scripts' );
/**
* Enqueue an external Custom Javascript file to Dynamik Website Builder
*/
function custom_enqueue_scripts()
{
wp_enqueue_script( 'my-scripts', dynamik_get_stylesheet_location( 'url' ) . 'my-scripts.js', array( 'jquery' ), CHILD_THEME_VERSION, true );
}
@cobaltapps
cobaltapps / Enqueue an external Custom Stylesheet to Dynamik Website Builder
Last active March 7, 2019 02:31
Use this code if you'd like to use an external Custom Stylesheet in Dynamik Website Builder. Note that this code assumes you have created a my-custom.css file and uploaded it to your /wp-content/uploads/dynamik-gen/theme/ directory.
add_action( 'wp_enqueue_scripts', 'custom_add_stylesheet' );
/**
* Enqueue an external Custom Stylesheet to Dynamik Website Builder
*/
function custom_add_stylesheet()
{
wp_enqueue_style( 'my-custom', dynamik_get_stylesheet_location( 'url' ) . 'my-custom.css', false, filemtime( dynamik_get_stylesheet_location( 'path' ) . 'my-custom.css' ) );
}