Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #1126762

    Hi,

    What’s the easiest way to make Advanced Layerslider responsive?

    Best regards,
    Helle

    #1126962

    I also would like to know how to do that? Esspecially how to adjust the height in responsive view?

    Kind regards Jak

    #1127046

    Hi,

    Could you post links to where we can see your problems?

    Best regards,
    Rikard

    #1127113
    #1127470

    Hi GraphicEyeDK,

    Dette er lidt pinligt, er det ikke?

    I get a 404 error on that page.

    Best regards,
    Rikard

    #1127505

    Sorry. Now it should work.

    Best regards,
    Helle

    #1128570

    Hi,
    Sorry for the late reply, the best solution, in this case, is to create a second slider for mobile devices. You can clone your desktop version and then adjust the canvas size to match mobile, that is to make it taller than wide 425px x 168px or how ever tall you wish it to be.
    2019-08-17-204755
    Then you can make your text and buttons larger and align them on the page as you like.
    Then you can use css to hide and show the two sliders depending on the screen size, for example:

    @media only screen and (min-width: 768px) {
        #layerslider-1 {
            display: block !important;
        }
        #layerslider-2 {
        display: none !important;
        }
    }
    @media only screen and (max-width: 767px) {
        #layerslider-2 {
            display: block !important;
        }
        #layerslider-1 {
        display: none !important;
        }
    }

    If you would like help with the css please create the slider and include admin login in the Private Content area so we can examine the sectors and write the css.

    Best regards,
    Mike

    #1128591

    Hi,

    where do i have to add a class (and what do i have to add) for layerslider?

    kind regards Jak

    #1128594

    hi,

    i added:
    @media only screen and (min-width: 501px) {
    #layerslider-1 {
    display: block !important;
    }
    #layerslider-responsive {
    display: none !important;
    }
    }
    @media only screen and (max-width: 500px) {
    #layerslider-responsive {
    display: block !important;
    }
    #layerslider-1 {
    display: none !important;
    }
    }

    and to the class of Layerslider:
    for responsive slider: layerslider-responsive

    for normal view: layerslider-1

    but it does not effect it?

    kind regards Jak

    #1128644

    Hi Jak73,

    Layer Slider has its own place to put css, please try using it
    Image 2019-08-18 at 14.03.29.png

    Best regards,
    Victoria

    #1128659

    Hi,
    victoria,

    thanks!

    I added this code:
    @media only screen and (min-width: 501px) {
    #layerslider-1 {
    display: block !important;
    }
    #layerslider-responsive {
    display: none !important;
    }
    }
    @media only screen and (max-width: 500px) {
    #layerslider-responsive {
    display: block !important;
    }
    #layerslider-1 {
    display: none !important;
    }
    }
    and this to the class of Layerslider:
    for responsive slider: layerslider-responsive

    for normal view: layerslider-1

    seems there is no effect?

    kind regards Jak

    #1128678

    I’m trying and trying, but i won’t work at yet?
    Any ideas?

    kind regards Jak

    #1128687

    Hi,
    I recommend using the auto-generated slider ID’s, for example, the slider that is on your front page now is “#layer_slider_1” so if you add another one to the page it should be “#layer_slider_2”
    I understand that your site is live and you won’t want it to look too odd for very long, so I recommend creating your second slider and then add an admin login in the Private Content area, I will add it to your front page and add the css and test for you, if you wish.
    Or you could try adding the second slider and try this css code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    @media only screen and (min-width: 501px) {
    #layer_slider_1 {
    display: block !important;
    }
    #layer_slider_2 {
    display: none !important;
    }
    }
    @media only screen and (max-width: 500px) {
    #layer_slider_2 {
    display: block !important;
    }
    #layer_slider_1 {
    display: none !important;
    }
    }

    I tested this on my localhost and it works correctly using the auto generated ID’s, but you will want to remove the other css added from the above posts.
    Then clear your browser cache and check.

    Best regards,
    Mike

    #1128688

    Hi Mike,

    thanks for your reply on sunday!!!

    Should i add #layer_slider_2 or just layer_slider_2 ?

    kind regards Jak

    #1128693

    Hi Mike,

    i just saw slider 1 is named in: layerslider>slider settings > appearence>slider class : layerslider-1

    Should i rename it, or is there any other field to input the name of the slider?

    Should’nt i put the css to the slider field for css?

    kind regards Jak

    #1128694

    Hi,
    In the css it is #layer_slider_1 & #layer_slider_2 as above.

    *side note*
    In css the hashtag means ID & a dot means class.
    But if you ever add custom classes or ID’s in the elements you would not add the dots & hashtags, I hope I’m not confusing you, if so just ignore this side note :)

    Best regards,
    Mike

    #1128695

    where should i add the ID? I’m confused?

    kind regards Jak

    #1128696

    Where can i add: #layer_slider_1 & #layer_slider_2 ?
    Not in: layerslider>slider settings > appearence>slider class : layerslider-1 ?
    kind regards Jak

    #1128702

    In layerslider (responsive slider) is written:
    Use shortcode:
    [layerslider id=”6″]Use PHP function:
    <?php layerslider(6) ?>

    but even when i rename layer_slider_2 to layer_slider_6 the responsive slider is not loaded.
    Only in responsive view there is no banner now.

    kind regards Jak

    #1128703

    Hi,
    You don’t need to add the ID’s to the lyerslider, it is automatically created in the theme, and add the css above, as is, to your Quick CSS in the theme.

    Best regards,
    Mike

    #1128706

    Hi Mike,

    should i remove layerslider>slider settings > appearence>slider class : layerslider-1 from class?

    I followed your instruction, but it is not working?

    kind regards

    Jak

    #1128710

    Hi,
    You need to add the second slider to the page in the backend, so you have two sliders like this:
    2019-08-18-141427

    Best regards,
    Mike

    #1128715

    Hi Mike,

    works great!

    Many many thanks!!!

    kind regards Jak

    #1128721

    Hi,
    Well done :)
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)

    Best regards,
    Mike

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