How to add featured slider to all pages not just front page?

Hi there, like the theme, just migrated to it. Can I ask, is there a way of getting the Featured slider on every page, not just the homepage?

Yes, you can display the same slider on all pages including posts, tags, category, etc.

Find “header-extensions.php” file located in: theme folder → library → structure.

Now edit it any plain text editor such as Notepad for Windows or TextEdit for Windows.

And find line 257 that says:

if( is_home() || is_front_page() ) {

And remove this line entirely.

Now find: } on line 263/264. There are two of them one by one, but remove only one of them.

Let me know if you want to limit slider to some specific pages like archive, pages, posts. etc. Then you will need is_archive(), is_page(), is_post().

P.S You have awesome website! :slight_smile:

Hey Aigars,

Thanks so much for your quick reply. One of the reasons I went looking for a new theme was because support on my old one was poor.

I have done what you suggested, and the slider images now appear on the blog posts, but…only one image, there is no slideshow. Is there something I have missed?

Thanks again
Richard

Sorry, didn’t notice that at first.

This is free theme so you can’t expect too much support but I don’t mind helping people. :slight_smile:

Slider is powered by JavaScript and since slider is by default located only on front page, the script used to power this slider was also enabled only on front page.

So to fix this you should find file called functions.php located at theme folder → library → functions.

Fine line 46 that says

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

if( "0" == $options[ 'disable_slider' ] ) {
This should do the trick. :slight_smile:

Fantastic, you are a superstar!!!

Thank you so much, will leave you alone now!!

I would highly appreciate if you could give a 5 star rating on WordPress.org for my theme: http://wordpress.org/themes/travelify

Done, thanks again :slight_smile:

Awesome! Thank you!

Hello, thank you for your easy explanation. I have removed the slider from my home page.

I would now like to reduce the width of the slider and insert it the “content” section, this way the “right sidebar”

http://tardis1.tinygrab.com/grabs/98a6436cf0e3eb4346210cf8e06910fa0855db202f.png

If you can show me where it is I can insert the code that I removed from “header-extensions.php” page, I can resize and adjust it to fit.

Thank you. Mehdi

Mehdi,

It would be much easier to install slider as plugin (any slider plugin would work) instead of trying to move this away from header extensions. It simply requires too much work.

Great, it also work on my page. :slight_smile:

But one more question.

It is possible to get different slider for front and page sides?

I used this for a while, and while it looks good to me, other users and people whom I’ve pre-released it to have mostly found this to be distracting, so I’d like to remove it from all but the home page, like it was originally intended. If I was to do that, where would I add the original line and bracket back? I tried doing it myself, but it didn’t work…I just cannot do this code stuff. It’s hard :frowning: Here’s the section it would appear in, right? What do I need to change/do? I really appreciate this. Thank you!

if( ( '' != travelify_header_title() ) || function_exists( 'bcn_display_list' ) ) {
	?>
		<div class="page-title-wrap">
    		<div class="container clearfix">
    			<?php
	    		if( function_exists( 'travelify_breadcrumb' ) )
					travelify_breadcrumb();
				?>
			   <h3 class="page-title"><?php echo travelify_header_title(); ?></h3><!-- .page-title -->
			</div>
    	</div>
   <?php
   	}
	}

}

Thanks again!

Dear Aigar
Is there any enquiry form plugin with database.I make a table where i want to store some data into database and I want to customize this data on admin dashboard

Hi Arun,

To help keep support thread separates could you please create your own thread for your question here https://colorlibsupport.com/c/travelify-support/ instead of replying on others thread as it makes the thread messy and hard to read.

If you want to you can also add reference of this thread in your newly created thread.

We would be more than happy to help you on your new thread.

Thanks,
Movin

Hi there,
I want to see the slider on everey page and find this topic. But I can not find the code in specified files.
Is there a solution for newer versions? I am not very sure in programming php…

thanks,
Niels

As said previously this is old topic so to help keep support thread separates could you please create your own thread for your question here https://colorlibsupport.com/c/travelify-support/ instead of replying on others thread as it makes the thread messy and hard to read.

If you want to you can also add reference of this thread in your newly created thread.

We would be more than happy to help you on your new thread.