Skip to content

Instantly share code, notes, and snippets.

View seothemes's full-sized avatar

SEO Themes seothemes

View GitHub Profile
<?php
/**
* This file adds the starter content to the Genesis Starter theme.
*
* @package Genesis Starter
* @link https://make.wordpress.org/core/2016/11/30/starter-content-for-themes-in-4-7/
* @author Seo Themes
* @copyright Copyright © 2017 Seo Themes
* @license GPL-2.0+
*/
@seothemes
seothemes / customizer-widget-titles.php
Last active February 24, 2017 12:35
An example of how to add widget titles using the Customizer.
// Register demo widget area.
genesis_register_sidebar( array(
'id' => 'demo_widget',
'name' => __( 'Demo Widget', 'mytheme' ),
'description' => __( 'This is the demo widget area.', 'mytheme' ),
) );
// Hook demo widget area before site footer.
function mytheme_demo_widget_area() {
<?php
/**
* Only load JMIG on specific pages.
*/
function jmig_pages() {
if ( ! is_page( array( 148, 150 ) ) ) {
remove_action( 'wp_enqueue_scripts', 'jmig_css', 99 );
remove_action( 'wp_enqueue_scripts', 'jmig_js' );
@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 / genesis-flexible-widgets.php
Created March 28, 2017 06:22
Add flexible column classes to widget areas.
<?php
/**
* Add flexible widget classes.
*
* @param string $id Widget area ID.
* @return string $class Flexible widgets CSS class.
*/
function starter_widgets_flex_class( $id ) {
global $sidebars_widgets;
@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