View additional.css
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
/* Genesis Simple Share - uses Genericons | |
--------------------------------------------- */ | |
/* Centers the icons */ | |
.share-before, .share-after { | |
overflow: auto; | |
text-align: center; | |
} | |
.sharrre { |
View functions.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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
/** | |
* Rename slug in Genesis Portfolio Plugin. | |
* | |
* @author Anita Carter | |
* @link https://cre8tivediva.com/rename-genesis-portfolio-slug | |
*/ | |
function rename_portfolio_custom_post_type_slug() { |
View additional.css
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
/* Set the alignment of the Genesis Simple Share Icons | |
-------------------------------------------------------- */ | |
.sharre-icon-wrap { | |
margin: 20px 0; | |
text-align: center; | |
} |
View page_blog.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: Blog | |
//* Show page content above posts | |
add_action( 'genesis_loop', 'genesis_standard_loop', 5 ); | |
genesis(); |
View style.css
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
/* Create a page called Blog. | |
Go to Layout Settings. Add the word "blog" (without quotes) to the Custom Body Class, then Save. | |
Add the following code to the stylesheet or to the Additional CSS Box. | |
*/ | |
/* Blog Page Grid Layout | |
-----------------------------------------------------*/ | |
.blog .content .entry { | |
border:0; | |
float:left; |
View functions.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
//* Force Full Width Layout on Search Results Pages | |
function c8d_posts_full_layout() { | |
if( is_search () ){ | |
return 'full-width-content'; | |
} | |
} | |
add_filter( 'genesis_site_layout', 'c8d_posts_full_layout' ); |
View dequeue-script-example.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
function kia_unload_script() { | |
if ( function_exists( 'is_product' ) && is_product() ) { | |
wp_dequeue_script( 'wc-single-product' ); | |
} | |
} | |
add_action( 'wp_enqueue_scripts', 'kia_unload_script', 20 ); |
View functions.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
//* Add pagination to Genesis Author Archive | |
function author_posts_per_page( $query ) { | |
if (!is_admin() && is_author() ) | |
$query->set( 'posts_per_page', 5 ); | |
} | |
add_filter('parse_query', 'author_posts_per_page'); |
View bp-custom.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
/** | |
* Exclude users from BuddyPress members list. | |
* | |
* @param array $args args. | |
* | |
* @return array | |
*/ | |
function buddydev_exclude_users( $args ) { | |
// do not exclude in admin. | |
if ( is_admin() && ! defined( 'DOING_AJAX' ) ) { |
View page_landing.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 | |
/** | |
* Custom Simply Pro Landing Page | |
* | |
* This file adds the custom landing page template to the Simply Pro Theme. | |
* | |
* Template Name: Landing | |
* | |
* @package Simply Pro | |
* @author Cre8tive Diva |
NewerOlder