Custom fonts not loading correctly

Posted in: Newspaper
Post count: 13

Hi there,

I have installed soho gothic pro custom font on my website and it is not being displayed.

I found out the reason why it is not loading up, but can you please tell me how to fix it?

When page is being loaded, fonts are loaded as
@font-face {
font-family: “SohoGothic Regular”;
src: local(“SohoGothic Regular”), url(“aksharwebsolutions.com/ffm/wp-content/themes/Newspaper-child/fonts/sohogothicpro-regular.woff”) format(“woff”);

So if you notice, it is missing http:// in the URL and because of that it is not loading the right font. Can you please tell me how to fix it. My website URL is http://aksharwebsolutions.com/ffm/ and I am using this font in the menu for the trail.

Your earliest response will be greatly appreciated.

Thanks,
Arpita

Post count: 7909

Hi,

Please implement it via custom fonts, check this guide – https://forum.tagdiv.com/using-custom-fonts/ and see if it works.

Thanks!

Post count: 13

Hi Alin,

Thanks for your quick response.

I have installed custom fonts from there only and does above mentioned.

Thanks,
Arpita

Post count: 13

This issue is solved now, but can you please tell me how I can install more than 3 fonts?

Thanks,
Arpita

Post count: 22421

Hello,

you can edit the file that contains the code for custom fonts and simply duplicate the lat code (custom font 3) and change it from custom font 3 to custom font 4 and so on and so forth.
example: http://screencast.com/t/6AYKdUtJtx

Thank you!

Post count: 13

Thanks Bogdan. I will try.

Post count: 21

Hi.

I’m also interested in being able to install more than 3 custom fonts, so I found this topic very useful. Nonetheless, Bogdan’s last instruction did not make it for me. I opened the td_view_custom_fonts.php file through FileZilla, and edited it just as instructed in the screenshot shared by Bogdan. When I go back to the Theme Fonts section in my Theme Panel, I still see only 3 rows for adding custom fonts.

Here you can see what I did with the code on the td_view_custom_fonts.php file. Here you can see that my Theme Panel still shows only 3 rows.

Any ideas?

Thanks a lot!

Fidel

Post count: 23312

Hello Fidel,

Please notice that the theme’s code has been changed a lot from 2015 to now and that’s why your code does not work, sorry! Please be more attention to the date of the topic above. Now, if you want to edit the theme custom fonts fields, notice that you should edit the td_panel_cusotm_fonts.php, like this -> https://www.screencast.com/t/DkwXZI5o

Hope this helps!

Thanks for your understanding!

Post count: 21

Hi Catalin.

Thanks for the response and warnings. I’ll pay more attention in the future to the details. Anyhow, for the non-pro eye (like mine), when I searched and found the file Bogdan mentioned, I logically derived it was the one to edit.

Anyway, I tried the editing options you suggested, this time not in the td_view_custom_fonts.php file like I did before, but in the td_panel_custom_fonts.php file you mentioned. Now the change affected the design, but the results are kind of messy: I lost my Theme Panel’s background image, and could not see the Theme Fonts options any more.

What should I do? I appreciate a lot your time and effort on this matter. Thanks again,

Fidel

Post count: 23312

Hello Fidel de Rooy,

If you want to achieve more than one field for your custom fonts, notice that you should do the following changes through the code. Edit the code from the td_wp_admin_panel.js like this -> https://www.screencast.com/t/PsOSAzI05 and then, paste this code -> https://pastebin.com/VxfuTMsj here -> https://www.screencast.com/t/0TZohYMJ

Hope this helps!

Thanks for your understanding!

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.