Skip to content

Instantly share code, notes, and snippets.

View JiveDig's full-sized avatar

Mike Hemberger JiveDig

View GitHub Profile
@JiveDig
JiveDig / mai-lifestyle-homepage.json
Created October 15, 2018 20:55
Mai Lifestyle Pro Homepage demo import JSON
{"home_url":"https:\/\/maitheme.com\/mai-lifestyle-pro","layout":"full-width-content","banner_id":false,"hide_banner":"0","hide_breadcrumbs":"0","hide_featured":"1","excerpt":"Mai Lifestyle Pro is among StudioPress' top-3 best selling themes for the last five months in a row, Mai Theme is currently powering some of the most high-traffic websites on the Internet.","images":{"618":"https:\/\/maitheme.com\/mai-lifestyle-pro\/wp-content\/uploads\/2017\/05\/brooke-cagle-199262.jpg","1573":"https:\/\/maitheme.com\/mai-lifestyle-pro\/wp-content\/uploads\/2018\/01\/brooke-cagle-157923.jpg"},"sections":[{"bg":"#f0f0f0","image_id":"","image":false,"overlay":"","inner":"","height":"xs","content_width":"sm","align_content":"","align":"center","text_size":"xl","id":"","class":"","context":"","title":"","content":"<em>\u201cThe Perfect Theme for Wellness, Food\/Recipe, Fitness, Lifestyle, or Small Business Websites and Blogs.\u201d<\/em>"},{"bg":"#ffffff","image_id":"","image":false,"overlay":"","inner":"","height":"lg","c
{"home_url":"https:\/\/maitheme.com\/mlpexport","layout":"full-width-content","banner_id":false,"hide_banner":"0","hide_breadcrumbs":"0","hide_featured":"1","excerpt":"","images":{"618":"https:\/\/maitheme.com\/mlpexport\/wp-content\/uploads\/2017\/05\/brooke-cagle-199262.jpg","1573":"https:\/\/maitheme.com\/mlpexport\/wp-content\/uploads\/2018\/01\/brooke-cagle-157923.jpg"},"sections":[{"bg":"#f0f0f0","image_id":"","image":false,"overlay":"","inner":"","height":"xs","content_width":"sm","align_content":"","align":"center","text_size":"xl","id":"","class":"","context":"","title":"","content":"<em>\u201cThe Perfect Theme for Wellness, Food\/Recipe, Fitness, Lifestyle, or Small Business Websites and Blogs.\u201d<\/em>"},{"bg":"#ffffff","image_id":"","image":false,"overlay":"","inner":"","height":"lg","content_width":"","align_content":"","align":"center","text_size":"","id":"latest-posts","class":"","context":"","title":"Latest Posts","content":"Read our latest tips, tricks, and musings below.\r\n\r\n[grid cont
@JiveDig
JiveDig / social-warfare-genesis.php
Last active March 28, 2018 18:32
Use Genesis hooks to display Social Warfare icons based on SW settings.
<?php
/**
* Use Genesis hooks to display Social Warfare icons based on SW settings.
*
* @version 1.1.0
*
* @author Mike Hemberger @JiveDig
*
* @return void
@JiveDig
JiveDig / branding-mai-theme.css
Last active March 19, 2018 20:32
Mai Theme branding colors CSS
/**
* The code in the following files will allow you to quickly customize the colors/branding of your Mai Theme powered website.
* Add the code to the theme's style.css file and adjust the colors as-needed.
*/
@JiveDig
JiveDig / mai-theme-more-link.php
Created March 14, 2018 15:58
Filter the Read More text in Mai Theme.
@JiveDig
JiveDig / facetwp-pagination-genesis-markup.php
Last active September 24, 2021 18:54
Adjust FacetWP's pager html to match Genesis markup. This allows it to inherit the Genesis theme styles. Used with [facetwp pager="true"]
<?php
/**
* Style pagination to look like Genesis.
*
* @version 1.0.0
*
* @author Mike Hemberger @JiveDig
*
* @link https://gist.github.com/JiveDig/b9810ba4c322d7757993159ed9ccb61f
@JiveDig
JiveDig / mai-menu-colors.css
Created February 9, 2018 15:09
Mai Theme navigation menu colors.
/* Header navigation link color */
.home .nav-header .current-menu-item > a,
.nav-header .nav-search,
.nav-header .nav-search:focus,
.nav-header a {
color: #323232;
}
/* Header navigation current/hover link color */
.nav-header a:hover,
@JiveDig
JiveDig / mai-button-colors.css
Created February 9, 2018 15:02
Change button colors on Mai Theme.
/* Main button color */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.entry-content .button,
.menu-item.highlight a,
.woocommerce a.button,
.woocommerce button.button,
@JiveDig
JiveDig / disable-mai-sticky-shrink-header.php
Created October 18, 2017 14:59
Disable sticky header and shrink header from Mai Pro (https://maipro.io).
<?php
/**
* Disable sticky header and shrink header from Mai Pro.
*
* @param array The existing body classes.
*
* @return array Modified classes.
*/
add_filter( 'body_class', 'prefix_disable_mai_sticky_shrink_header', 30 );
@JiveDig
JiveDig / create-new-mai-favorite.php
Created September 27, 2017 20:43
Starter code to create a new Favorite for use with Mai Favorites plugin (https://maipro.io)
<?php
$favorite_id = wp_insert_post( array(
'post_author' => 1,
'post_excerpt' => '',
'post_status' => 'publish',
'post_title' => '',
'post_type' => 'favorite',
'_thumbnail_id' => '',
'meta_input' => array(