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 #2336611
Slider
Closed

Comments

  • berriesandpassion started the conversation

    Hi i want the slider only on the HOME Page.  

    So only on the first page. Is it possible to hide it on the other sites: https://by3wp5.myraidbox.de/page/2


    best nina

  •  2,699
    PenciDesign replied

    Hi,

    To do that, please 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' );
    }
    

    Best Regards,

    PenciDesign

  • berriesandpassion replied

    perfect it worked. And one last question. Can I hide the featured Boxes as well on the other sides? 


  •  2,699
    PenciDesign replied

    Hi,

    If so, please try replace the code I sent to this code:

    /**
     * Hide featured slider & featured boxes 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' );
    }
    if( ! function_exists( 'penci_hide_featured_boxes_next_page' ) ) {
        function penci_hide_featured_boxes_next_page( $data ) {
            $paged = get_query_var( 'paged', 1 );
            if( is_home() && $paged > 1 ) {
                return true;
            } else {
                return $data;
            }
        }
        add_filter( 'theme_mod_penci_home_hide_boxes', 'penci_hide_featured_boxes_next_page' );
    }
    

    Best Regards,

    PenciDesign

  • berriesandpassion replied

    great, thank you: 

    ok one last thing: 

    and I would like to hide this part die neuesten Beiträge(see attached aswell)

  •  2,699
    PenciDesign replied

    Hi,

    Do you mean hide featured categories on next pages?

    If right, please replace the code I sent to this code:

    /**
     * Hide featured slider & featured boxes 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' );
    }
    if( ! function_exists( 'penci_hide_featured_boxes_next_page' ) ) {
        function penci_hide_featured_boxes_next_page( $data ) {
            $paged = get_query_var( 'paged', 1 );
            if( is_home() && $paged > 1 ) {
                return true;
            } else {
                return $data;
            }
        }
        add_filter( 'theme_mod_penci_home_hide_boxes', 'penci_hide_featured_boxes_next_page' );
    }
    if( ! function_exists( 'penci_hide_featured_categories_next_page' ) ) {
        function penci_hide_featured_categories_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_categories_next_page' );
    }
    


    Best Regards,

    PenciDesign

  • berriesandpassion replied

    I want to hide the part: Home page title latest posts. 

    I want this title only on the first site.

  • berriesandpassion replied

    I mean this part the title under the featured boxes

  •  2,699
    PenciDesign replied

    Hi,

    Ahh, ok. please replace the code I sent to this code:

    /**
     * Hide featured slider & featured boxes 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' );
    }
    if( ! function_exists( 'penci_hide_featured_boxes_next_page' ) ) {
        function penci_hide_featured_boxes_next_page( $data ) {
            $paged = get_query_var( 'paged', 1 );
            if( is_home() && $paged > 1 ) {
                return true;
            } else {
                return $data;
            }
        }
        add_filter( 'theme_mod_penci_home_hide_boxes', 'penci_hide_featured_boxes_next_page' );
    }
    if( ! function_exists( 'penci_hide_heading_title_next_page' ) ) {
        function penci_hide_heading_title_next_page( $data ) {
            $paged = get_query_var( 'paged', 1 );
            if( is_home() && $paged > 1 ) {
                return '';
            } else {
                return $data;
            }
        }
        add_filter( 'theme_mod_penci_home_title', 'penci_hide_heading_title_next_page' );
    }

    Best Regards,

    PenciDesign