This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: Masonry Grid Scroll | |
*/ | |
/* | |
* @author Frank Schrijvers | |
* @link https://www.wpstud.io | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.custom-title .entry-title { | |
background: none repeat scroll 0 0 #F96E5B; | |
color: #FFFFFF; | |
font-size: 48px; | |
font-size: 4.8rem; | |
font-weight: 700; | |
padding: 80px 60px; | |
padding: 8rem 6rem; | |
text-align: center; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mp_remove_body_classes($classes, $class){ | |
foreach($classes as &$str){ | |
if(strpos($str, "YOUR_CLASS_HERE") > -1){ | |
$str = ""; | |
} | |
} | |
return $classes; | |
} | |
add_filter("body_class", "mp_remove_body_classes", 10, 2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: Genesis Sample | |
Description: This is the sample theme created for the Genesis Framework. | |
Author: Jamie mitchell | |
Author URI: http://demo.jamiemitchelldesign.com.au// | |
Version: 0.0.1 | |
Tags: black, orange, white, one-column, two-columns, three-columns, fixed-width, custom-menu, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready | |
Template: genesis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* don't copy php tag above | |
//* add following code to functions.php: | |
//* Load backstretch js | |
/** Add metabox for backstretch default/fallback background image */ | |
add_action( 'genesis_theme_settings_metaboxes', 'themename_theme_settings_metaboxes', 10, 1 ); | |
function themename_theme_settings_metaboxes( $pagehook ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Reposition the primary navigation menu | |
remove_action( 'genesis_after_header', 'genesis_do_nav' ); | |
add_action( 'genesis_after_header', 'genesis_do_nav', 15 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('genesis_after_header','portfolio_title'); | |
function portfolio_title() { ?> | |
<div class="portfolio-title"> | |
<div class="wrap"> | |
<h1 class="entry-title" itemprop="headline"> | |
<span class="portfolio-headline">Portfolio » </span> | |
<?php the_title(); ?> | |
</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Template Name: Portfolio */ | |
/** | |
* Portfolio Listing | |
* | |
*/ | |
function be_portfolio_listing() { | |
$args = array( | |
'post_type' => 'portfolio', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Add markup for homepage portfolio | |
add_action( 'genesis_after_header', 'minimum_home_portfolio', 20 ); | |
function minimum_home_portfolio() { | |
printf( '<div %s>', genesis_attr( 'home-portfolio' ) ); | |
genesis_structural_wrap( 'home-portfolio' ); |
OlderNewer