Skip to content

Instantly share code, notes, and snippets.

@cobaltapps
cobaltapps / genesis-sample-2.2.2-fixed-header.css
Last active March 7, 2019 02:21
Genesis Sample 2.2.2 Fixed Header CSS (Header Height reduced to 80px)
/* Fixed Header */
.site-header {
min-height: 80px;
position: fixed;
width: 100%;
z-index: 999;
}
.site-header .wrap {
<?php
add_action( 'wp_head', 'custom_genesis_page_builder_styles' );
/**
* Echo the necessary "Full Page Width" styles into the head of the page.
* Credit for the following CSS goes to the developer of the "Genesis Dambuster"
* Plugin as this CSS is an edited version of that Plugin's full-width.css file.
*/
function custom_genesis_page_builder_styles() {
echo '
<style type="text/css">
@cobaltapps
cobaltapps / Disable Responsive Design
Created September 30, 2014 15:10
Disable Responsive Design Functionality in Dynamik Website Builder (used in a tutorial to disable Responsive Design on particular pages and posts).
<?php remove_action( 'genesis_meta', 'dynamik_responsive_viewport' ); ?>
<?php
get_header(); ?>
<div id="home-hook-wrap" class="clearfix">
<?php do_action( 'dynamik_hook_home' ); ?>
</div><!-- end #home-hook-wrap -->
<?php
get_footer();
?>
@cobaltapps
cobaltapps / Genesis-Dynamik Website Builder "Twitter Bootstrap" Column Class Styles
Created January 22, 2014 18:50
The are the Genesis "Twitter Bootstrap" Column Class Styles found in Dynamik Website Builder as of DWB version 1.4.2
/* Column Classes
--------------------------------------------- */
.five-sixths,
.four-sixths,
.four-fifths,
.one-fifth,
.one-fourth,
.one-half,
.one-sixth,
.label-fluid-page #inner,
.label-fluid-page #content-sidebar-wrap,
.label-fluid-page #content {
width: 100%;
max-width: 100%;
padding: 0;
}
.top-row-wrap {
background: #eee;
}
<?php
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
remove_action( 'genesis_loop', 'genesis_do_loop' );
genesis();
?>
.label-fluid-page .site-inner,
.label-fluid-page .content-sidebar-wrap,
.label-fluid-page .content {
width: 100%;
max-width: 100%;
padding: 0;
}
.top-row-wrap {
background: #eee;
}
<div class="top-row-wrap">
<div class="top-row-wrap-inner">
<?php echo do_shortcode( '[top_left]' ); ?><?php echo do_shortcode( '[top_right]' ); ?>
</div>
</div>
<div class="bottom-row-wrap">
<div class="bottom-row-wrap-inner">
<?php echo do_shortcode( '[bottom_left]' ); ?><?php echo do_shortcode( '[bottom_right]' ); ?>
</div>
<?php
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'custom_home_loop' );
function custom_home_loop() {
?>
<?php echo do_shortcode( '[top_left]' ); ?><?php echo do_shortcode( '[top_right]' ); ?>
<?php echo do_shortcode( '[bottom_left]' ); ?><?php echo do_shortcode( '[bottom_middle]' ); ?><?php echo do_shortcode( '[bottom_right]' ); ?>
<?php