No search results were found in Documentation!
Hi again, So I get the following scores on http://www.styzic.com
Desktop = 97
Mobile = 60
https://developers.google.com/speed/pagespeed/insights/?url=www.styzic.com
On desktop adsense ads are enabled and it’s still fair and better than theme demo page ( score = 90). But two things that are annoying for on mobile are:
1) Optimize Images: I have optimized all images and this warning does not show on desktop but only on Mobile. When I turn jetpack photon off the warning is gone. Jetpack uses quer strings to resize images and that’s the reason.
2) Eliminate render-blocking CSS: This warning doesn’t occurs for js as they are defered. My css are at the bottom of the page but still this warning appears. I’ve minified the css files.
So, any bdy out here who might be so generous to help with Photon and async css?
I’ve tried all plugins in the sticky threads here but none of them could async the 3 css files.
Thanks, Shashank đ
I tried many times to clear render blocking css and JS but not successful. I hope someone here will help me out.
Here is my speedbooster.php file
<?php
/*
Plugin Name: tagDiv speed booster
Plugin URI: http://tagdiv.com
Description: Speed booster for Newspaper theme - It moves the styles and all the scripts of the theme to the bottom. It also activates internal theme optimizations for better speed.
Author: tagDiv
Version: 2.5
Author URI: http://tagdiv.com
*/
/*
* 2.6 - fixed rendering bug on the loading of the page
* 2.5 - code improvements, newspaper 4 compatibility
* - makes most of the javascript files use defer parsing
* - better compatibility with revolution slider
* 2.4 - updated jquery version
* - support for https
* 2.3 - fixed warnings when trying to move javascript files that are not registered
*/
class td_speed_booster {
var $load_contact_form_7 = '';
var $load_google_fonts = '';
var $styles_for_footer = array();
var $async_js_scripts = array(
'contact-form-7',
'bbpress',
'woocommerce',
'site',
'devicepx',
'js_composer_front'
);
function __construct() {
add_action('wp_enqueue_scripts', array($this, 'enqueue_scripts_hook'), 100);
add_action('wp_footer', array($this, 'wp_footer_hook'), 15);
add_action('wp_head', array($this, 'wp_head_hook'), 15);
define('TD_SPEED_BOOSTER' , 'v2.5');
}
function enqueue_scripts_hook() {
global $wp_scripts;
//$this->move_js_to_footer('bp-legacy-js');
//detect revmin - revolution slider and do not move jquery
if( !is_admin() and !isset($wp_scripts->registered['revmin'])){
if (is_ssl()) {
$td_protocol = 'https';
} else {
$td_protocol = 'http';
}
wp_deregister_script('jquery');
wp_register_script('jquery', ($td_protocol . '://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js'), true, '1.11.0', true);
wp_enqueue_script('jquery');
}
//move styles
$this->move_style_to_footer('bbp-default-bbpress'); //bpress old
$this->move_style_to_footer('bbp-default'); //bpress
$this->move_style_to_footer('contact-form-7');
$this->move_style_to_footer('td-bootstrap');
$this->move_style_to_footer('td-theme');
$this->move_style_to_footer('google-font-rest');
$this->move_style_to_footer('woocommerce_frontend_styles');
//jetpack lost styles
$this->move_style_to_footer('jetpack-subscriptions');
$this->move_style_to_footer('jetpack-widgets');
$this->move_js_to_footer('themepunchtools');
$this->move_js_to_footer('revmin');
//bbpress
//remove_action( 'bbp_head', array($BBP_Default, 'head_scripts') );
}
function wp_footer_hook() {
$current_theme_version = '';
if (defined('TD_THEME_VERSION')) {
//get the theme version for style
$current_theme_version = TD_THEME_VERSION;
//on demo mode, autogenerate version hourly + day
if (TD_DEPLOY_MODE == 'demo') {
$current_theme_version = date('jG');
}
}
foreach ($this->styles_for_footer as $style_id => $style_src) {
echo "<link rel='stylesheet' id='" . $style_id . "-css' href='" . $style_src . "?ver=" . $current_theme_version . "' type='text/css' media='all' />\n";
}
}
function wp_head_hook() {
if (defined('TD_THEME_VERSION')) {
echo '<style>body {visibility:hidden;}</style>';
}
}
function move_style_to_footer($style_id) {
global $wp_styles;
if (!empty($wp_styles->registered[$style_id]) and !empty($wp_styles->registered[$style_id]->src)) {
$this->styles_for_footer[$style_id] = $wp_styles->registered[$style_id]->src;
wp_deregister_style($style_id);
}
}
function move_js_to_footer($js_id) {
global $wp_scripts;
if (isset($wp_scripts->registered[$js_id])) {
wp_enqueue_script($js_id, ($wp_scripts->registered[$js_id]->src), '', $wp_scripts->registered[$js_id]->ver, true);
}
}
function async_js_hook($url) {
//check to see if we have js
if (strpos( $url, '.js' ) === false) {
return $url;
}
if ($this->strpos_array($url, $this->async_js_scripts) === false) {
return $url;
} else {
return "$url' defer='defer";
}
}
private function strpos_array($haystack_string, $needle_array, $offset=0) {
foreach($needle_array as $query) {
if(strpos($haystack_string, $query, $offset) !== false) {
return true; // stop on first true result
}
}
return false;
}
}
new td_speed_booster();
And here is my function generated file
registered scripts
common | /wp-admin/js/common.min.js
admin-bar | /wp-includes/js/admin-bar.min.js
utils | /wp-includes/js/utils.min.js
svg-painter | /wp-admin/js/svg-painter.js
wp-auth-check | /wp-includes/js/wp-auth-check.min.js
itsec_file_change_warning_js | http://mydomain.com/wp-content/plugins/better-wp-security/modules/free/file-change/js/admin-file-change-warning.js
itsec_strong_passwords | http://mydomain.com/wp-content/plugins/better-wp-security/modules/free/strong-passwords/js/strong-passwords.js
devicepx | http://s0.wp.com/wp-content/js/devicepx-jetpack.js
wpuf-subscriptions | http://mydomain.com/wp-content/plugins/wp-user-frontend-pro/assets/js/subscriptions.js
wp-color-picker | /wp-admin/js/color-picker.min.js
jquery |
media-upload | /wp-admin/js/media-upload.min.js
thickbox | /wp-includes/js/thickbox/thickbox.js
wpuf-chosen | http://mydomain.com/wp-content/plugins/wp-user-frontend-pro/admin/../assets/js/chosen.jquery.js
wpseo-admin-global-script | http://mydomain.com/wp-content/plugins/wordpress-seo/js/wp-seo-admin-global.min.js
td-wp-admin-general | http://mydomain.com/wp-content/themes/Newspaper/wp-admin/js/general.js
td-wp-admin-panel-js | http://mydomain.com/wp-content/themes/Newspaper/wp-admin/js/wp-admin-panel.js
suggest | /wp-includes/js/jquery/suggest.min.js
registered styles
admin-bar | /wp-includes/css/admin-bar.min.css
colors | 1
ie | /wp-admin/css/ie.min.css
wp-auth-check | /wp-includes/css/wp-auth-check.min.css
itsec_notice_css | http://mydomain.com/wp-content/plugins/better-wp-security/core/css/itsec_notice.css
wp-color-picker | /wp-admin/css/color-picker.min.css
wpuf-chosen-style | http://mydomain.com/wp-content/plugins/wp-user-frontend-pro/admin/../assets/css/chosen/chosen.css
google-font-ubuntu | http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic&subset=latin,cyrillic-ext,greek-ext,greek,latin-ext,cyrillic
td-wp-admin-td-panel-2 | http://mydomain.com/wp-content/themes/Newspaper/wp-admin/css/wp-admin.css
thickbox | /wp-includes/js/thickbox/thickbox.css
wpalchemy-metabox | http://mydomain.com/wp-content/themes/Newspaper/wp-admin/content-metaboxes/meta.css
ithemes-icon-font | http://mydomain.com/wp-content/plugins/better-wp-security/lib/icon-fonts/icon-fonts.css
bbp-admin-css | http://mydomain.com/wp-content/plugins/bbpress/includes/admin/css/admin.css
jetpack-icons | http://mydomain.com/wp-content/plugins/jetpack/_inc/jetpack-icons.min.css
Here what my pagespeed test suggest
Remove Render Blocking Javascript
http://mydomain.com/wp-includes/js/jquery/jquery.js.pagespeed.jm.ocognCjcS2.js
http://mydomain.com/wp-includes/js/jquery/jquery-migrate.min.js.pagespeed.jm.mhpNjdU8Wl.js
http://maps.google.com/maps/api/js?sensor=true
http://maps.gstatic.com/maps-api-v3/api/js/17/15/main.js
http://mydomain.com/wp-content/plugins/wp-user-frontend-pro/assets/js/frontend-form.js.pagespeed.jm.DduuMTRcHs.js
Optimize CSS Deliver of the following
http://mydomain.com/wp-content/plugins/revslider/rs-plugin/css/W.settings.css,qrev=4.3.8.pagespeed.cf.DyIPD1r_80.css
http://mydomain.com/wp-content/plugins/revslider/rs-plugin/css/W.captions.php,qrev=4.3.8.pagespeed.cf.VUw1T7K7S2.css
http://mydomain.com/wp-content/plugins/wp-user-frontend-pro/assets/css/W.frontend-forms.css.pagespeed.cf.vemqQTxrMU.css
http://fonts.googleapis.com/css?family=Roboto%3A400%2C700
I am also using Dreampress which is on varnish cache. I enabled Page Speed Mod as well. No other caching plugin.
My Page Speed Score is 64 for desktop and 41 for mobile.
Further, Here is what i added in my httaccess
<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedModifyCachingHeaders off
</IfModule>
# BEGIN Expire headers
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 604800 seconds"
ExpiresByType image/jpeg "access plus 604800 seconds"
ExpiresByType image/png "access plus 604800 seconds"
ExpiresByType image/gif "access plus 604800 seconds"
ExpiresByType application/x-shockwave-flash "access plus 604800 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 604800 seconds"
ExpiresByType application/javascript "access plus 604800 seconds"
ExpiresByType application/x-javascript "access plus 604800 seconds"
#ExpiresByType text/html "access plus 600 seconds"
#ExpiresByType application/xhtml+xml "access plus 600 seconds"
</ifModule>
# END Expire headers
Now please suggest me what to do for increasing my page speed. My site is damn slow. Please help me to correct the speedbooster.php file as per instructions. Special request ot Christopher for helping me out. Thanks
I tried doing it and it works as expected but I messed things with my css. I need the css to do it like the demo image I’ve provided. đ
Waiting…
Hi Lucian, the noticed now that our newspaper theme is “kinda boxed”, since none of full width sections are working. Here’s our the page we are trying to use as the parallax demo:
http://ambrosia.virgula.uol.com.br/circuito-ambrosia/
Any thoughts? I just updated the theme to the newest version and remove all customizations, just added the top bars.
Thanks
Hi there,
I have two questions:
1st – Is it possible to have Slides and Big Slides on the homepage in the same format as the borderless “parallax” style 4 within the articles?
http://demo.tagdiv.com/newspaper/popular-people-who-everyone-seems-to-love/
I would love to see that borderless image on the homepage which would increase consistency also.
2nd question – Is it possible to use images in 16:9 aspect ratio as thumbnails natively without cropping?
Thank you!
Hi
I am using this plugin to show sharing buttons on the site. But it is conflicting with the theme and it isn’t full width..I want it to be full width and responsive.
The plugin demo is responsive but as a result of theme conflict, it isn’t resposnive on the theme?
Please help
Hi,
Please install the demo data from theme panel > welcome http://screencast.com/t/NOYhjn6gnV the “Homepage 4” layout should come with the demo data then you will be able to edit the page and see how it’s built.
Or add a new page and add the following shortcodes in the page like this: http://screencast.com/t/GypkMSlFewI
[vc_row][vc_column width="1/1"][td_slide_big category_id="207" limit="8" hide_title="hide_title"][/vc_column][/vc_row]
You will need to set the page template to “Homepage – with article list” like this: http://screencast.com/t/z0kdaXL3Zp
You also need enough posts for this to work.
The best way it’s to install the demo data then you will get this homepage.
Thanks
Hi,
Are you using Jetpack Photon â http://jetpack.me/support/photon/ or a similar CDN plugin ? I noticed that your images link contain this resize=480%2C360 which makes the image link looks like this â http://i1.wp.com/thatcoolwebsite.com/wp-content/uploads/2014/08/hqdefault1.jpg?resize=480%2C360
Without this CDN the link should be something like this: http://192.168.0.70/wp_demo_009/3/wp-content/uploads/2013/05/maxresdefault41-745x483.jpg
I think this could be the reason for this issue. Please disable all plugins including CDN and then regenerate thumbnails https://forum.tagdiv.com/how-to-fix-strange-thumbnails/ and also remove and add the link for the featured video again for that post.
Regarding the infinite scroll you already have an loading in progress animation http://screencast.com/t/zca13IONyC which it’s positioned at the center of the block.
Hope this helps!
Thanks
Hello,
Installed the theme (in classic blog version) and love it but have a few questions:
a) Is it possible to make the header logo centred on the page
b) I have installed Shortn.It (http://wordpress.org/support/plugin/shortnit) and have set it up but is there a way of when clicking the twitter or Facebook at the bottom of the page to show the shortened url. At the moment it shows as (using the demo as an example) Asus Xonar U7 sound card has a built-in Headphone Amp http://seeasa.com/?p=53 via @seeasa (is there a way of changing it to show my custom url and make it Asus Xonar U7 sound card has a built-in Headphone Amp http://see.je/abcde via @seeasa. Also clicking on Facebook it only gives the blog logo and address and no information on the story being shared.
c) In the demo classic blog layout demo when you click an article it shows before and next but can’t find there that is in the theme settings to activate
d) How do I give different categories different colours?
Many Thanks in advance
Replied via e-mail!
Thanks for the message!
My server is up. you should have the login details by email.
Hmm… that one is close, but makes the active text itself white, and using background-color instead of color gets us back where we started.
After trying to fiddle with this for a long time, and finding that there are so many classes involved that my just-learning knowledge of CSS is not enough, I made this quick screen capture to demonstrate what I mean.
This is using Lucian’s first CSS, which is actually the closest to what I want to see. That’s what I’ll leave on there for now.
Four things shown in the video:
(1) On Home page everything is fine. I wouldn’t want to lose any of that
(2) On test cat archive the two dropdown items are highlighted
(3) BUT on a post in test cat, the two dropdown items are not highlighted. This is exactly what (2) should look like
(4) Just showing a post in a subcat of test cat, which is also working correctly
So I feel like the styling is there already, but it’s a problem of making the parent cat archive not treat the subcats as active. Or if there is an extremely specific CSS class for subcat dropdown menu items whose parent is active, and which doesn’t break (4)…
Sorry to bother you so much! All your posts are really appreciated, but none of them have gotten those results so far đ I might just live with this if I have to…
Hi, is there any way to create a page (instead a blog post) with parallax just like this one in the demo: http://demo.tagdiv.com/newspaper/popular-people-who-everyone-seems-to-love/ ?
Thanks
I have also just emailed you my license code and again all the login details.
My server was down for a while so I think that’s why you haven’t been able to help me. It’s back up now. I have just sent a copy of this email to you as another reply. My email: tomashley303@gmail.com
Please let me know if there’s anything else I can do to help. All login credentials are in our email thread.
Thank you.
Hi,
You will get a reply there! Thanks
It’s still not working. I just replied to contact@tagdiv.com with my login credentials. Thanks.
Hi,
Please make sure to have the GD library installed and also make sure you have writing permissions on /wp-content/uploads
If you have done this and still the images are not showing please try to upload an image and see if you get any errors.
Please let us know if you still have any issues also please send an link to your site.
Regarding the floating feature for the menu you can add it from theme panel like this: http://screencast.com/t/kGBBOgZgTv
Thanks
I used the demo content install button but no images are showing up and the navigation bar isn’t floating when I scroll up from the bottom of the page.
Hello,
Here is an empty template that you can try it if works, is only the Visual Composer on that page without menu, footer.
http://demo.tagdiv.com/tf/page-full-blank.zip
Unzip this file in theme root and create a page using this template: http://screencast.com/t/lQwqypkX
Thanks!
Hello,
We doesn’t touch the mega menu code in the latest theme version, everything should work fine like you see on our demo it working.
Can you give us your site url to see the issue?
What i find very weird that for weeks now ur asking us about lot things to do with a site that’s not “LIVE” are have any content of urs but the demo content and now there is a error to even access ur site…seem you just playing around with code and the theme and not serious about making a website for people to visit..i just find it weird that’s all
Btw no one can access ur site it have a error…
Parse error: syntax error, unexpected end of file in /kunden/323925_31275/cherrykoks/wordpress/wp-config.php on line 94
On your demo site, there is an 11% left and right margin set to the text on full-width templates (when the sidebar is not set to display) (example: http://demo.tagdiv.com/newspaper/popular-people-who-everyone-seems-to-love/), but this margin is not applied when there is a sidebar on the page.
What css do I need to add so this would only apply when there is no sidebar on the page.
Thanks.
Hi,
1. The featured image thumbs for the big slider are automatically cropped when they are uploaded, don’t fit inside the slider’s container you would have to regenerate thumbnails like @TheMediumUTM suggested https://forum.tagdiv.com/how-to-fix-strange-thumbnails/
2. Unfortunately you can use different stacks for individual pages/categories.
Sorry about the inconvenience.
Thanks for the message!
How do I set this to be like the one on your demo site?
When i try it I get the image the full screen width, unlike yours which is just in the middle of the page, above the content and sidebar