Make the Customizr home slider season based


Note :This snippet works only with the Classical style option. The Classical style option can be enabled in Appearance > Customize > Advanced > Theme Style. More about the theme style option here


Compatible with Customizr-Pro

Hi, wouldn’t be cool displaying a different slider on the front page, depending on the season?
That’s what you have to do:

  1. Create 4 sliders and name with the season’s names (lowercase)
  2. In Appearance -> Customize -> Content: home, posts, .. -> Front Page -> Slider Options
    Select a front page slider. You can use the demo slider, or whatever, but select one 😉
  3. In your child-theme functions.php add this snippet:

 

Where to copy/paste this code?
Add it to your child-theme functions.php.
Everything you need to know about creating a child theme with Customizr here.

Goodbye and goodluck


Related Snippets you may also like


We can help you to implement this snippet

Coding is our job and we know WordPress inside and out. We can help you to customize your website with small chunks of code snippets like this one.

Send us your request and we'll get back to you quickly.



11 thoughts on “Make the Customizr home slider season based

  • Lukasz

    Hi
    I need help.
    I want to have another slider in other widths (for example, the first slider 320 px, 320px-960px second slider, etc.). I did not find this on any page.
    I speak Polish, English I know a little bit-sorry 🙁

  • yashi

    Hello

    I want to know, if there is any code or method to bring shady effect in page when image is selected for preview in gallery??
    I mean as it happens in picasa??? main focus on selected image only and rest of the background go black??

  • Mayara Samways

    Hey Nic
    I have a problem. First of all, I’m speaking from Brazil, and my english is not so good, so I can’t even say if my problem can be resolved in this page. But I looked everywhere and I didn’t find anything.

    I just want to put a link on the image of the slider. It is possible to do that? In all the area of the image.
    I saw that the link can go in the butom that we create. But I didn’t want do put this buttom in front of my image. I’d like to get my image linked to the page.

    I undestand something of HTML codes. But I can’t find where the code of the slider is.

    So I need some help. Thank you.

    Mayara Samways

  • Rocco Aliberti Post author

    You’re welcome.
    If you happen to know which plugin could cause that, let me know 😉

  • Rocco Aliberti Post author

    This in your page.
    Served from: honeybunny.ro @ 2015-03-09 11:09:52 by W3 Total Cache -->
    So I think you’re viewing a cached page. Can you delete the total cache cache?
    Hope this helps.

  • Vlad

    Hi
    I dont use the code.

    After I disable the loading icon the slide appers but only if I see the page as admin.

  • Rocco Aliberti Post author

    Hi Vlad,
    do you use the code above?
    Anyway, actually the slides are there, for some reason the loading icon isn’t hidden ..

    Could it be due to a conflicting plugin, but you can also disable the loading icon in Global Settings -> Images

    Hope this helps

Comments are closed.