WordPress.org

Ready to get started?Download WordPress

Forums

Travelify
[resolved] Make Feature Slider available in all pages and post (3 posts)

  1. younten
    Member
    Posted 10 months ago #

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

  2. Silkalns
    Member
    Theme Author

    Posted 10 months ago #

    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

  3. younten
    Member
    Posted 10 months ago #

    Thanks a lot Mr.Silkalns.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.