Layer Slider WP on every page

Homepage Community Forums Ally Theme Support Layer Slider WP on every page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10137
    Dirk
    Customer

      hey guys,

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

      Kind regards

      #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

        #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?

          #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

            #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

              #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

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