-
AuthorPosts
-
June 3, 2015 at 12:05 pm #291195
Hello,
There’s no option to change the font for buttons via Customizer, is there? So can you give me a hint on how to do that?
Thanks!
—
AlexJune 3, 2015 at 5:41 pm #291743Hi there,
Thanks for writing in.
Right, there is no option for button’s font in customizer. It simply inherit the font assigned on page’s body.
But, you can always apply another font style through custom css. Example, add this css at your customizer’s custom css.
.x-btn { font-family: Arial; }
That is as long as your preferred font is active or installed.
Thanks!
June 4, 2015 at 6:26 am #292404Hello,
Thanks!
But what if I want to use Google Font, on of predefined in your Customizer? I can easily select any font for headings and content, but what can I do with buttons labels?
Thanks!
—
AlexJune 4, 2015 at 6:08 pm #292950Hi Alex,
That’s where you will need to apply your google font if not selected from customizer. Every google font has instruction for embedding their font. Example,
Go to google font and select your font, then get it’s embed code.
https://www.google.com/fonts#UsePlace:use/Collection:Roboto
There are four steps,
1. Choose font weight
2. Choose the character set
3. Get the embed codeEg.
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
And you can add the embed code at X theme by adding this at your child theme’s functions.php
add_filter('wp_head', 'google_font_roboto'); function google_font_roboto () { ?> <link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'> <?php }
4. Apply the font style to your elements (eg. the button)
.x-btn { font-family: 'Roboto', sans-serif; }
Hope this helps 🙂
April 7, 2016 at 9:56 pm #872222Feature request: please put the button font control on X-powered Customizer
The body font isn’t a very good reference for button font
April 8, 2016 at 7:49 am #872729Hi Allan,
We certainly appreciate the feedback! This is something we can add to our list of feature requests. This way it can be taken into consideration for future development. All of these items are discussed with our team internally and prioritized based on the amount of interest a particular feature might receive. Thanks!
May 4, 2016 at 5:34 am #912201I vote for this one too!
May 4, 2016 at 8:37 am #912459Noted, thanks.
May 6, 2016 at 2:46 pm #979203I vote for this too!
May 6, 2016 at 9:50 pm #979696We have taken your request. Thanks.
August 10, 2016 at 12:41 am #1125035Same!
August 10, 2016 at 3:01 am #1125177Vode counted to this feature request.
Feel free to follow up this request or to send us more feature request or changes
Thanks.
August 12, 2016 at 1:53 pm #1129045I would also like this feature.
August 12, 2016 at 2:20 pm #1129086This reply has been marked as private.August 12, 2016 at 8:45 pm #1129511Hello There,
Thanks for updating this thread! i have check your site and I found out that you have inserted an invalid css. Please update it and use this instead:
/* remove red bar below slider */ .x-slider-container.below { border: none; } a.x-btn { font-family: "Montserrat", sans-serif; }
Hope this helps. Kindly let us know.
-
AuthorPosts