Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2133822
Soledad Page 2 Layout
Closed

Comments

  • yellowbord started the conversation

    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

  •  2,699
    PenciDesign replied

    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