Tagged: x
-
AuthorPosts
-
March 25, 2017 at 4:50 am #1419960
My home page (sosfitcoach.com) currently only has the revolution slider and menu on it with text overlaying the slider… however on mobile the text on the slider is far too small to read so I would like to create the text to stand alone below the slider on the page. Is there any way to do this?? Thank you!
March 25, 2017 at 8:02 am #1420036Hi There,
#1] Please add the following code under Customizer > Custom > Global Javascript:
jQuery(document).ready(function($){ $('<div class="x-custom-text x-hidden-desktop">This is my example text. You can change to whatever you want.</div>').insertAfter('.home #rev_slider_1_1_wrapper'); });
#2] Please add the following CSS under Customizer > Custom > Global CSS:
.x-custom-text { color: #fff; }
Hope it helps 🙂
March 27, 2017 at 5:09 am #1421414I tried that, but it didn’t work 🙁 The homepage is still only showing the menu and slider.
March 27, 2017 at 5:23 am #1421427March 27, 2017 at 5:29 am #1421434Actually it works on mobile, but I’d like it on desktop as well 🙂 Is there a code change so that it will show up on desktop (I’m going to be removing the text from the slider so I would like the added text on all platforms)
March 27, 2017 at 5:46 am #1421450Hi There,
Please update this code a bit:
jQuery(document).ready(function($){ $('<div class="x-custom-text">This is my example text. You can change to whatever you want.</div>').insertAfter('.home #rev_slider_1_1_wrapper'); });
Hope it helps 🙂
March 27, 2017 at 8:13 am #1421573Awesome! Thanks! Is there any way to center align the text? Other than that one small detail it’s perfect 🙂
March 27, 2017 at 8:46 am #1421615Please also update the CSS to this:
.x-custom-text { color: #fff; text-align: center; }
Hope it helps 🙂
March 27, 2017 at 9:34 am #1421712Perfect!! Thank you 🙂
March 27, 2017 at 10:15 am #1421773You’re most welcome 🙂
-
AuthorPosts