Adding font to premium theme with Visual Composer addon
-
I have a premium ecommerce theme. I also have Visual Composer installed and am using it to design the homepage. I am trying to add a font to be used for all text. I was instructed by the theme dev to use this method:
https://premium.wpmudev.org/blog/custom-fonts-css/
I think I have done what this says. I have added the following code to style.css in the child theme:[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
@font-face { font-family: SourceSansPro; src: url(public_html/wp-content/themes/flatsome-child/Source_Sans_Pro/SourceSansPro-Regular.ttf); font-weight: normal; } p { font-family: SourceSansPro; }
However, I have tried to edit text on my homepage and wrap it in the p tag –
<p>
text</p>
– and I hit save on the visual composer dialog box. Nothing happens. And when I check the text again the<p>
tags have disappeared. Something is rejecting my p tags, either VC or WP.
Please help!
- The topic ‘Adding font to premium theme with Visual Composer addon’ is closed to new replies.