This file contains hidden or 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 search_message() { | |
| if (is_search()){ | |
| echo '<div class="no-results">'; | |
| echo '<h2>No items could be found for "'.get_search_query().'"</h2>'; | |
| echo '</div>'; | |
| } | |
| } | |
| add_action('thesis_empty_loop','search_message'); |
This file contains hidden or 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( 'genesis_after_content_sidebar_wrap', 'genesis_cpt_content' ); | |
| function genesis_cpt_content(){ | |
| if ( is_user_logged_in() ) { | |
| /* Display the different taxonomy topics */ | |
| $taxonomy = 'genesis_content'; | |
| $terms = get_terms( $taxonomy, '' ); | |
| echo '<div class="course-dashboard">'; | |
| echo '<div class="row clearfix">'; | |
| echo '<div class="first one-half box course-list">'; |
This file contains hidden or 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( 'genesis_loop', 'genesis_category_content' ); | |
| function genesis_category_content(){ | |
| if ( is_user_logged_in() ) { | |
| $category = get_category( get_query_var( 'cat' ) ); | |
| $args = array( | |
| 'cat' => $category->cat_ID, | |
| 'posts_per_page' => 12, | |
| 'paged' => get_query_var( 'paged' ), | |
| 'order' => 'ASC' |
This file contains hidden or 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 header, navigation, breadcrumbs, footer widgets, footer | |
| add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
| remove_action( 'genesis_header', 'genesis_header_markup_open', 5 ); | |
| remove_action( 'genesis_header', 'genesis_do_header' ); | |
| remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ); | |
| remove_action( 'genesis_after_header', 'genesis_do_nav' ); | |
| remove_action( 'genesis_after_header', 'genesis_do_subnav' ); | |
| remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs'); |
This file contains hidden or 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 | |
| /** | |
| * Adding all Asynchronous Javascripts to posts and pages | |
| */ | |
| function add_bulk_async_sdk() { ?> | |
| <script> | |
| (function(doc, script) { | |
| var js, | |
| fjs = doc.getElementsByTagName(script)[0], | |
| add = function(url, id) { |
This file contains hidden or 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
| @import url("../genesis/style.css"); | |
| /* =Theme customization starts here | |
| -------------------------------------------------------------- */ |
This file contains hidden or 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: Test Genesis Child Theme | |
| Theme URI: http://www.yourdomainname.com | |
| Description: This is a description for your child theme | |
| Author: Wonder Woman | |
| Author URI: http://www.yourdomainname.com | |
| Version: 1.0 | |
| Tags: | |
| Template: genesis |
This file contains hidden or 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 | |
| //* Load the Genesis core files | |
| include_once( get_template_directory() . '/lib/init.php' ); | |
| //* Child theme Definitions | |
| define( 'CHILD_THEME_NAME', __( 'Amelia Child Theme', 'genesiamelia' ) ); | |
| define( 'CHILD_THEME_URL', 'http://ameliabriscoe.com' ); | |
| define( 'CHILD_THEME_VERSION', '1.0' ); | |
| //* Add HTML5 markup structure |
This file contains hidden or 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
| @import url("../genesis/style.css"); | |
| /* =Theme customization starts here | |
| -------------------------------------------------------------- */ | |
| body{ | |
| background-color: #333333; | |
| } | |
| .site-header{ |