Support » Theme: Travelify » Make Feature Slider available in all pages and post

  • Resolved younten

    (@younten)


    How do I make the feature slider available throughout the site, not just on homepage or frontpage.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Silkalns

    (@silkalns)

    This is not the cleanest way to add the slider to all pages since you will lose option to upgrade to latest theme version without losing customizations but it’s the easiest way.

    First of all you need to enable slider script to be printed in all pages except just frontpage. You can do that by opening second functions.php file located in Theme folder – library – functions.

    And replace this snippet on line 46:

    if( ( is_home() || is_front_page() ) && "0" == $options[ 'disable_slider' ] ) {

    with

    if( "0" == $options[ 'disable_slider' ] ) {

    Save changes. Now open file called header-extensions.php located in Theme folder – library – structure. And see line 257.

    Now replace this:

    <?php
    		if( is_home() || is_front_page() ) {
    			if( "0" == $options[ 'disable_slider' ] ) {
    				if( function_exists( 'travelify_pass_cycle_parameters' ) )
       				travelify_pass_cycle_parameters();
       			if( function_exists( 'travelify_featured_post_slider' ) )
       				travelify_featured_post_slider();
       		}
       		}

    with

    <?php
    			if( "0" == $options[ 'disable_slider' ] ) {
    				if( function_exists( 'travelify_pass_cycle_parameters' ) )
       				travelify_pass_cycle_parameters();
       			if( function_exists( 'travelify_featured_post_slider' ) )
       				travelify_featured_post_slider();
       		}

    This should do the trick

    Thanks a lot Mr.Silkalns.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Make Feature Slider available in all pages and post’ is closed to new replies.