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 | |
//* Remove the entry meta in the entry header | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); | |
remove_action ('genesis_loop', 'genesis_do_loop'); // Remove the standard loop | |
add_action( 'genesis_loop', 'custom_do_loop' ); // Add custom loop | |
function custom_do_loop() { |
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
add_action( 'pre_get_posts', 'sk_show_titles_only_category_pages' ); | |
/** | |
* Show Linked Titles Only for Posts in Category Pages | |
* | |
* @author Sridhar Katakam | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/customize-the-wordpress-query/ | |
* @param object $query data | |
* | |
*/ |
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 | |
/** | |
* The idea (advanced version) of using Masonry in WordPress was taken from Sridhar Katakam's blog post (Link Below). | |
* Here we are applying the idea in a different way. In this specific scene, we only need the Masonry goodness on Main Page. | |
* Link - http://sridharkatakam.com/using-masonry-genesis-pinterest-like-layout/ | |
* | |
* NOTE: Here we did not use Masonry Brick for Image and CSS, as done in Sridhar's Tutorial. As, we already done some css | |
* work for .entry and gave it a fixed width; and images in this scene were not featured images or images directly fom post. | |
* |
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: Filterable Portfolio | |
* | |
* By Sridhar Katakam (http://sridharkatakam.com) based on Adapt Theme (http://www.wpexplorer.com/adapt-free-responsive-wordpress-theme/) | |
*/ | |
?> | |
<?php |
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: Office Hours Template | |
* Description: Used as a page template to show page contents, followed by a loop | |
* through the "Genesis Office Hours" category | |
*/ | |
// Add our custom loop | |
add_action( 'genesis_loop', 'cd_goh_loop' ); |
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_loop', 'be_custom_loop' ); | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
function be_custom_loop() { | |
global $post; | |
// arguments, adjust as needed | |
$args = array( |
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 | |
/* Remove tags inside shortcodes | |
------------------------------------------------------------ */ | |
function wpex_fix_shortcodes($content){ | |
$array = array ( | |
'<p>[' => '[', | |
']</p>' => ']', |
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 | |
/* Move post info above post title | |
------------------------------------------------------------ */ | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12); | |
add_action( 'genesis_entry_header', 'genesis_post_info', 9 ); |
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 | |
/* Filter the site Title in Genesis | |
------------------------------------------------------------ */ | |
add_filter('genesis_seo_title', 'jmd_site_title' ); | |
function jmd_site_title( $title ) { | |
// Change text as you wish | |
$custom_title = '<span>JM</span>Design'; |