Tagged: x
-
AuthorPosts
-
November 6, 2016 at 4:06 am #1245710
AlCAtParticipantHi,
I would like to apply the font “Beyond the mountains” to my H1 and H4 titles but couldn’t find the answer in the forum? Can you help me with CSS? π
Thank you in advance!
November 6, 2016 at 5:57 am #1245790
ChristianModeratorHey there,
Please see the links below for guidance.
http://www.wpbeginner.com/wp-themes/how-to-add-custom-fonts-in-wordpress/
https://community.theme.co/forums/topic/adding-custom-font-to-theme-customizer/#post-184533Thanks.
November 6, 2016 at 6:59 am #1245830
AlCAtParticipantThis reply has been marked as private.November 6, 2016 at 7:37 am #1245858
ThaiModeratorHi There,
In this case, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
β Link login to your site
β WordPress Admin username / PasswordDonβt forget to select Set as a private reply. This ensures your information is only visible to our staff.
Thanks.
November 6, 2016 at 7:42 am #1245860
AlCAtParticipantThis reply has been marked as private.November 6, 2016 at 9:31 am #1245940
RupokMemberHi there,
Thanks for writing back. It seem the font files doesn’t exists on your given path if you check them directly – http://hopawaywithus.com/public_html/wp-content/fonts/beyond_the_mountains-webfont.woff
Make sure to upload and link them correctly.
Cheers!
November 6, 2016 at 7:17 pm #1246398
AlCAtParticipantThis reply has been marked as private.November 7, 2016 at 12:00 am #1246562
AlCAtParticipantHi again,
I solved the problem.
I was not supposed to use the whole URL in the source part of the CSS, only what comes after public_html. I created a “fonts” folder in the “wp-content” folder as instructed but I corrected the CSS to:
@font-face { font-family: 'beyond_the_mountainsregular'; src: url('wp-content/fonts/beyond_the_mountains-webfont.woff2') format('woff2'), url('wp-content/fonts/beyond_the_mountains-webfont.woff') format('woff'); font-weight: normal; font-style: normal; } h1, h2, h3, h4, h5, h6, #site-logo, .post-title, .widgettitle { font-family: "beyond_the_mountainsregular"; }It did the trick!
Thank you again for your help!
November 7, 2016 at 12:15 am #1246577
Rue NelModeratorHello There,
We are just glad that you have figured it out a way to correct the said issue.
Thanks for letting us know!Best Regards.
November 7, 2016 at 12:15 am #1246579
AlCAtParticipantI have another issue now. The font shows up when I’m in the customize preview. But when I display the actual page, the font doesn’t show up.
What could be the problem?
November 7, 2016 at 1:45 am #1246659
LelyModeratorHello There,
Please try to update your custom CSS to this:
@font-face { font-family: 'beyond_the_mountainsregular'; src: url('/wp-content/fonts/beyond_the_mountains-webfont.woff2') format('woff2'), url('/wp-content/fonts/beyond_the_mountains-webfont.woff') format('woff'); font-weight: normal; font-style: normal; }When you are in inside page like china, the font will be called like this:
http://hopawaywithus.com/category/travels/china/wp-content/fonts/beyond_the_mountains-webfont.woff2
on homepage it will like this:
http://hopawaywithus.com//wp-content/fonts/beyond_the_mountains-webfont.woff2
It will be correct on homepage but not on inside pages. We need the slash from the start to make sure that the URL is looking from the root directory.Hope this helps.
November 7, 2016 at 2:16 am #1246686
AlCAtParticipantHi Lely,
I will test the homepage later as no titles are available yet but so far it looks fine.
Thank you very much for your help! π
November 7, 2016 at 2:55 am #1246726
LelyModeratorYou’re welcome!
It would be better if you will use absolute URL like this:
http://hopawaywithus.com/wp-content/fonts/beyond_the_mountains-webfont.woff2Cheers!
November 7, 2016 at 5:35 am #1246914
AlCAtParticipantI have made the modification. Thank you! π
November 7, 2016 at 6:47 am #1246996
RadModeratorYou’re welcome!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1245710 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
