Created
January 26, 2015 18:46
-
-
Save mjsdiaz/2ea1f97b84f77f01aba0 to your computer and use it in GitHub Desktop.
Several Methods to Remove Genesis Pagination from iThemes Exchange Store Pages - https://amethystwebsitedesign.com/remove-genesis-pagination-from-ithemes-exchange-store-pages/
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 this line before adding to your functions.php or /exchange/functions.php | |
| //Remove Genesis pagination from Exchange Store page | |
| function my_remove_nav_in_store() { | |
| remove_action( 'genesis_after_endwhile', 'genesis_posts_nav' ); | |
| } | |
| add_action( 'it_exchange_content_store_after_wrap', 'my_remove_nav_in_store' ); |
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 this line before adding to your functions.php | |
| // Remove Genesis pagination from all iThemes Exchange pages | |
| add_action ( 'genesis_after_entry', 'awd_remove_pagination' ); | |
| function awd_remove_pagination() { | |
| if ( it_exchange_is_page() ) { | |
| remove_action( 'genesis_after_endwhile', 'genesis_posts_nav' ); | |
| } | |
| } |
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 | |
| /** | |
| * iThemes Exchange Page | |
| * | |
| * (Template for Exchange generated ghost pages, automatically used) | |
| * | |
| * Create the file in /genesis-child-theme/exchange/page.php | |
| * | |
| * @package iThemes Exchange Templates | |
| * @author Marcy Diaz, Amethyst Website Design | |
| * @license GPL-2.0+ | |
| * | |
| */ | |
| // Add awd-it-exchange-page body class - optional | |
| add_filter( 'body_class', 'awd_exchange_body_class' ); | |
| function awd_exchange_body_class( $classes ) { | |
| $classes[] = 'awd-it-exchange-page'; | |
| return $classes; | |
| } | |
| // Force full-width-content layout setting - optional | |
| add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
| // Remove pagination from iThemes Exchange pages | |
| remove_action( 'genesis_after_endwhile', 'genesis_posts_nav' ); | |
| // Genesis loop | |
| genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment