Skip to content

Instantly share code, notes, and snippets.

cobaltapps

Block or report user

Report or block cobaltapps

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cobaltapps
cobaltapps / margin-top-ez-widget-area
Created Jan 19, 2013
Add a margin to the top and bottom of ez-widget-areas, giving them a bit of room to breathe.
View margin-top-ez-widget-area
.ez-widget-area {
margin: 40px 0;
}
@cobaltapps
cobaltapps / Portfolio Genesis Page Template
Created Mar 18, 2013
This is a simple "Portfolio" Custom Page Template for the Genesis Framework.
View Portfolio Genesis Page Template
<?php
/*
Template Name: Portfolio
*/
/** Force the full width layout on the Portfolio page */
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
/** Remove the standard loop */
remove_action( 'genesis_loop', 'genesis_do_loop' );
@cobaltapps
cobaltapps / Custom "Portfolio" Widget Area
Last active Mar 7, 2019
Registering a Custom "Portfolio" Widget Area in Genesis.
View Custom "Portfolio" Widget Area
genesis_register_sidebar(
array(
'id' => 'portfolio',
'name' => __( 'Portfolio', 'dynamik' ),
'description' => __( 'This is the portfolio page.', 'dynamik' )
)
);
@cobaltapps
cobaltapps / "Portfolio" Genesis Template Custom Hook Box Code
Created Mar 18, 2013
Dynamik for Genesis Custom Hook Box code used to create a Custom "Portfolio" Page Template remplacement.
View "Portfolio" Genesis Template Custom Hook Box Code
<?php
/** Force the full width layout on the Portfolio page */
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
/** Remove the standard loop */
remove_action( 'genesis_loop', 'genesis_do_loop' );
/** Add the Portfolio widget area */
add_action( 'genesis_loop', 'balance_portfolio_widget' );
function balance_portfolio_widget() {
@cobaltapps
cobaltapps / Genesis Header Fluid
Last active Mar 7, 2019
Making your Genesis Header Fluid by "breaking it out" of your main site container.
View Genesis Header Fluid
/* Fluid Header */
remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
remove_action( 'genesis_header', 'genesis_do_header' );
remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
add_action( 'genesis_before', 'genesis_header_markup_open' );
add_action( 'genesis_before', 'genesis_do_header' );
add_action( 'genesis_before', 'genesis_header_markup_close' );
/* end Fluid Header */
@cobaltapps
cobaltapps / Genesis Footer Fluid
Last active Mar 7, 2019
Making your Genesis Footer Fluid by "breaking it out" of your main site container.
View Genesis Footer Fluid
@cobaltapps
cobaltapps / Genesis Primary Menu (Above Header) Fluid
Created Aug 4, 2013
Making your Genesis Primary Menu Fluid by "breaking it out" of your main site container.
View Genesis Primary Menu (Above Header) Fluid
/* Fluid Primary Menu (Above Header) */
remove_action( 'genesis_before_header', 'genesis_do_nav' );
add_action( 'genesis_before', 'genesis_do_nav' );
/* end Fluid Menus */
@cobaltapps
cobaltapps / Genesis Primary Menu (Below Header) Fluid
Created Aug 4, 2013
Making your Genesis Primary Menu Fluid by "breaking it out" of your main site container.
View Genesis Primary Menu (Below Header) Fluid
/* Fluid Primary Menu (Below Header) */
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before', 'genesis_do_nav' );
/* end Fluid Menus */
@cobaltapps
cobaltapps / Genesis Secondary Menu (Above Header) Fluid
Last active Mar 7, 2019
Making your Genesis Secondary Menu Fluid by "breaking it out" of your main site container.
View Genesis Secondary Menu (Above Header) Fluid
/* Fluid Secondary Menu (Above Header) */
remove_action( 'genesis_before_header', 'genesis_do_subnav' );
add_action( 'genesis_before', 'genesis_do_subnav' );
/* end Fluid Menus */
@cobaltapps
cobaltapps / Genesis Secondary Menu (Below Header) Fluid
Created Aug 4, 2013
Making your Genesis Secondary Menu Fluid by "breaking it out" of your main site container.
View Genesis Secondary Menu (Below Header) Fluid
/* Fluid Secondary Menu (Below Header) */
remove_action( 'genesis_before_header', 'genesis_do_subnav' );
add_action( 'genesis_before', 'genesis_do_subnav' );
/* end Fluid Menus */
You can’t perform that action at this time.