Tagged: x
-
AuthorPosts
-
November 11, 2016 at 5:06 am #1253165
BjornAndersenParticipantHi, and first of I would like to tell how much I am beginning to like this theme. Awesome job!
Now to the problem: (Am using child theme)
I am trying to add the following google font: Source Sans Pro
I have tried the following in the functions.php file with no luck:
add_action(‘wp_head’,’lovers_quarrel’, 1);
function lovers_quarrel () { ?>
<link href=”https://fonts.googleapis.com/css?family=Source+Sans+Pro” rel=”stylesheet”>
<?php }I have tried using @import in css. Both in child and custom. Does not work.
Along side with this I have tried several other recommendations from the themes forum. Also from other places on the web. It seems like nothing works.Also I am noticing when in the customizer, and making changes, it does not seem like it work. Trying to change to font-weight 900, and nothing happens with the header text.
I need help here 🙂
Link to dev page: http://www.mjosweb.no/briskebyen_dev/November 11, 2016 at 8:20 am #1253339
DarshanaModeratorHi there,
Thanks for writing in! First of all, follow this post (https://community.theme.co/forums/topic/adding-google-fonts-to-child-theme-the-right-way/).
To check your current setup, we may require your login credentials.
Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.
November 18, 2016 at 2:18 am #1262258
BjornAndersenParticipantThis reply has been marked as private.November 18, 2016 at 2:56 am #1262272
Rue NelModeratorHello There,
Thanks for updating in! This is the order of the styling.
– Stack style
– Child theme’s style.css
– Customizer’s custom css
– Cornerstone’s custom cssSo if you added the Google font in the child theme’s style.css, it must have been overridden with the customizer’s settings. And also you have mentione about font-weight: 900 but the Google font you have added is loading just the normal font. Please update your Google Font code and use this;
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,900');Hope this helps. Kindly let us know.
November 18, 2016 at 4:05 am #1262319
BjornAndersenParticipantIn the settings I have chosen Source Sans Pro (It got added after I added the google font) and it does affect the <p> part of the web page. But it does not seem to effect the h1 – h6 sentences.
I will make the adjustments to the font weight.
November 18, 2016 at 4:14 am #1262326
BjornAndersenParticipantI was able to solve the problem. Thank you for all the help 🙂
November 18, 2016 at 4:22 am #1262331
Paul RModeratorYou’re welcome! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1253165 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
