I needed to override font in columns. So what I did in Muffin Builder is:
First create column by Add Section -> Add Wrap -> Add Item -> Column
You would add some text inside of that column and you would wrap that whole text inside of <p></p> tags and inside of <span></span> tags with inline style.
So it would look something like this:
<p><span style="font-family: 'YourCustomFont';">Here would be your content for that column</span></p>
You would replace 'YourCustomFont' with your custom font.
Also make sure that 'YourCustomFont' has single quotes and is surrounded with font-family double quotes ""..... like line of code above "font-family: 'YourCustomFont';"
For Fancy Heading (for example) you would follow steps above but instead of Column you would choose Fancy Heading and inside of Fancy Heading settings, Title filed (at the top) you would add custom font to that title like this:
<span style="font-family: 'YourCustomFont';">Your Title Here</span>
The @font-face rule should be used in the Theme Options > Custom CSS & JS > CSS.
If location of the font will be proper, you will have to use the "inline-css" with "font-family" parameter to change the font of some kind of text - it will not be displayed in the dropdowns where you select the font.
We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.
Cookies are small text files that can be used by websites to make a user's experience more efficient.
The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.
This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.
You can at any time change or withdraw your consent from the Cookie Declaration on our website.
Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.
Please state your consent ID and date when you contact us regarding your consent.
Comments
at this moment it is possible to add only 2 custom fonts.
Thanks!
Thank you!
Adding Custom Fonts in Wordpress Using CSS3 font-face
I needed to override font in columns. So what I did in Muffin Builder is:
First create column by Add Section -> Add Wrap -> Add Item -> Column
You would add some text inside of that column and you would wrap that whole text inside of <p></p> tags and inside of <span></span> tags with inline style.
So it would look something like this:
<p><span style="font-family: 'YourCustomFont';">Here would be your content for that column</span></p>
You would replace 'YourCustomFont' with your custom font.
Also make sure that 'YourCustomFont' has single quotes and is surrounded with font-family double quotes ""..... like line of code above "font-family: 'YourCustomFont';"
For Fancy Heading (for example) you would follow steps above but instead of Column you would choose Fancy Heading and inside of Fancy Heading settings, Title filed (at the top) you would add custom font to that title like this:
<span style="font-family: 'YourCustomFont';">Your Title Here</span>
Hope this can help some of you guys.
If it does help, please let me us know here.
Cheers!
- fonts.php
- theme-options.php
in the theme-options.php duplicate the code under the comment line "font 2"Please help!
I have folder that contain 4 folder : Eot , ttf , wof ,woff2 , and includes many
fonts,
I have the font face like this:
@font-face {
font-family: myfonts;
font-style: normal;
font-weight: normal;
src: url('fonts/eot/myfonts.eot');
src: url('fonts/eot/myfonts .eot?#iefix')
format('embedded-opentype'), /* IE6-8 */
url('fonts/woff2/myfonts.woff2')
format('woff2'), /* FF39+,Chrome36+,
Opera24+*/
url('fonts/woff/myfonts.woff')
format('woff'), /* FF3.6+, IE9, Chrome6+,
Saf5.1+*/
url('fonts/ttf/myfonts.ttf')
format('truetype'); }
I have add
all that lines in “rtl.css” and also add the font name in muffin-options>fonts.php
, see the example
$fonts['system']
= array(
// Add By me //
‘Myfonts1’,
' Myfonts2',
' Myfonts3',
' Myfonts4',
' Myfonts5',
' Myfonts6',
// Add By me //
And all
fonts load in the theme options> fonts> font family
But the
problem is fond dos not loaded.
This is my font and css fils Please cheek
that wat is the problem to preventing font load ?
Thanks