CSS Issues with Colors and Fonts

Posted in: Newsmag
Post count: 6

Hi, is there a dynamic CSS file that NewsMag creates that includes the default colors and fonts? Whenever I load a page on my site, I see the default colors (blue top bar, default fonts, etc) for half a second or so before it shifts to the colors and fonts I’ve set in the backend panel.

I’m a coder, and don’t mind editing a few files to avoid this issue. Is there a file I can edit to hardcode colors and fonts to avoid the theme first showing the default options?

Thank you.

Post count: 6535

Hi

The theme generate a custom css when you make any modification in theme panel > theme colors. When Speed Booster plugin is used this css it’s moved to footer, that’s why appear that delay. To avoid that delay you can edit style.css file and add there all your custom css: http://screencast.com/t/tRXVaL2L You can find the custom css in page source: http://screencast.com/t/XEX2iJjdf

Let me know how it goes and provide more details if you still need assistance on this!

Thanks!

  • This reply was modified 10 years by Andrei L..
Post count: 6

Thank you. That worked. Is there a line I can comment out in the code somewhere to prevent the css from being added to the footer now? I don’t need it in there twice. I realize by doing this that theme panel changes will need to be hard coded, but I already have the theme how I want it with no plans to change anytime soon.

Post count: 6535

Hi

You can deactivate the Speed Plugin but the custom css will still be loaded in page’s header. If you added your custom css in style.css file, to avoid its duplication you can remove all custom modification made in theme panel, so the custom css will not be generated, but your custom modification are still loaded from style.css file. The theme generate custom css for every modification made in theme panel even if the same code is present in main style file, it works like that.

Thanks!

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