Hi guys,
I have three questions. Number one:
I want to use a syncronous AdSense tag with a fixed size, but the theme keeps rescaling it like it’s an responsive asynconous Adsense tag. I really want to use the syncronous ad for the article top adspace to make it load faster. The resizing is not an issue, but the theme transforming it into an async tag is. How can I prevent the theme from editing a fixed syncronous Adsense tag? The rest of the article ads (inline and bottom) are used with async responsive tags which resize nicely!
Question two:
I really love the tagdiv speed booster plugin. There is only 1 problem: the plugin does not move my child theme style.css to the footer, which is good, but I still see the flickering at the beginning when the page loads. It somehow looks like the style.css (which has an @import rule to load the newspaper style.css) is still being loaded from the footer. When disabling the speed booster plugin the flickering stops and the page is loaded with the right style from the beginning. How can I use the speed booster plugin without this flickering thing, so I can still use it to move plugin’s CSS and JS to the footer?
Question three:
When using a child theme I somehow can’t minify the newspaper style.css without breaking the site layout. I’ve tried to manually copy the whole newspaper css into my child theme css and leave the newspaper css empty and then minify it, but that still does break the site. How can I minify the css while using a child theme without breaking the website’s lay out?
Hi,
1. Here you can find the code if you want to modify it – http://screencast.com/t/irz4qdDIuOac Please note that if you want to do this only for specific spots you will have to add some conditions there.
2. Unfortunately this can be caused by Speed Booster plugin which move the css and js at the bottom of the page structure so that the page will load faster, this is why the theme default color appears first then changes, because of the cascading property of css. A solution is to change the color directly into css stylesheet file.
3. You can try to copy the style.css into the child theme and renamed to style2.css – http://screencast.com/t/AeKOlI8Y Then comment this line in child theme functions file and add the following code like this – http://screencast.com/t/EaXMLvWJof2
wp_enqueue_style('td-theme', get_stylesheet_directory_uri() . '/style2.css', '', '6.1c', 'all' );
wp_enqueue_style('td-theme-child', get_stylesheet_directory_uri() . '/style.css', array('td-theme'), '6.1c', 'all' );
Also please complete the font path with ../Newspaper/ – http://screencast.com/t/BfolEMBg31FR
Thanks!
-
This reply was modified 10 years by
Alin [tagDiv].