• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

Layer Slider WP on every page

Home › Community Forums › Ally Theme Support › Layer Slider WP on every page

  • This topic has 5 replies, 2 voices, and was last updated 8 years, 5 months ago by Eric.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • January 21, 2014 at 3:44 pm #10137
    Dirk
    Customer

    hey guys,

    how can I get the slider (Layer Slider WP) on every page of the website?

    Kind regards

    January 21, 2014 at 11:20 pm #10140
    Eric
    Customer

    You could add a widget area and hook it into whatever place you want it to show. Here is an example tutorial on how to create a widget area under the nav (of course you can move this wherever you want) – http://www.carriedils.com/add-widget-area-below-nav/


    I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

    January 22, 2014 at 6:28 am #10145
    Dirk
    Customer

    Hey Eric, thanks for your reply.

    I would like to put the slider on the same place as on the homepage. Is this possible?

    January 23, 2014 at 8:34 am #10165
    Eric
    Customer

    Yes, you would need to look in your home.php file and copy the code, and then remove it and add it to your functions file. You could probably just follow that tutorial above to see how it works, and change the widget to match the same widget name as the slider on your home.php file. Then that way all you have to do is add the code in the functions file and change the name to slider. Does that make sense?


    I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

    January 27, 2014 at 9:19 am #10211
    Dirk
    Customer

    Hey Eric,

    It didn’t work our for me, I’m good with coding. I found also something interesting:

    ”
    There is a special page name, the “homepage”, with you can filter LayerSlider WP to display the slider on your home page. It is also works if you set up a static custom page instead of the default post listing.

    The follwing examples are all valid, you can use either of these, you can even mix them on your own needs:

    <?php layerslider(1); ?> // Displays the first slider on every page
    <?php layerslider(1, ‘homepage’); ?> // Displays the first slider only on your home page
    <?php layerslider(1, ‘my-custom-post-title’); ?> // Displays the first slider on a custom page by name
    <?php layerslider(2, ‘1369’); ?> // Diplays the second slider on a custom page by ID
    <?php layerslider(3, ‘homepage,about-us,1234’); ?> // Displays the third slider on multiple pages

    It is important when you want to insert a slider to check its ID on the LayerSlider WP slider list page. When you removes some sliders, their IDs won’t be reindexed and the sequence may broke up. This is important to keep persistent your sliders preventing unwanted changes on the already inserted ones.
    ”

    Can you help me out?

    Kind regards

    January 28, 2014 at 1:29 pm #10241
    Eric
    Customer

    Ok, let me explain in a different way, first follow that tutorial that I linked to above, and name it slider2 or whatever you want. Then once you create that widget, add the slider inside and it will show up on every page…..then leave the original slider (that came with the theme) empty since you won’t need to use it.

    The other part that you posted (which I’m guessing is some type of documentation or tutorial from the developers of the Layer Slider) won’t be needed for this. Simply create a new widget from the tutorial, and then add the slider inside. No other code will be needed.


    I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2022 · Appfinite · Built With The Genesis Framework