Tagged: x
-
AuthorPosts
-
July 27, 2016 at 3:49 am #1104797
arthurdupuyParticipantHello X,
Here is my website http://www.alveusclub.com
I would like to change the font family of h1 (title on the revolution slider) and h2 (title under the slider) to Noticia text.
I tried this codeh2, .h2,
.h2 {
font-family: ‘Noticia Text’, serif !important;
font-size: 35px !important;
}h1, .h1,
.h1 {
font-family: ‘Noticia Text’, serif !important;
font-size: 35px !important;
}However, when I change header typography (for h3, h4….) in the customize, the font of h1 and h2 becomes “serif” as you can see attached
Futhermore, is it possible to have a code for change font family and size only on this page (not others).
Thanks !July 27, 2016 at 7:38 am #1105029
Paul RModeratorHi,
You can try this code instead.
@import url(https://fonts.googleapis.com/css?family=Noticia+Text:400,400italic,700,700italic); .home h2, .home .h2 { font-family: 'Noticia Text', serif !important; font-size: 35px !important; } .home h1,.home .h1 { font-family: 'Noticia Text', serif !important; font-size: 35px !important; }Hope that helps.
July 28, 2016 at 3:10 am #1106707
arthurdupuyParticipantThank you for your answer !
but it seems it doesn’t work as you can see…. :/
July 28, 2016 at 3:24 am #1106725
Rue NelModeratorHello There,
Since you have installed a caching plugin WP Super Cache, please clear your plugin cache before testing your site. This can cause the changes to not take place on the front end. It will eventually show up when the cache regenerates, but it’s not ideal if you’re looking to see your changes immediately. Caching plugins are best to turn on only when you’ve finished building the site.
Please let us know how it goes.
July 28, 2016 at 4:18 am #1106787
arthurdupuyParticipantThis reply has been marked as private.July 28, 2016 at 5:01 am #1106851
Paul RModeratorHi,
Please provide us your username as well.
Thanks
July 29, 2016 at 5:27 am #1108625
arthurdupuyParticipantThis reply has been marked as private.July 29, 2016 at 8:03 am #1108762
LelyModeratorHi There,
Thank you for the credentials.
The following line should be on top of the CSS files:
@import url(https://fonts.googleapis.com/css?family=Noticia+Text:400,400italic,700,700italic);Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Then on your child theme style.css file at the very top add this line instead:
@import url(https://fonts.googleapis.com/css?family=Noticia+Text:400,400italic,700,700italic);Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1104797 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
