Skip to content

Instantly share code, notes, and snippets.

View seothemes's full-sized avatar

SEO Themes seothemes

View GitHub Profile
@seothemes
seothemes / customize.php
Created May 9, 2017 14:35
Dynamic widget areas
<?php
/**
* Register setting and control with the Customizer.
*/
function dynamic_customizer_register( $wp_customize ) {
// Add setting.
$wp_customize->add_setting(
'dynamic_widget_areas',
@seothemes
seothemes / page-builder.php
Created May 22, 2017 04:20
Genesis page template for Beaver Builder.
<?php
/**
* Template Name: Page Builder
*
* This file adds the page builder template to the Genesis Starter theme.
* It removes everything in between the header and footer leaving
* a blank template that is compatibale with page builder plugins.
*
* @package GenesisStarter
* @link https://seothemes.net/genesis-starter
@seothemes
seothemes / move-gf-js-footer.php
Created May 29, 2017 05:08
Move gravity forms JS to the footer.
@seothemes
seothemes / ee-permission.sh
Created June 15, 2017 07:26
EasyEngine /wp-content permission fix.
chown -Rf www-data:www-data /var/www/example.com/htdocs/wp-content
@seothemes
seothemes / combine-scss.sh
Last active June 29, 2017 01:28
Combine multiple scss files into one
cat _*.scss > merged.scss
@seothemes
seothemes / contact-page.html
Last active July 7, 2017 07:52
Studio Pro Theme Snippets
<div class="one-third first">
<a href="#"><i class="icon-map-pin"></i> 123 Fourth Street, Los Angeles CA</a>
<a href="#"><i class="icon-phone"></i> 1300 123 456</a>
<a href="#"><i class="icon-envelope"></i> info@studio.com</a> <p>Next steps proximity strategic partners traction. In the queue pivot next steps value-add next level. Pipeline organic hackathon.</p>
<a href="#"><i class="icon-facebook"></i></a>
<a href="#"><i class="icon-twitter"></i></a>
<a href="#"><i class="icon-dribbble"></i></a>
</div>
<div class="two-thirds"> [ninja_form id=1] </div>
@seothemes
seothemes / pricing-table.html
Created July 7, 2017 09:56
Studio Pro Price Tables
<h3>Two Columns</h3>
<p>&nbsp;</p>
<div class="pricing-table">
<div class="one-half first">
<strong>Price</strong>
<span>A short description</span>
<small>$</small><big>99.00</big>
<p></p>
<ul>
<li>First feature</li>
@seothemes
seothemes / page-narrow.php
Created July 27, 2017 02:06
Studio Pro Narrow Template
<?php
/**
* Template Name: Narrow Content
*
* This file adds the narrow content page template to the Studio Pro Theme.
*
* @package Studio Pro
* @author SeoThemes
* @license GPL-2.0+
* @link https://seothemes.com/themes/studio-pro
@seothemes
seothemes / sticky-nav.js
Created August 3, 2017 03:51
Sticky Primary Nav for Genesis Sample theme
( function ($) {
// Make nav fixed.
$( document ).ready(function() {
$( '.nav-primary' ).css( {
'position': 'absolute',
'left': '0',
'width': '100%',
'z-index': '99'
} ).delay( 1 ).css( 'top', $( '.site-header' ).height() );
@seothemes
seothemes / before-footer.html
Last active August 3, 2017 07:21
Studio Pro widgets