Displaying the slider problem
-
Hi
Not a problem with the slider itself probably more a problem with my amateur coding attempt.
Basically I have the responsive theme. I have setup the slider so it only appears on the home page using this code. I made a header.php in my child theme.
<?php if ( is_front_page() ) { if ( function_exists( ‘easing_slider’ ) ) { easing_slider(); } }?>
And that works well. What I need to do is not display the slider when the site is viewed through mobile devices (mainly smartphones) but I obviously I want the slider displayed on larger screens. OK so in the rtl.css file in my child theme I added the following code.
/* Theme Name: responsive_child Template: Right to Left text support. */ @import url("../responsive/rtl.css"); @media screen and (max-width: 650px) { .easingsliderlite { display:none; } @media screen and (max-width: 480px) { .easingsliderlite { display:none; } @media screen and (max-width: 320px) { .easingsliderlite { display:none; } @media screen and (max-width: 240px) { .easingsliderlite { display:none; }
However the slider still appears on smartphones. the “.easingsliderlite” part I have tried with “#easingsliderlite” and “#easing_slider” and “.easing_slider”. All with no joy
No content just basically the header, background and slider in.
Best viewed in Firefox. Have not fixed the Moz gradient thing for the navbar to change colour in IEAny help is appreciated. Thank You
Site is https://icbweb.com/test/
- The topic ‘Displaying the slider problem’ is closed to new replies.