Custom code css loading few seconds after default css

Posted in: Newspaper
Post count: 8

Hello,

URL: https://prive.tipsmaker.net/ (staging)
Old URL to be updated : https://www.tipsmaker.net/. (Theme V.9)
Theme version 10.4
Updated from 9.xxx and i can see few new css files like “legacy” etc.
A good page example where the problem described below is happening
https://prive.tipsmaker.net/efage-gero-soto

In order to override css files i created a style.css in child theme’s folder. Styles from this file do not overide all default css.
As far as i can understand using Theme panel’s Custom code filed is the only way to override all css files. Including legacy_css files etc.
And it works. It is very incovinient to edit this field instead of a custom file, nevetheless it works.
BUT when the site loads, it first loads the default css and then changes to the css used in Custom code.
Widths load default and after a second they resize to the custom style.
Even with cache enabled.
How can i change this behaviour ? While the theme is great, this one gives a very bad impression to the visitor.

cheers

Pan

  • This topic was modified 5 years by pduke7.
Post count: 18283

Hello!

That should be corrected by inserting the code in the head as you can see here: https://i.imgur.com/x9i2A7l.png
Let us know the results.

Thank you!

Post count: 8

Hi Vlad!
i am not sure i understand your suggestion.
Which code should be inserted in the head?
Do you mean calling the custom css from the head instead of inside functions.php?

cheers

  • This reply was modified 5 years by pduke7.
  • This reply was modified 5 years by pduke7.
Post count: 18283

Hello!

The code you already have created In order to override css files i created a style.css in child theme’s folder. Styles from this file do not overide all default css.
Once inserted in Head it should load faster.

Thank you!

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