Skip to content

Instantly share code, notes, and snippets.

@cre8tivediva
cre8tivediva / page_blog.php
Created Aug 7, 2021 — forked from studiopress/page_blog.php
Genesis page content on blog template.
View page_blog.php
<?php
//* Template Name: Blog
//* Show page content above posts
add_action( 'genesis_loop', 'genesis_standard_loop', 5 );
genesis();
@cre8tivediva
cre8tivediva / dequeue-script-example.php
Created Jan 6, 2021 — forked from helgatheviking/dequeue-script-example.php
Code snippet for dequeing a script on the single produt page
View dequeue-script-example.php
function kia_unload_script() {
if ( function_exists( 'is_product' ) && is_product() ) {
wp_dequeue_script( 'wc-single-product' );
}
}
add_action( 'wp_enqueue_scripts', 'kia_unload_script', 20 );
@cre8tivediva
cre8tivediva / Force content-sidebar layout on blog (Genesis) Force content-sidebar layout on blog posts when your default layout is full-width content
View Force content-sidebar layout on blog (Genesis)
//* Force sidebar on blog posts and archives
add_filter( 'genesis_pre_get_option_site_layout', 'nabm_force_layout' );
function nabm_force_layout( $opt ) {
if ( is_single() || is_archive() ) {
$opt = 'content-sidebar';
return $opt;
}
}
View color-button.css
/* Color Buttons
------------------------------------------------------------ */
.button-blue,
.button-gray,
.button-green,
.button-purple,
.button-red,
.button-yellow {
color: #fff;
@cre8tivediva
cre8tivediva / Clear fix for Genesis Column Classes
Created Apr 1, 2018 — forked from ifamily/Clear fix for Genesis Column Classes
This CSS will fix problems caused by Genesis Column Classes of uneven height. Just add a div with the class name of clear-line to your code. Then add this to your .css file.
View Clear fix for Genesis Column Classes
/*
Clear fix for column classes
---------------------------------------------------------------------------------------------------- */
.clear-line:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
@cre8tivediva
cre8tivediva / columns.css
Created Apr 1, 2018 — forked from studiopress/columns.css
Genesis column classes.
View columns.css
/* Column Classes
Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css
--------------------------------------------- */
.five-sixths,
.four-sixths,
.one-fourth,
.one-half,
.one-sixth,
.one-third,
View simple-social-centered.css
/* Align Simple Social Icons Centered */
.simple-social-icons ul.alignright,
.simple-social-icon ul.alignleft {
text-align: center;
}
.simple-social-icons ul.alignright li,
.simple-social-icons ul.alignleft li {
display: inline-block;
float: none;