Skip to content
Public Ticket #32527

Soledad Page 2 Layout

Conversation thread

PenciDesign replied

Staff Reply

Hi,

To do that, please try add more this code at the end of functions.php file - check this image:

/**
 * Hide featured slider in next page
 */
if( ! function_exists( 'penci_hide_featured_slider_next_page' ) ) {
    function penci_hide_featured_slider_next_page( $data ) {
        $paged = get_query_var( 'paged', 1 );
        if( is_home() && $paged > 1 ) {
            return false;
        } else {
            return $data;
        }
    }
    add_filter( 'theme_mod_penci_featured_slider', 'penci_hide_featured_slider_next_page' );
}
/**
 * Hide featured categories in next page
 */
if( ! function_exists( 'penci_hide_featured_category_next_page' ) ) {
    function penci_hide_featured_category_next_page( $data ) {
        $paged = get_query_var( 'paged', 1 );
        if( is_home() && $paged > 1 ) {
            return '';
        } else {
            return $data;
        }
    }
    add_filter( 'theme_mod_penci_home_featured_cat', 'penci_hide_featured_category_next_page' );
}

Best Regards,

PenciDesign

yellowbord started the conversation

Conversation Start

Hi there! I am using Soledad with Magazine 2 Layout & Featured Slider on top. Below the Featured articles I am showing 8 latests posts in descending order. After that the pagination starts. When i click on "older entries" a page is loading that also contains the Featured Slider and the Magazine Layout.

I want the Magazine Layout & Featured Slider only for the website's front page. All other pages (pagination) should have a regular Grid Layout.

How can i set this up?

Thanks for your help!

Julia

Want to join this conversation or access attachments? Sign in first.