- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsWhat is Ajax preloading?
Hello,
We have no such reports until now. Our blocks pull information from the post itself including the publish date.
Please disable all plugins except visual composer, clear cache and reset cdn files if you use it. Then test the dates again. Let us know if you still have issues with dates and if you do,please provide a link to your site so we can inspect it.
Thank you!
Hello,
Please disable all your plugins except visual composer, clear cache and reset cdn files if you use it. Then test the mobile theme again.
If you still have issues with it, please contact us via email at contact@tagdiv.com and provide wp-admin so we can login and investigate this issue.
Thank you!
Hi
We’re sorry for any inconvenience you have encountered using our theme.
The theme is tested and feature images should be displayed without any changes in code. However checking your site I’ve found some errors in browser’s console which are related with theme’s js: http://screencast.com/t/A5oKnz8tg This errors may be caused by some plugins which conflicts with the theme or by some minifycation used for js. Try to deactivate all plugins except Visual Composer, clear all caches, purge cdn files if you’re using, remove the css/js minification then test the site again.
The theme can’t control the informations picked by Facebook sharer when a post is shared. Facebook looks for og tags and picks the details from these tags. To generate the og tags you can use a plugin like SEO By Yoast which is tested and works fine with our theme. Please check these links for more details in this regard: https://kb.yoast.com/kb/getting-open-graph-for-your-articles/ – https://yoast.com/social-media-optimization-with-wordpress-seo-by-yoast/
Another important aspect is server’s response time. Facebook won’t wait to long for requested data and if the server respond to slow some data will be skipped. Checking your site with google page-speed tool I’ve noticed that the response time is higher then 6s, please check the screen: http://screencast.com/t/2qMDqyDS2 Make sure that your server meets theme’s requirements and also ensure that the parameters from system status have the values indicated here: https://forum.tagdiv.com/requirements-for-newspaper/ – https://forum.tagdiv.com/system-status-parameters-guide/
It is very likely that Facebook won’t anything about a new published post. Facebook handle a huge amount of data and a new published post won’t be indexed automatically. However you can force Facebook to update new posts by running a fresh scrape with debugger tool: https://developers.facebook.com/tools/debug/og/object/ – http://screencast.com/t/8rKTpv28f
Hope this helps!
Thanks!
Hi
The settings from theme panel should not be affected by theme’s update as they are stored in database which is not touched during the update. The settings may be lost only if the db is damaged or the reset function is used: http://screencast.com/t/RnjDahif4r5
Try to deactivate all plugins except Visual Composer, clear all caches, purge the cdn if you’re using then try to import the settings again.
Let us know ho it goes.
Thanks!
Hi Chris S, indeed it would be great!
A little advice for that users who will want to use this improvement for Speed-booster plugin.
Using this code in combination for example with that one provided by Chris S in his [tutorial], you’ll have a double-edged knife (you’re warned! ๐ ) if not used with caution.
Good to know: even if you update your theme to a new version, browsers/CDNs/… and in the end users, they all not recognize your changes until your rules for “Expire headers” will expire! and I’m sure that you’ll go crazy the tagDiv staff ๐ with: “my users not seen me changes/updates” or similar.
In addition it should be recalled that a normal users (visitors) which makes search on Internet, will not erase the cache from their devices to see our web (recent version).
So, if you are use this snippet, use it with precaution in combination with an flexible time for expire headers depending on your activity!
Can be controled also by Cache-Control Headers but that’s another story apart
———-
Summary to remove query strings from static resources with Speed-Booster enabled:
• For functions.php (a slim version ๐ )
function remove_js_ver( $src ) {
if( strpos( $src, '?ver=' ) )
$src = remove_query_arg( 'ver', $src );
return $src;
}
add_filter( 'script_loader_src', 'remove_js_ver', 10, 2 );
• For td-speed-booster.php
foreach ($this->style_footer_queue as $style_id => $wp_dependency_object) {
if (strrpos($wp_dependency_object->src, '?') === false) {
echo "<link rel='stylesheet' id='" . $style_id . "-css' href='" . $wp_dependency_object->src . "' type='text/css' media='" . $wp_dependency_object->args . "' />\n";
} else {
echo "<link rel='stylesheet' id='" . $style_id . "-css' href='" . $wp_dependency_object->src . "' type='text/css' media='" . $wp_dependency_object->args . "' />\n";
}
}
Good luck and nice/big traffic to all.
All thanks must go to Andrei L. because he provide us this custom work.
-
This reply was modified 9 years by
nairolf.
Hi
Please refer to our documentation for more details in page-speed regard: https://forum.tagdiv.com/how-to-make-the-site-faster/ Try to optimize the images following googleโs docs: https://developers.google.com/speed/docs/insights/OptimizeImages Also you can use leverage browser cache to reduce the size of the css/js resources served by the server: https://gtmetrix.com/leverage-browser-caching.html
To minify js you can use Speed Booster plugin which loads the minified version of js for the theme. Also for css you can try clodflare; https://forum.tagdiv.com/cloudflare-cdn/
Hope this helps!
Thanks!
Hi
There was a conflict between Mobile theme plugin and SEO By Yoast plugin. Try delete the mobile theme plugin and install this version: http://cdn.tagdiv.com/wp-content/uploads/2016/09/td-mobile-plugin.zip clear all caches then test the site again.
Let us know ho it goes.
Thanks!
Hi
PLease make sure that you update the theme according with our documentation: https://forum.tagdiv.com/how-to-update-the-theme-2/ also check if the parameters from system status have the values indicated here: https://forum.tagdiv.com/system-status-parameters-guide/ , deactivate all plugins except Visual Composer, clear all caches, purge the cdn if you’re using then test the site again.
Let us know how it goes and if the problem persist please send us an email at contact@tagdiv.com with your login credentials and we will inspect this issue as soon as possible, also include a link to this topic.
Thanks!
Hi
Please make sure that you update the theme according with our documentation: https://forum.tagdiv.com/how-to-update-the-theme-2/ also try to deactivate all plugins except Visual Composer, clear all caches, purge cdn files if you’re using then test the site again.
Let us know how it goes and if the problem persist please send us an email at contact@tagdiv.com with your login credentials and we will inspect this issue as soon as possible, also include a link to this topic.
Thanks!
Hello,
This is most likely a plugin conflict. Please disable all plugins except visual composer, clear cache and reset cdn files if you use it. ALso remove any javascript compression you seem to have active on your site. Then test the menus again.
let us know if you still have issues with the menu.
Thank you!
Hi
The theme does not control the registration process, it only make the widget used in this regard. WordPress handle login/registration process so it could be a conflict with some plugin or a miss-configuration from the server. Try to deactivate all plugins except Visual Composer, clear all caches, purge the cdn if you’re using and test the site again.
Hope this helps!
Thanks!
Hello,
If you cannot see he background, there could be some kind of error on your site so please disable all plugins except visual composer, clear cache and reset cdn files if you use it. Please also check any custom code you might have implemented. We have no reports of such issues and we cannot recreate the issue on our end.
Thank you!
Hi,
We only recommend this caching plugin and these settings: https://forum.tagdiv.com/cache-plugin-install-and-configure/
Also make sure you disable all plugins except visual composer, clear cache and reset cdn files.
Thank you!
Hello,
I suspect your fonts got changed vie css. Please remove any custom css in your theme panel or any custom code added in the theme files. Restore the theme to it;s default behavior without any interference and check the fonts again. Also disable all plugins except visual composer, clear cache and reset cdn files if you use it.
If you cannot manage to get the icons to show, please provide a link to your site pointing at such an elements and we will take a look.
It can also be a cdn issue like this topic suggests: https://forum.tagdiv.com/topic/strange-chinese-symbols-replaced-icons-and-arrows/
Thank you!
Hi
I cannot duplicate the issue on my end, I’ve added a self hosted video in post content and works fine on full width mode. I’ve made the test wit V 3.1 of Newsmag. Try to update the theme again following our documentation: https://forum.tagdiv.com/newsmag-how-to-update-the-theme/ also update the social counter at V 4.1 which is included in theme’s path and setup the plugin according with our documentation: https://forum.tagdiv.com/newsmag-tagdiv-social-counter-tutorial/ , clear all caches, purge cdn files if you’re sing then test the site again.
Let us know how it goes and if the problem persist please send us an email at contact@tagdiv.com with your login credentials, also give us ftp access, and we will inspect this issue as soon as possible. In your message include a link to this topic.
Thanks!
Hi Admin
How to make pagination like this
in other layout
Hey Chris and nairolf,
It was midnight here and I slept so, couldn’t reply to both of you. Sorry ๐
I am thankful to nairolf for putting efforts in trying to help me and give me the right direction. I was finally able to make speedbooster working by his help yesterday ( and also disabled one 301-redirection plugin by adding few codes in functions.php because of his motivation to use fewer plugins ๐ )
Chris is my old fav and his detailed ( and many times witty! ๐ ) tutorial has helped me a lot to optimize my website in the past.
Anyways, on this point,
I am not sure which codes under Chris’s codes are effecting the Query strings and should I try to change “10 to “101 or max” under this code:
function remove_cssjs_ver( $src ) {
if( strpos( $src, '?ver=' ) )
$src = remove_query_arg( 'ver', $src );
return $src;
}
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );
or any other?
I also tried to add one code suggested by KEYCDN here: https://www.keycdn.com/support/remove-query-strings-from-static-resources/ Code is:
function _remove_script_version( $src ){
$parts = explode( '?ver', $src );
return $parts[0];
}
add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );
It didn’t work either .. perhaps for the same reason why Chri’s code didn’t work. May be I should try changing the number 15 to 200 or something?
For nairolf’s suspicion , I checked all other related plugins to see if any function is forcing the query strings behavior that we set in functions.php but couldn’t find anything. I am using itheme security plugin and here I have checked an option which says ” Replace jQuery version with safe version” ( see here: https://i.snag.gy/4SKTg3.jpg ) Previously my Jquery version was 1.12.4 or something but now it’s showing 1.11.1 . Just informing you if it’s the reason behind something.
Other thing I noticed under Yoast SEO, where I have checked “Remove the ?replytocom variables. ” option. Though it serves a different purpose but somehow related to these query thing.
Nairolf said somewhere above that “at least on Newspaper 7.4, is impossible to remove the query string with conventional functions for all resources.”
Then how did you finally removed these strings Nairolf or you didn’t ?
Can’t we move these CSS even with these query strings? And more immportantly, one very important point which you both missed from my previous comment that, after doing required modifications to speedbooster.php, I can actually see that Style.css, fonts and facbook login CSS etc have moved to footer ( Checked “View Source” page of my post on Google chrome) and when I removed JS modifications from speedbooster.php, I saw it coming up on the “view source code”
If sppedbooster were not working with these CSS files, why it would have moved these files from top to footer. The main question is “why it still appears on Google Pagespeed score? ”
Or perhaps it is appearing GPS because GPS is suggesting to remove these query strings and not raising any flag over whether it has been moved to footer or not?
PS: I can understand that tt can be really big tough to deal with a non-progrmmer like me but let me assure you that I do things carefully and I can be instructed very well ๐
Thank you.
-
This reply was modified 9 years by
Nano.
Note – if using a caching plugin or external service, they “might” be adding query strings to things to control caching. I remove query strings so things can be cached. But some other plugins can add them back to disable caching or modify how css and js are cached.
In my example code, on all my sites regardless of theme — not using any external optimization system / CDN, or caching plugin — it does remove the query strings ….
Also note all my optimizations started with newspaper then moved to newsmag and are theme independent as they impact how WordPress works, not the “theme,” unless something specifically says “/* newsmag fix*/” or similar. ๐
There you go. ๐
Glad you got it sorted !
It’s probably blocking something like external load of jquery, CDN, google fonts, etc. — you might be able to dial in the settings to allow trusted stuff — but a pain, obviously.
I think EDGE may have a developer mode, like Chrome, which seems to make a better experience when testing your own websites.
-
This reply was modified 9 years by
simchris.
Hi guys,
Only for those who using a proxy server domain is good to use that snnipet.
For users that not using any CDN, inspect your preferred domain!!!
In your case @neermargran you serve files from “another” domain. I mean, your default domain begins with www (http://www.lopak.org) but you serve your stylesheets & javascripts from the same domain, but without “www” (http://lopak.org).
Hi
@BkkGreg I’ve noticed that you’re using cache for the site and this may also be a reason for the long delay in applying the changes. After you make any changes make sure you clear all caches and purge the cdn files if you’re using such a service.
Now the links from category page seem to wark as you expect, let us know if you need further assistance on this.
Thanks!

HI
@Sikopp if you still have this issues try to deactivate all plugins except Visual Composer, clear all caches, purge cdn files if you’re using then test the site again.
Let us know ho it goes.
Thanks!
If you use custom code for css, try to remove from the box and put in the main style.css
If not fixed with this step, you have an incompatibility with some plugin.
P.D.: that errors are from you plugin “SwarmCDN”
Always check your pages with F12/console for errors …
I’m seeing this in visiting your page:
swarmdetect.js:1 A Parser-blocking, cross-origin script, https://assets.swarmcdn.com/swarmcdn.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity.
one of your posts at random
VM277:2 Uncaught SyntaxError: Label 'https' has already been declared(anonymous function) @ swarmcdn.js:5
2swarmdetect.js:1 A Parser-blocking, cross-origin script, https://assets.swarmcdn.com/swarmcdn.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity.
jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1
swarmcdn.js:962 Waiting for DOM Content
swarmcdn.js:950 Page ready swarm load proceeding
swarmcdn.js:858 API adcd16c4-a237-44ad-909f-e1a242766273
12f36afโฆ:40 Uncaught TypeError: data.match is not a function
Might or might not be the cause. Just worth noting, this is not “normal” on visiting a website so might be throwing something off in those browsers.