Mobile -Change Hero Title/Text Font Size
Support Area › Forums › Elite › Mobile -Change Hero Title/Text Font Size
Tagged: mobile
- This topic has 6 replies, 2 voices, and was last updated 9 years, 6 months ago by Bill Robbins.
-
AuthorPosts
-
October 7, 2014 at 10:12 #22934Ashley DavisParticipant
Hi Bill,
Just officially launched another site, but am running into a few issues with the mobile version. (I’m viewing with an iPhone4)
Any way to reduce the size of the Hero Title/Text on just the mobile version? As is, the captions are completely covering the Home page images.
Also, the Down Arrow is overlapping the captions on my About and Features pages. Can we remove the down arrow all together for the mobile version, or significantly reduce its size?
Lastly, is there any way to have a pop-up message appear when anyone uses a mobile device to access the site? I think the site looks much better when turned horizontal and would love to recommend users rotate their phones for mobile viewing.
Thanks So much! This is a FANTASTIC theme and over all very easy to use and customize! My client is absolutely thrilled with the results!
-Ashley
October 7, 2014 at 11:55 #22949Bill RobbinsModeratorGood Morning Ashley,
You can change the text size on smaller screens. You’ll need a media query which is a simple set of conditions that when they are met, the included styles will be used. Here’s what to do:
- Go to your theme options page and choose the Advanced tab.
- Scroll down to the Custom CSS box and add this:
@media only screen and (max-width: 520px) { #hero-section .hero-copy h2.hero-title { font-size: 24px; } #hero-section .hero-copy p { font-size: 16px; } }
The first line is the media query. “Only screen” lets the browser know these are only for screens and not for print. The “and” says another condition must be met as well. The “max-width: 520px” lets the browser know that the maximum size of the browser window where these styles will be used is 520 pixels. Anything larger than that and these styles will be ignored.
You can change the font sizes there to fit your needs.
- Update your settings.
See how that works out for you,
BillOctober 7, 2014 at 12:59 #22950Ashley DavisParticipantThanks Bill! The text adjustments worked great.
So to adjust the Hero Button Text size, would I just add this to the code?
#hero-section .hero-copy button-text {
font-size:16;
}Any ideas on the down arrow issue or adding a pop-up message?
Thanks!
AshleyOctober 7, 2014 at 13:01 #22951Ashley DavisParticipantOh, and one more thing! How can I reduce the mobile logo size?
Attachments:
October 7, 2014 at 14:45 #22955Bill RobbinsModeratorYou’re barking up the right tree for the button. This should let you change it:
@media only screen and (max-width: 520px) { .hero-copy .button.hero, .woocommerce .hero-copy .button-hero { font-size: 12px; } .scroll-down { display: none; } }
That’ll also hide the arrow on small screens.
It’s likely possible to have a pop-up do that, but it’s not something that I’ve tried before. I know OptinMonster has that as an option, but only on their Pro and up plans which is pretty pricy.
Bill
October 7, 2014 at 15:45 #22958Ashley DavisParticipantAfter taking a closer look at the Mobile site, I would also like to adjust the size of the Logo, as well as the size of the Body and Heading text in the main copy. Seems everything is quite too big for mobile devices.
Thanks Bill!
October 7, 2014 at 16:45 #22966Bill RobbinsModeratorInside that media query you could add a new style for #logo where you specify a width. You could also add a style for the body where you set a font size. Same for the headings too.
I’m glad to hear you’ve signed up for css classes. If you need more customization help let me know and I can write up a quote for you.
Take care,
Bill -
AuthorPosts
- The topic ‘Mobile -Change Hero Title/Text Font Size’ is closed to new replies.