Google Fonts In the title

  • Posts: 44
  • Thank you received: 1
2 years 7 months ago #343299

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.1.5
-- PHP version -- : 8.1

I use Google Fonts throughout the site. Everything is displayed correctly except the name of the product H1
The question is why? and how to solve this problem?
Don't send me to this link It doesn't say anything about fonts.
Thanks!

Attachments:
Last edit: 2 years 7 months ago by Alex3.

Please Log in or Create an account to join the conversation.

  • Posts: 83338
  • Thank you received: 13477
  • MODERATOR
2 years 7 months ago #343301

Hi,

If you look at the CSS on that element on that page with your browser's developer tools, you can see that there is specific CSS code to force the font of that text to be the Roboto font.
And the developers tools, indicate that it comes from the file
cache/com_templates/templates/lt_foodcourt/a4d97df308fe6e43c3cd2d567a11a2aa.css
So as you can see, that file is a compressed cached file of all the CSS files normally on the page:
i.imgur.com/DLCe9PE.png
However, that hikashop.css file from which that CSS code comes from is not a file from HikaShop.
So I checked your template files with the backend access you provided and I can see the file templates/lt_foodcourt/css/hikashop.css which contains that CSS:

body.com-hikashop h1 {
  font-family: 'Roboto', sans-serif;
  font-weight: normal;
}
So you need to modify that file.
I would also recommend you to contact your template provider to notify them about the problem.

If you check the code there, it has a comment which says:
/* By default, hikashop set special font for heading 1, this font is ugry, unfortunate I can't found this settings, so I set it with Roboto for better display.*/
But that's not true. HikaShop doesn't set the font for the h1 tag so that CSS code should not be necessary. I'm not sure why they thought it would be the case.

The following user(s) said Thank You: Alex3

Please Log in or Create an account to join the conversation.

  • Posts: 44
  • Thank you received: 1
2 years 7 months ago #343314

Thank you for the detailed answer. I edited this file, but unfortunately the miracle did not happen:( I wrote to the template developer

Last edit: 2 years 7 months ago by Alex3.

Please Log in or Create an account to join the conversation.

  • Posts: 83338
  • Thank you received: 13477
  • MODERATOR
2 years 7 months ago #343315

Hi,

After you change that file, you need to clear the CSS cache of the template. I'm not sure how this can be done though.
Maybe via the cache cleaner of Joomla, or maybe via some button/option of the template. It depends on how they handle the CSS caching.
So checking with the template provider is indeed a good move.

Please Log in or Create an account to join the conversation.

  • Posts: 44
  • Thank you received: 1
2 years 7 months ago #343325

The problem is not to clear the cache:) But the fact that the font has changed for all languages. That is, for all site styles. But since the Russian language is not supported by this font, this solution does not suit me :( Let the developers solve this problem, especially since she is not alone;)

Last edit: 2 years 7 months ago by Alex3.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum