Skip to content

Instantly share code, notes, and snippets.

View seothemes's full-sized avatar

SEO Themes seothemes

View GitHub Profile
@seothemes
seothemes / custom-header-fix.php
Created August 4, 2017 00:23
Studio Pro v2.0.2 custom header fix.
<?php // DO NOT INCLUDE THIS LINE
/**
* Custom header image callback.
*
* Loads image or video depending on what is set.
* If a featured image is set it will override the
* header image. If a video is set it will be used
* on the home page only.
*
@seothemes
seothemes / page-custom.php
Created October 26, 2017 23:21
Business Pro Custom Template (No Hero Section)
<?php
/**
* Template Name: Custom Template
*
* @package Business Pro
* @link https://seothemes.com/themes/business-pro
* @author Seo Themes
* @copyright Copyright © 2017 Seo Themes
* @license GPL-2.0+
*/
@seothemes
seothemes / credits.php
Last active April 16, 2019 14:59
Change Footer Credits
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Change the footer text
add_filter('genesis_footer_creds_text', 'sp_footer_creds_filter');
function sp_footer_creds_filter( $creds ) {
$creds = '[footer_copyright] &middot; <a href="http://mydomain.com">My Custom Link</a> &middot; Theme by <a href="https://seothemes.com/" title="SEO Themes">SEO Themes</a>';
return $creds;
}
@seothemes
seothemes / pricing-tables.html
Created November 28, 2017 08:41
Fitness Pro pricing tables
<div class="pricing-table">
<div class="one-half first">
<h5>Basic</h5> <small>$</small><b>99</b>
<ul>
<li>First feature</li>
<li>Second feature</li>
<li>Third feature</li>
</ul>
</div>
<div class="one-half">
@seothemes
seothemes / menu-item-hover.css
Last active November 28, 2017 08:53
Studio Pro Menu Item Hover
.nav-primary a:hover,
.nav-primary a:focus,
.nav-primary .current-menu-item>a,
.nav-primary .sub-menu .current-menu-item>a:hover,
.nav-primary .sub-menu .current-menu-item>a:focus {
-webkit-text-fill-color: #999;
text-fill-color: #999;
}
@seothemes
seothemes / contact-page.html
Last active December 8, 2017 14:41
Studio Pro Contact Page
<div class="one-third first">
<p><a href="#"><i class="icon-map-pin"></i> 123 Fourth Street, Los Angeles CA</a></p>
<p><a href="#"><i class="icon-phone"></i> 1300 123 456</a></p>
<p><a href="#"><i class="icon-envelope"></i> [email protected]</a></p>
<p>Next steps proximity strategic partners traction. In the queue pivot next steps value-add next level. Pipeline organic hackathon.</p>
<p>
<a href="#"><i class="icon-facebook"></i></a>
<a href="#"><i class="icon-twitter"></i></a>
<a href="#"></a><a href="#"><i class="icon-dribbble"></i></a>
</p>
@seothemes
seothemes / custom-genesis-widget-column-classes.php
Created December 10, 2017 22:24
Add additional column classes to Genesis Widget Column Classes plugin.
<?php // Do not include this line.
add_filter( 'genesis_widget_column_classes', 'custom_widget_column_classes' );
/**
* Custom column widths.
*
* Adds additional column classes to Genesis Widget Column Classes plugin
* including fifths and full-width classes.
*
* @return array
@seothemes
seothemes / genesis-customizer-theme-settings.php
Last active April 16, 2019 15:05
Demo of Genesis theme settings in the Customizer
<?php
// Add color scheme support for demo.
add_theme_support( 'genesis-style-selector', array(
'dark' => 'Dark',
'light' => 'Light',
) );
add_action( 'customize_register', 'genesis_demo_customizer_settings', 20 );
/**
@seothemes
seothemes / get-attachment-id-from-url.php
Created December 18, 2017 10:55
Get an attachment ID given a URL
<?php
/**
* Get an attachment ID given a URL.
*
* @param string $url URL to check.
*
* @return int Attachment ID on success, 0 on failure.
*/
function get_attachment_id( $url ) {
@seothemes
seothemes / corporate-pro-front-page-7.html
Created December 21, 2017 04:13
Corporate Pro Front Page 7 Pricing Table
<p>
Choose the perfect plan for your business.
</p>
<div class="pricing-table">
<div class="one-third first">
<h4>Free</h4>
<strong>$0</strong>
<em>per month</em>
<ul>