TITLE:
Start building your brand for free.
CONTENT:
[gravityform id="2" title="false" description="false"]
Sign up and we'll email you a free PDF about Personal Branding. We respect your privacy, and never share your information.
TITLE:
Start building your brand for free.
CONTENT:
[gravityform id="2" title="false" description="false"]
Sign up and we'll email you a free PDF about Personal Branding. We respect your privacy, and never share your information.
<?php | |
//* Force full-width-content layout for Gutenberg pages | |
add_filter( 'genesis_site_layout', 'setGutenbergPageLayout' ); | |
function setGutenbergPageLayout(){ | |
if ( function_exists( 'has_blocks' ) && has_blocks( get_the_ID() ) ) { | |
return 'full-width-content'; | |
} | |
} |
<?php | |
/** | |
* Customize product data tabs | |
*/ | |
add_filter( 'woocommerce_product_tabs', 'woo_custom_reviews_tab', 98 ); | |
function woo_custom_reviews_tab( $tabs ) { | |
$tabs['reviews']['callback'] = 'show_custom_reviews_tab_content'; // Custom description callback |
/* // EQUAL HEIGHT BOXES // */ | |
equalheight = function (container) { | |
var currentTallest = 0, | |
currentRowStart = 0, | |
rowDivs = new Array(), | |
$el, | |
topPosition = 0; | |
$(container).each(function () { |
/* RUN THESE SEARCHES IN THE 'wp_posts' TABLE */ | |
/* TOPICS */ | |
SELECT DISTINCT user_email FROM wp_users,wp_posts WHERE ((wp_posts.post_author = wp_users.ID) AND (wp_posts.post_type = 'topic') AND (wp_posts.post_status = 'publish')) | |
/* REPLIES */ | |
SELECT DISTINCT user_email FROM wp_users,wp_posts WHERE ((wp_posts.post_author = wp_users.ID) AND (wp_posts.post_type = 'reply') AND (wp_posts.post_status = 'publish')) |
[data-type="atomic-blocks/ab-container"] > .editor-block-list__block-edit { | |
border: 2px dotted #ccc; | |
} |
<?php | |
/** | |
* Hello! Pro - Gutenberg 'Blocks' page template | |
* | |
* A template to force full-width layout, remove breadcrumbs, and remove the page title. | |
* | |
* Template Name: Blocks | |
* | |
* @package Hello Pro | |
* @author StudioPress |
<?php | |
/** | |
* This code adds a custom Shortcode to display a "Featured Post." | |
*/ | |
function featuredpost_shortcode( $atts ) { | |
// Var defaults | |
$defaults['id'] = 1; | |
$postID = ''; |
<?php | |
//* Enqueue Script | |
add_action( 'wp_enqueue_scripts', 'yourtheme_enqueue_globaljs_script' ); | |
function yourtheme_enqueue_globaljs_script() { | |
wp_enqueue_script( 'global-js', get_stylesheet_directory_uri() . "/global.js", array( 'jquery' ), '1.0', true ); | |
} |
<?php | |
//* Function to convert Hex colors to RGBA | |
function hex2rgba( $color, $opacity = false ) { | |
$defaultColor = 'rgb(0,0,0)'; | |
// Return default color if no color provided | |
if ( empty( $color ) ) { | |
return $defaultColor; |