Skip to content

Instantly share code, notes, and snippets.

@DalavanCloud
DalavanCloud / margin-top-ez-widget-area
Created March 7, 2019 02:38 — forked from cobaltapps/margin-top-ez-widget-area
Add a margin to the top and bottom of ez-widget-areas, giving them a bit of room to breathe.
.ez-widget-area {
margin: 40px 0;
}
@DalavanCloud
DalavanCloud / Portfolio Genesis Page Template
Created March 7, 2019 02:37 — forked from cobaltapps/Portfolio Genesis Page Template
This is a simple "Portfolio" Custom Page Template for the Genesis Framework.
<?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' );
@DalavanCloud
DalavanCloud / Custom "Portfolio" Widget Area
Created March 7, 2019 02:37 — forked from cobaltapps/Custom "Portfolio" Widget Area
Registering a Custom "Portfolio" Widget Area in Genesis.
genesis_register_sidebar(
array(
'id' => 'portfolio',
'name' => __( 'Portfolio', 'dynamik' ),
'description' => __( 'This is the portfolio page.', 'dynamik' )
)
);
@DalavanCloud
DalavanCloud / "Portfolio" Genesis Template Custom Hook Box Code
Created March 7, 2019 02:36 — forked from cobaltapps/"Portfolio" Genesis Template Custom Hook Box Code
Dynamik for Genesis Custom Hook Box code used to create a Custom "Portfolio" Page Template remplacement.
<?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() {
@DalavanCloud
DalavanCloud / Genesis Header Fluid
Created March 7, 2019 02:36 — forked from cobaltapps/Genesis Header Fluid
Making your Genesis Header Fluid by "breaking it out" of your main site container.
/* 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 */
@DalavanCloud
DalavanCloud / Genesis Footer Fluid
Created March 7, 2019 02:36 — forked from cobaltapps/Genesis Footer Fluid
Making your Genesis Footer Fluid by "breaking it out" of your main site container.
@DalavanCloud
DalavanCloud / Genesis Primary Menu (Above Header) Fluid
Created March 7, 2019 02:35 — forked from cobaltapps/Genesis Primary Menu (Above Header) Fluid
Making your Genesis Primary Menu Fluid by "breaking it out" of your main site container.
/* Fluid Primary Menu (Above Header) */
remove_action( 'genesis_before_header', 'genesis_do_nav' );
add_action( 'genesis_before', 'genesis_do_nav' );
/* end Fluid Menus */
@DalavanCloud
DalavanCloud / Genesis Primary Menu (Below Header) Fluid
Created March 7, 2019 02:35 — forked from cobaltapps/Genesis Primary Menu (Below Header) Fluid
Making your Genesis Primary Menu Fluid by "breaking it out" of your main site container.
/* Fluid Primary Menu (Below Header) */
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before', 'genesis_do_nav' );
/* end Fluid Menus */
@DalavanCloud
DalavanCloud / Genesis Secondary Menu (Above Header) Fluid
Created March 7, 2019 02:34 — forked from cobaltapps/Genesis Secondary Menu (Above Header) Fluid
Making your Genesis Secondary Menu Fluid by "breaking it out" of your main site container.
/* Fluid Secondary Menu (Above Header) */
remove_action( 'genesis_before_header', 'genesis_do_subnav' );
add_action( 'genesis_before', 'genesis_do_subnav' );
/* end Fluid Menus */
@DalavanCloud
DalavanCloud / Genesis Secondary Menu (Below Header) Fluid
Created March 7, 2019 02:34 — forked from cobaltapps/Genesis Secondary Menu (Below Header) Fluid
Making your Genesis Secondary Menu Fluid by "breaking it out" of your main site container.
/* Fluid Secondary Menu (Below Header) */
remove_action( 'genesis_before_header', 'genesis_do_subnav' );
add_action( 'genesis_before', 'genesis_do_subnav' );
/* end Fluid Menus */