The site shows the default template for an instant when charge

Posted in: Newspaper
Post count: 114

Hi
When I refresh or I access for first time to the site http://chilecientifico.cl/chilecientifico/, I can see the default template before to see the template I have for the site (global medicine child theme). How can I fix this?

Post count: 23312

Hello Escobar,

I suppose that you are referring to the appearance of a flash/time loading when you enter on your website, right? Firstly is loaded a default font/settings and then will appear your custom font/settings/custom CSS. This behavior appears when you have additional customization through custom CSS code and also, I suppose that you are using the Speed Booster plugin. Please notice that the CSS are working in cascade and the first time will take the code from style.css that is set it by default and then the theme will take the custom code that you have changed from Theme panel and practically this flash is generated by this cause. As a workaround, you have to check your style.css and try to add directly in this file your desired custom code. So, if your problem is still there, please try to revert the theme to the default settings, without any customizations and let us know how it goes. Also, you can try to make a new fresh install from scratch with the latest version of the theme and check the results. Also, please make sure every time you cleared caches. Noticed that the only files where you will have to edit are style.css.
If you are not aware of the steps which are needed to take in this regard, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!

Thanks for your understanding!

Post count: 114

Hi! Maybe I don’t understand very good. If I rewrite my style.css with my custom styles the system would read it quickly and don’t show the default template because would not find the default styles and only my new styles. If this is so, could I save a backup of the style.css file every time I update the template and thus keep the new styles inside style.css?
Now I have to update the template and this should not a problem if I save the original style.css file (just in case)

Post count: 22421

Hello,

Unfortunately style.css is changed on every update. You will not be able to keep your customized file and use it on another theme version as it will require the new code to function properly. There is no update proof method of customizing the theme files. Sorry. As an alternative to editing style.css you can try to increase your site loading speed or remove style.css from speed booster so the style does not get moved to the footer. https://www.screencast.com/t/ygx12ohW0V

Thank you!

Post count: 114

Hi, excuse me for to answer late. This is importante for me. Do you say I can delete the two lines in td-speed-booster.php? and with this maybe the site loading speed will be better?
The lines you send me are a bit different in my file, here there are not the words “style_id:”.
Please tell me.

Post count: 22421

Hello,
If you remove these lines from the current version of speedbooster: https://www.screencast.com/t/FqBdGKtNdrRv then all of the theme styles will not get moved to the footer anymore and you will no longer see the flash of different color on the first load. The site will load slower though as it will wait until these files are loaded. That was the point in moving them to the footer in the first place. But a side-effect of having a better loading speed is the flash of colors when there are color changes in the css. This would be a compromise between loading speed and visual effects. I think it;s enough to just comment out the td-theme code, not all 4 but I highlighted all 4 theme stylesheets.
Thank you!

Post count: 114

I have this code:

if ($this->is_ie === false) {
// move style.css theme style
$this->move_style_to_footer_queue('js_composer_front');
$this->move_style_to_footer_queue('td-theme'); //this is the main style of the theme. It's only moved on Newspaper 6!
$this->move_style_to_footer_queue('td-theme-woo'); //this is the main style of the theme. It's only moved on Newspaper 6!
}

is not the same of your example, there are not the “style_id” and also no td-theme-child (I have a child theme) and no td-theme-demo-style.
Anyway, I tried to just comment the lines but showed me an error, for this I deleted them, but the “flash” is still there.
Maybe td-theme-child?

Post count: 23312

Hello Sebastian Escobar,

Yes, the child theme can influence this case. You should switch the theme to the main one, clear all your caches and check the results. The flash should disappear.

Thanks for your understanding!

Post count: 114

How can I switch off the “Global medicine” child theme? Maybe in Newspaper > Install Demos, and there uninstall? Could I later install it again? I do not want to have problems!
I had installed the full version …

Post count: 23312

Hello Sebastian Escobar,

First of all, to be safe, you should make a full backup to your database. Do you want to switch the theme to another demo? Please be more specific about what exactly you want to do, so I can understand it better.

Thanks for the message!

Post count: 114

No, I think would be better to work with default template and only change some styles like fonts and colours (Tell me if to change the basic styles of the default template is possible). I think this would be no problem to change, although I have some different styles in my custom panel.
To change to another demo will result in the same flash/time loading.
For this, how can I switch off the “global medicine” and let the default template?

Post count: 20688

Hi,

By default template you mean the default demo – https://www.screencast.com/t/zeDuPD69Uq
You can choose any demo you want and install it normally. More information here
https://forum.tagdiv.com/demos_introduction/
https://forum.tagdiv.com/installing-demos/
Also as advised please make a backup for your website just to be safe. You can use this tool for example
http://www.wpbeginner.com/plugins/how-to-create-a-complete-wordpress-backup-for-free-with-backwpup/

Thanks

Post count: 114

Excuse me.
Really the template I can see for an instant when the site “jump” when is charging or refreshing, is the same child template (“Global Medicine”) and not the Default template.
Is the same child theme with other strong font and other background color that is visible immediately before the images finish loading. I had to see it many times for to understand it. I took a photo with my phone, where the background color seems to be blue but really is light blue.
Please look the two images:
http://chilecientifico.cl/chilecientifico/normal-page.jpg (this is the normal page as you can see in http://chilecientifico.cl/chilecientifico/)
And look:
http://chilecientifico.cl/chilecientifico/page-when-charge.jpg

I understood by previous posts that the custom styles that I modified were in last place when the template charge, and for this for an instant the template shows the default styles and at the end my custom styles, but this styles there are not my custom styles, like fonts and background color. This are styles of personalized styles from theme panel.

I would like to know how to fix this. Really is not the default template, excuse me.

Post count: 20688

Hi,

This depends on how well the website is optimized. Your website loading speed seems to very from very fast to very slow. It is also recommended to use the caching plugin with these settings
https://forum.tagdiv.com/cache-plugin-install-and-configure/
Also try as a test to disable all your plugins except Visual composer, clear the cache and then check to see if this improves page loading speed. Some plugins can have a negative effect on website performance.

Thanks

Post count: 114

Hi
The WP Super Cache was installed and configured like indications, but anyway I disabled it for test. I was disabling all plugins and testing them, and when I disabled tagDiv Speed Booster all was better. I thought this was a esencial plugin for Newspaper template but now I realize the site is working well without it. I hope it.
I also disabled tagDiv Mobile Theme and Akismet. Is Akismet needed?

Thanks you for your help.

Post count: 20688

Hi,

The Akismet plugin is a spam prevention plugin that verifies comments and other imputed data and filters out the ones that look like spam. You can remove it if that is not needed for your website.
More information here – https://wordpress.org/plugins/akismet/

Thanks

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