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.
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