Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Several Methods to Remove Genesis Pagination from iThemes Exchange Store Pages - https://amethystwebsitedesign.com/remove-genesis-pagination-from-ithemes-exchange-store-pages/
<?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' );
<?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' );
}
}
<?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
You can’t perform that action at this time.