Tagged: Fonts
-
AuthorPosts
-
February 1, 2023 at 11:15 am #1396188
Hi, I just imported a font (Belda) and chose it in the advanced styling (H1). It is shown there. However, if I look at my website I can see the font has changed (in something standard) but it does not show the correct font. How can I get the right font (Belda) to be shown?
In my tekst on the webpage, also H1 is chosen. So I assume the settings are ok.
Can someone please help me with this?
February 2, 2023 at 3:25 am #1396309Hey Anouk,
Thank you for the inquiry.
Where did you get the font? Please note that only Google fonts are allowed in the Custom Font Manager. You may need to load the font and apply it to the elements manually using the @font-face rule.
// https://css-tricks.com/snippets/css/using-font-face-in-css/
Best regards,
IsmaelFebruary 3, 2023 at 1:59 pm #1396543Hi Ismael,
Thank you for your reply. The font is from Adobe and it is not part of Google Fonts. So, does this mean I can not use it?
Using the font-face-rule seems to comlicated for me. English is not my native language, and I am also not very technical with css things. I don’t understand how this works.
Best wishes, Anouk
February 4, 2023 at 11:26 am #1396641Hi,
Thanks for the update. Did you get any documentation with your Adobe font? If so, then please share it with us. If not, then you could simply upload the font to your server, then we can help you out with custom CSS for loading it. If you don’t want to do this extra work, then it be better to consider a Google font instead.
Best regards,
RikardFebruary 4, 2023 at 11:35 am #1396643Hi, thanks. Yes, I would love to try. How can I upload the documntation and share it with you?
February 4, 2023 at 12:23 pm #1396654Hi,
You can upload that to a service like Google Drive or Dropbox for example.
Best regards,
RikardFebruary 4, 2023 at 1:21 pm #1396656https://drive.google.com/drive/folders/1rVZOILT-9PHXQ7ria0_CIQjd_DwUdbwH?usp=sharing
Here the link to get the document.
February 4, 2023 at 8:48 pm #1396677Hi,
Thanks, but that file or folder is not shared publicly, so we can’t access it.
Best regards,
RikardFebruary 5, 2023 at 9:51 am #1396713ok, it should be open now. Thanks!
February 5, 2023 at 12:01 pm #1396729Hi,
Thanks for that. The file you linked to only contains a font file, so that is what you would need to upload to your server.
Best regards,
RikardFebruary 5, 2023 at 6:06 pm #1396774I already uploaded it to the server and also in the website. But it is not shown on the website as it should so it looks it does not work.
Best wishes, Anouk
February 5, 2023 at 8:30 pm #1396785Hi,
I tested your font file on my demo site and because it is a OTF file type the Custom Font Manager didn’t extract it it only created a folder so in the setting it looks like an option, so as Ismael pointed out above only Google fonts are allowed in the Custom Font Manager.
I tested this workaround, first extract your font zip to your computer, you will see the font is named insigne – Belda Norm Regular.otf change to belda-font.otf for easier use and upload to your site via FTP, for example: /wp-content/uploads/dynamic_avia/avia_type_fonts/belda-font/belda-font.otf anywhere should be fine, this is what worked for me.
Then add this css to your child theme stylesheet, or your parent theme custom.css file or use a plugin like WPcode plugin this plugin supports PHP code snippets, JavaScript code snippets, & CSS code snippets.@font-face { font-family: 'belda-font'; src: url('/wp-content/uploads/dynamic_avia/avia_type_fonts/belda-font/belda-font.otf') format('opentype'); }
Then to use the font you will create another css rule, this example is for H1 special heading element:
h1.av-special-heading-tag { font-family: belda-font; }
but you can target any element you wish.
Then clear your browser cache and check, this is the results I received:
Best regards,
MikeFebruary 6, 2023 at 10:51 am #1396830Hi Mike, first of all, thank you for your answer. Second, the things you mention sound like abracadabra to me. The font was already extracted from the zip on my computer.
First of all, I am not able to change the name insigne – Belda Norm Regular.otf into belda-font.otf. There is no option to change this name. The only option I see is, open, cut, copy, delete or features.
I don’t know what FTP, CSS, stylesheet and the rest is. This whole part: “via FTP, for example: /wp-content/uploads/dynamic_avia/avia_type_fonts/belda-font/belda-font.otf anywhere should be fine, this is what worked for me.
Then add this css to your child theme stylesheet, or your parent theme custom.css file or use a plugin like WPcode plugin this plugin supports PHP code snippets, JavaScript code snippets, & CSS code snippets.” is abracadabra to me.I activated the WP Code plugin.
Can you help me to fix this?
Thanks in advance, Anouk
- This reply was modified 1 year, 10 months ago by Anouk.
February 6, 2023 at 12:31 pm #1396835Hi,
Can you include an FTP login in the Private Content area so we can upload the font for you?
If you don’t know what FTP is, do you have a cPanel login, or file manager login for your webhost?Best regards,
MikeFebruary 6, 2023 at 2:14 pm #1396841Hi Mike, see details below. Thanks!
February 6, 2023 at 7:31 pm #1396882Hi,
Thank you for the admin login to your site, but I need access to your server to add the font file, such as the File Manager in cPanel, or an FTP account, these two articles are for general information as I don’t know what hosting company you are using. Another option would be to ask your hosting company support to place the font file in the location that I posted above, and ensure it is named belda-font.otf
/wp-content/uploads/dynamic_avia/avia_type_fonts/belda-font/belda-font.otf
They will understand and it will be quite easy for them, I’m happy to do it for you but I will need access to your server.Best regards,
MikeFebruary 6, 2023 at 7:42 pm #1396883Hi Mike, ok, I think I understand now. Below you will see the details. I already changed the webhost/website in English so you can find your way.
February 6, 2023 at 8:12 pm #1396888Hi,
Thanks for the access, I added the font file and added the font-face css to the wpcode plugin, and created a test page linked below to demonstrate that the font is working.
If you explain where you want this font to show on your site I can assist.
Please check the test page.Best regards,
MikeFebruary 6, 2023 at 8:27 pm #1396889You are a hero!!!!!!! Thank you! I would like this font in the H1 with all capital letters (if this is something you can choose, otherwise I will change it myself). And also in the layersliders please.
Thank you so much!!!!
- This reply was modified 1 year, 10 months ago by Anouk.
February 7, 2023 at 12:50 pm #1396973Hi,
Thanks, do you mean the H1’s that are currently using the font “Love Ya Like A Sister”, to change all of these I added a wpcode snippet called H1 belda-font with this rule:#main h1 strong { font-family: belda-font; }
and for the LayerSlider I edited the text layer element by first removing the font “Love Ya Like A Sister” and then when to Style ▸ Advanced Settings ▸ Custom CSS and added this css:
font-family: belda-font;
please clear your browser cache and check.Best regards,
MikeFebruary 7, 2023 at 1:11 pm #1396975Yes, it works!!!!!! Awesome! Thousand time thank you!!!!!
February 7, 2023 at 1:35 pm #1396979Hi,
Glad this helps, Unless there is anything else we can assist with on this issue, shall we close this then?Best regards,
MikeFebruary 8, 2023 at 10:24 am #1397119Thank you Mike. It was easy to change the things by myself with your help.
The only thing it didn’t work out is one field (a special heading) on the homepage. It is called KIES HIER JOUW REIS and it has also the H1 style. I tried to put this (font-family: belda-font;) in the advanced settings, but the font does not change. How can I change it also here?
Thank you in advance.
Best wishes, Anouk
February 8, 2023 at 12:06 pm #1397149Hi,
I see that you gave the special heading the ID font-family-belda-font so try this css:#font-family-belda-font h1 { font-family: belda-font; }
After applying the css, please clear your browser cache and check.
Best regards,
MikeFebruary 8, 2023 at 12:28 pm #1397155I tried to put this in ‘developers settings’ in the special header. There are 3 rows in this section. But neither of them seems to work. I filled #font-family-belda-font h1 { font-family: belda-font; }.
The font does not change. Should I put the css somewhere else?February 8, 2023 at 1:54 pm #1397176Hi,
Please try adding the css above to the Enfold Theme Options ▸ General Styling ▸ Quick CSS field
The Developers Settings are for adding custom classes & IDs, for the element it looked like you had the custom ID font-family-belda-font in place, please leave this.Best regards,
MikeFebruary 8, 2023 at 2:02 pm #1397177I did put it there, In general styling and quick CSS. But it still shows the old font.
February 8, 2023 at 2:04 pm #1397178I found the problem, I had to delete the H1 in Google Fonts. Now it is shown correctly. Thank you for your help! You can close this case.
Best wishes, Anouk
February 8, 2023 at 4:47 pm #1397195Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Font does not show on website’ is closed to new replies.