-
AuthorPosts
-
December 8, 2014 at 7:50 am #160354
How can I control the font size in a Revolution Slider. Currently it is larger then the rest of the page on the desktop and much smaller on mobile.
Ideally, I want the desktop to match the rest of the page and mobile to be about 80%.
Thanks!
URL: http://www.urbanfitnessmethod.com
Wordpress Version 4.0.1
Theme Version 3.0.1
Revolution Slider Version 4.6.0December 8, 2014 at 8:25 am #160385Hi there,
You can use Responsive Text shortcode to add text layer,then you will be able to control font size.
Or try this CSS under Customize -> Custom -> CSS:
.tp-caption.testimonial_caption { font-size: 14px !important; }
Hope that helps.
December 8, 2014 at 10:10 am #160477I wish all support forums were like this one.
I used the “Responsive Text” shortcode by placing a “Responsive Text” block above my “Revolution Slider” Block and then linked them with a class. It seems to work well.
December 8, 2014 at 1:07 pm #160626Glad it worked.
Have a nice day 🙂
December 12, 2014 at 10:07 pm #163814This is not quite working. One the first slide, I attain the desired results but for some reason on mobile the text blows up large on the subsequent slides.
The site is: http://www.urbanfitnessmethod.com
Thanks
December 13, 2014 at 8:31 am #163964Hi William,
Thanks for writing in,
Maybe something like this would help,
Add a class to that layer (doesn’t require you to use responsive text). You can add the class under “Attributes (optional)” section at the bottom area. then use that class to style the layer,
e.g. assuming the class you added is my-custom-class, you can then add this CSS code below under Customizer > Custom > CSS
@media (min-width: 979px) { .my-custom-class { font-size: 14px !important; } } @media (min-width: 979px) { .my-custom-class { font-size: 80% !important; } }
Hope this helps,
Have a great day
September 12, 2015 at 5:05 pm #386893Sorry for jumping in,
but where should I assign the class “my-custom-class” at the text layer that need font size customization ?
My site: wwww.castello.it/pomellato
Revolution Slider 5.0.6
Wordpress 4.3
X theme 4.1.0
Thanks,Roberto
September 13, 2015 at 12:47 am #387063Hi there,
You can assign it to the container where the texts are wrapped. Like columns or text element’s class.
Cheers!
September 13, 2015 at 9:18 am #387282Hello there,
sorry I do not get it…
The text is one of the three layers that are contained in a slide.
I thought I could operate on one single slide and custom the font appearance for that single slide inserting, the code given to William, in this area :
Then Trying to define the class for that single layer, I went to the slider settings thinking that this was the correct area to define the class:
Furthermore I noticed that I could access to another kind of “CSS” editor….
As you may noticed I am a kind of confused….
Last but not the least, following straightly your instructions, I should have navigate to the page containing the slider, edited with cornerstone and there apply the class “my-custom-class”, where is already present a class, the “right” one.
This class was assigned, with the help of your support, in order to have displayed, on mobile view only, the revolution slider images, before the text column.
Is it possible, to assign more than one class ? Should I separate them with comma ?
Sorry again for the most likely, beginner questions, but this is precisely what I am…
Thanks a lot for the support !!
Roberto
September 13, 2015 at 9:27 am #387285Hi @194roc,
Would you mind providing us with your admin account so we can take a closer look?
Don’t forget to set your reply as private!
Many thanks.
September 13, 2015 at 9:45 am #387298This reply has been marked as private.September 13, 2015 at 1:18 pm #387454By the way,
going a little deeper, as plan “B”, I thought about hide completely, rather than customize it, the text of the layer.
The visibility of a layer could be hided according to this:
Therefore I try this on my setting:
Probably the best way should be using this:
Unfortunately it seems that is not working either way:
I am a kind of lost…
Thanks,
Roberto
September 13, 2015 at 5:07 pm #387542Hello Roberto,
Thank you for the screenshots.
You can still use above CSS suggestion but I have edited it to below because there is a typing error:@media (min-width: 979px) { .my-custom-class { font-size: 14px !important; } } @media (max-width: 979px) { .my-custom-class { font-size: 80% !important; } }
As you can see previous suggestion is both
min-width: 979px
. I’ve adjusted other media query to max-width:979px which will target mobile text. Please tr again.Yes, you can put it in Rev slider custom CSS area.
Hope this helps.
September 15, 2015 at 5:06 am #389103It is not working…or better I am missing something that doesn’t allow to the custom CSS to work properly.
I believe that if you need you could modify the CSS of a single layer of a single slide and than you should add the given code in this area:
I do not follow this method because I didn’t want to mess with the existing code and moreover wishing to apply the custom CSS to the all slides contained in the slider I insert the code in here:
After that I move to the page containing the slider, edited with cornerstone and define, for that column the class.
As you can see I have to move the existing class (right), after the just inserted my-custom-class:There must be something wrong that I do not understand.
Could you please help me on that ?
Thank you very much,
Roberto
P.S.: See also post #387454
September 15, 2015 at 5:53 am #389160Hi Roberto,
You need to add your class on the text layer itself.
http://screencast.com/t/BmUmrFNAm
Hope that helps.
-
AuthorPosts