- NewspaperFlex Block Builder and Flex Loop Builder
- NewspaperHow to use the Flex Blocks cache option
- NewspaperHow to edit modules for Flex Block X
- NewspaperHow to insert a block inside the content of a post
- NewspaperFlex Block Settings Guide
- NewspaperMeta Info on Modules and Blocks
- NewspaperTheme modules and blocks
- NewspaperThumbnails – Fix strange looking images on blocks
- NewspaperBlock settings tutorial
- NewspaperCategory Tag on Modules/blocks
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- NewspaperSearch setup for custom post type
- NewspapertagDiv Opt-In Builder – Emails
- NewspaperBookmark – Save For Later
- NewspaperModules Builder in Newspaper Theme
- NewspaperFilters and sorting for taxonomies
- NewspaperUser review system
- NewspaperWooCommerce: Happy “Add to Favorites!”
- NewspaperLockers
- NewspaperLeads
Hello, this was my previous question regarding website speed :
https://forum.tagdiv.com/topic/how-to-do-further-website-optimization/
I followed all of your instructions, my speed test was improved on mobile and desktop.
but yesterday when i changed template layout on my site, google speed test dropped again:
https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.unbelievable-facts.com%2F&tab=mobile
On desktop it is good 91 out of 100
and there is only 1 render blocking css which you told me it can not be moved.
http://www.unbelievable-facts.com/…content/themes/Newsmag/style.css?ver=1.5
But on mobile there are some more scripts and css files showing on speed test, it wasn’t there before making changes in template:
Remove render-blocking JavaScript:
http://ajax.googleapis.com/…s/jquery/1.11.1/jquery.min.js?ver=1.11.1
http://www.unbelievable-facts.com/…alite/Socialite/socialite.min.js?ver=2.0
http://www.unbelievable-facts.com/…ugins/wpsocialite/wpsocialite.js?ver=1.0
http://www.unbelievable-facts.com/…ensions/socialite.stumbleupon.js?ver=1.0
http://www.unbelievable-facts.com/…jquery.form.min.js?ver=3.51.0-2014.06.20
http://www.unbelievable-facts.com/…ct-form-7/includes/js/scripts.js?ver=4.1
http://www.unbelievable-facts.com/…themes/Newsmag/js/td_site.min.js?ver=1.5
http://www.unbelievable-facts.com/…includes/js/comment-reply.min.js?ver=4.1
Optimize CSS Delivery of the following:
http://www.unbelievable-facts.com/…content/themes/Newsmag/style.css?ver=1.5
http://www.unbelievable-facts.com/…poser/assets/css/js_composer.css?ver=1.5
http://www.unbelievable-facts.com/…t-form-7/includes/css/styles.css?ver=1.5
http://fonts.googleapis.com/…,600italic,700italic,400,700,600?ver=1.5
http://www.unbelievable-facts.com/…p-includes/css/dashicons.min.css?ver=1.5
http://www.unbelievable-facts.com/…p-includes/css/admin-bar.min.css?ver=1.5
http://www.unbelievable-facts.com/…/wpsocialite/lib/wpsocialite.css?ver=1.5
http://www.unbelievable-facts.com/…p-subscribe/css/wp-subscribe.css?ver=4.1
and these scrips and css don’t seems to have a ‘file id’so i can not move them using speed booster plugin.
please guide me further!
Hi,
More tag works well and the result of it is applying only to the article, no to the block that display the article:
http://screencast.com/t/sIgTza03ax
http://screencast.com/t/yJ68qcZreW
http://screencast.com/t/l4dWTjugR
Thanks
I want Footer 3 to show me the most popular posts from the last 7 days in Block 10.
But…..it appears the unique post feature from the page is keeping it from showing posts already listed above in blocks.
Any workaround or fix for this?
If not, can I get a feature request to remove a block from unique post system in the block settings.
Hi everyone
On the topic of “PageSpeed,” I have already answered the same questions 50-100 times the past year and they are all covered in the “sticky” thread found in the Newspaper forum.
I am no longer providing any help with PageSpeed issues, as this is all covered in the sticky topic for advanced users; and for newbies, the settings/docs provided by TagDiv for the theme docs (link right side of page) will get you to the 80+ stage right away. If your score is below that then you *did not* follow the theme docs or this topic on the basics for speeding up your WORDPRESS install.
WordPress optimization is widely covered on the net – it’s not theme specific.
You need to have
a) fast hosting; $3/month accounts or “free” hosting are crap.
b) have gzip/deflate running on server
c) you need to set expiration headers in your htaccess (noted in docs)
d) you need to have an image optimization strategy (noted in docs); either via plugin and/or changing optimization setting in functions.php (covered in the sticky topic.. why not READ through it??)
e) you need to optimize your dbase regularly (wp-optimize plugin)
f) you need to limit use of things which call CSS, JS, fonts, ads, counters from OTHER SITES.
g) you need to test/explore refine some kind of caching system on the server or from a WP plugin (noted in docs)
h) high quality hosting will add mod_pagespeed
i) you need to look at manual minification of main style.css file
j) limit number of ad networks
k) limit number of plugins wherever possible
j) limit total number of images/thumbs loaded on post pages to something like 10 total; not 30+
k) use fewer module types to limit number of image sizes/thumbs; use text modules also.
When testing site with something like GTMetrix.com *READ* the information provided with examples and solutions. Only YOU can fix your own website, why ignore the info provided as so many on this forum(s) seem to do?
Advanced users:
a) local caching/loading of gravatars (I provide solution in the sticky thread)
b) mod_pagspeeed and mod_spdy if site loading via https (I offer help on that in the sticky thread and other discussion on mod_pagespeed; search forum)
c) optimization of font loading, hack theme to remove calls from headers/footers to Google and load via style.css; -or- use ONLY web-safe fonts and no Google fonts. (I also describe how to do this in sticky thread; although might need update based on current location of font calls with theme evolution/updates)
d) manual minification of other files, such as main theme functions files
e) optimization of wp-config.php file with comment removal, add paths to base URL/directory and theme directory by name (I show example in sticky thread)
f) add expiration type/ttl for custom icon font loaded by theme (betcha forgot that one!)
etc.
Learning to optimize your WordPress site is UP TO YOU TO LEARN. It’s not part of the theme. The theme supports very good speed rating IF YOU DO THE REST. The theme cannot fix your server, optimize your htaccess file, speed up time, or transport you off this rock. Google is a great resource to FIND hundreds of articles from the past decade on optimizing WordPress. You’re not the first person to do it.
Chris out.
(I am adding this here, as many don’t look at the sticky thread and/or folks in the Newsmag forum never saw that. Even so, most posting “my score is 40” clearly did NOT follow the basics found in theme docs.)
#1 TIP: don’t worry about render blocking elements until EVERYTHING ELSE is done. Those last items really only impact your last couple of points. I have 95 score with Newsmag without full optimization of the fonts or minification. It’s doable!
Hello i minify the css files but can you please tell me how i do Eliminate render-blocking JavaScript and CSS in above-the-fold content??
i follow this guide https://forum.tagdiv.com/how-to-make-the-site-faster/ but i can’t get the id which google page speed tell in results so please have a look in my site http://www.movzio.com and please tell me how i do render-blocking?
Thank you
-Mosam
I spoke several times with a storage company that is what they told me ”
The issue which you’re experiencing is due to the ‘max_questions’ for the MySQL database which is being used by the blog. If the MySQL user exceeds the database query limit, which is 75,000 per hour per user, then the WordPress website will be redirected to the installation page. This setting is in place to ensure that the MySQL database cannot be overloaded with to many query requests. The queries will reset every hour and is kept by user; however every time the pages on your website are accessed you are still attempting to make queries to the database server. It will be fixed automatically within one hour.
There are many possible causes for the ‘max_questions’ limit get exceeded. Some of them are:
* A script is not closing the MySQL connection after accessing the database. In WordPress, such chances are less, however if there is an error in the scripting of a plugin or theme which you’re using, then the MySQL connection won’t close after querying the database. Hence, please make sure that you close the connection immediately after accessing the database using mysql_close() command from your scripts.
* Your scripts or pages are hitting too frequently from a specific IP address through brute force tools or manually or from other websites. You can check raw logs available in the /stats directory or check the Visitor Statistics for such possibilities. Using the .htaccess Hotlink Protection and the .htaccess Block IP Addresses would resolve this issue.
* Using a single database for multiple applications or having too many users for a single database. A solution for this is creating separate databases for separate applications as well as having separate users.
Additionally, if you get a lot of traffic for your WordPress blog, then I suggest that you use a caching plugin, such as WP-Cache. WP-Cache will make a file copy of a page and serve that up instead of the original page (refreshing it every so often). This not only speeds up your website a lot, but hits to the cached pages make no SQL queries or database hits whatsoever.
We have launched new premium hosting product ‘WP Essential’ that is designed specifically for WordPress users and built for speed on a WordPress platform. Which has many more features and benefits such as website speeds up to 60% faster, Automatic updates through WordPress built-in functionality, Integrated, Handpicked Themes & Plugins, Dedicated WordPress experts team available 24/7, Automatic malware detection & removal, and many more features. You can know more about its features at http://www.ipage.com/advanced-hosting/wp-essential/upgrade.bml. I would suggest you to upgrade your hosting plan to ‘WP Essential’ to make use of additional features and benefits. ”
Hi folks
as you may or may not recall I had mentioned something about getting an http/https warning in the theme panel while playing with WooCommerce install.
I have traced this down to an http:// call for fonts in the theme. Since the store I’m setting up for our main business site is “https everywhere” … even with a local 301 redirect for any errant http elements, it turns out it’s a call to Google fonts for Roboto:
Mixed Content: The page at 'https://www.MYSITE.com/store/wp-admin/post.php?post=4&action=edit&message=1' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700&subset=latin'. This request has been blocked; the content must be served over HTTPS.
In td_wp_booster_functions.php
I have this:
/*
* on demo and dev we load only the latin fonts
*
* modify this collection if you want to optimize the fonts loaded when you have the speed booster enabled
*
* collection url -> : http://www.google.com/fonts#ReviewPlace:refine/Collection:PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700
*/
wp_enqueue_style('google-font-rest', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Roboto+Condensed:400italic,700italic,700,400|Open+Sans:400italic,600italic,700italic,400,700,600'); //used on menus/small text
and
// enqueue the fonts
if(!in_array('g_438', $td_user_fonts_list)) {//'g_438', //Open Sans
wp_enqueue_style('google-font-opensans', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on menus/small text
}
if(!in_array('g_522', $td_user_fonts_list)) {//'g_522', //Roboto condensed
wp_enqueue_style('google-roboto-cond', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on content
}
}
So, apparently from the theme panel, it doesn’t pick up the https dynamically.
I’ve changed to:
wp_enqueue_style('google-font-rest', td_global::$http_or_https . 'https://fonts.googleapis.com/css?family=Roboto+Condensed:400italic,700italic,700,400|Open+Sans:400italic,600italic,700italic,400,700,600'); //used on menus/small text
} else {
$td_user_fonts_list = array();
$td_user_fonts_db = td_util::get_option('td_fonts');
if(!empty($td_user_fonts_db)) {
foreach($td_user_fonts_db as $td_font_setting_key => $td_font_setting_val) {
if(!empty($td_font_setting_val) and !empty($td_font_setting_val['font_family'])) {
$td_user_fonts_list[] = $td_font_setting_val['font_family'];
}
}
}
// enqueue the fonts
if(!in_array('g_438', $td_user_fonts_list)) {//'g_438', //Open Sans
wp_enqueue_style('google-font-opensans', td_global::$http_or_https . 'https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on menus/small text
}
if(!in_array('g_522', $td_user_fonts_list)) {//'g_522', //Roboto condensed
wp_enqueue_style('google-roboto-cond', td_global::$http_or_https . 'https://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on content
}
}
***
but, that did not fix it.
***
Hi,
for those who keep getting the resize thumbs “error” when running a pagespeed test, here again is the fix from v1.4 which didn’t end up in v1.5
this edits the thumbnail section in /includes/td_config.php
around about line 560 or so; you will need to add this new size
array(
'name' => 'td_200x150',
'width' => 200,
'height' => 150,
'crop' => array('center', 'top'),
'post_format_icon_size' => 'normal',
'used_on' => array(
'Related articles'
)
),
This should allow the related items at bottom posts to use a 200×150 thumb, vs resizing the 'name' => 'td_238x178', thumbnail, also used for ‘Module 11’, ‘Block 12’, ‘Big grid – small image’
You may not need this; but those who know what I’m talking about, this is the fix from 1.4, which I’m now applying to my 1.5 install as well.
Likely doesn’t improve score; and adds yet another thumb; but this is for those who hate seeing the “image was resized” errors in running speed testing. 🙂
I’m using Block 13 in a single column in a 3-column layout. But if I change the font settings for it in the theme panel->Theme Fonts->Modules & Block Articles Titles, the font does not get changed in the front-end and shows the default theme font.
NVM – Not related, was from the pulgin. BUT, still can’t see header ad.
I don’t know if this is related, but with 1.4 I was able to get all *.js errors cleared on my homepage. Now, with 1.5, I get two recurring *.js errors.
Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "http://riverscenemagazine.com" from accessing a frame with origin "https://platform.twitter.com". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "https". Protocols must match.
Not sure why twitter http vs https is an issue, nothing is using it on the homepage.
Again, this is new after update. Thank you!
-
This reply was modified 11 years by
Breakwater.
Correct. The update log for 1.5 stated some block identifiers were changed and advised you to record your blocks before updating so you could make the updates.

Good luck.
i did thatnow and that is fine but i have to redo all blocks.. all i get is alot of texts on the pages….
I’ve followed the documentation and not used the widgets that do not work in the smart sidebar, and yet it doesn’t work with visual composer.
I have the default sidebar working fine as a smart sidebar on all posts and pages that don’t use VC. On my home page, I’m using the Widgetized Sidebar block to display the default sidebar, but it won’t stick.
Any ideas?
Hi,
In td_block_8 limit=”3″ custom_title=”HOLIDAY RECIPES
In your demo there is http://i.imgur.com/KvkiaxV.png?1?4301 two reviews are showing..
Can i change number of reviews to display in block 8? Let me know
Hi,
Why u do not post code here with changes? I will copy and paste like i did now
Check
[vc_row][vc_column width="1/1"][td_block_trending_now limit="5"][td_block_big_grid sort="featured"][/vc_column][/vc_row][vc_row][vc_column width="2/3"][td_block_1 limit="5" custom_title="FASHION WEEK" border_top="no_border_top" td_filter_default_txt="All" ajax_pagination="next_prev" header_color="#e29c04"][td_block_15 limit="8" custom_title="GADGET WORLD" header_color="#0b8d5d" td_filter_default_txt="All" ajax_pagination="next_prev"][vc_row_inner][vc_column_inner width="1/2"][td_block_2 limit="1" custom_title="BEST Smartphones" header_color="#4db2ec" td_filter_default_txt="All" ajax_pagination="next_prev"][/vc_column_inner][vc_column_inner width="1/2"][td_block_10 custom_title="DON'T MISS" td_filter_default_txt="All" limit="3" sort="random_posts"][/vc_column_inner][/vc_row_inner][/vc_column][vc_column width="1/3"][vc_column_text][td_block_ad_box spot_id="sidebar"][td_block_6 limit="2" custom_title="POPULAR VIDEO" td_filter_default_txt="All" header_color="#ed581c"][td_block_8 limit="3" custom_title="HOLIDAY RECIPES" header_color="#0152a9" td_filter_default_txt="All"][/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width="1/1"][td_block_14 limit="3" custom_title="EVEN MORE NEWS" td_filter_default_txt="All" ajax_pagination="next_prev" header_color="#288abf"][/vc_column][/vc_row]
The following code is written for sidebar
[td_block_ad_box spot_id="sidebar"][td_block_6 limit="2" custom_title="POPULAR VIDEO" td_filter_default_txt="All" header_color="#ed581c"][td_block_8 limit="3" custom_title="HOLIDAY RECIPES" header_color="#0152a9" td_filter_default_txt="All"]
Let me know what is wrong in this code? I already run SQL successfully
Hi,
The api is still under development, we want to make it work by just adding new files (new block and module). We’ll make some documentation after it’s ready, we still have to make some changes and it’s pointless to provide a guide for something that’s going to change in the next version.
Thank you, Emil G.
Hi,
Visual Composer is updated in this theme version. Please make sure that you remove the VC plugin then use this guide: https://forum.tagdiv.com/how-to-update-visual-composer-plugin-wpbakery/ and install the plugin from the /plugins folder that was provided within your theme files.
If you updated the plugin you should have version 4.4.2 and also VC is tested with the theme.
The problem with Ad box is not related to Visual Composer. We have renamed some shortcodes to improve the performance. So just edit your page and change to the Classic View and find td_ad_box and replace td_block_ad_box: http://screencast.com/t/Da8k0HHtSD
Or add a new “Ad box” block instead of the block that doesn’t work anymore.
Hope this helps and sorry for inconvenience!
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi.
If you want this to appear on blocks and on category’s page, you can add to it a category. I don’t think that is necessarily, anyway the post is visible on the main menu.
Thanks!
Hi,
In this theme update we have renamed some shortcodes:
– td_ad_box -> td_block_ad_box
– td_authors -> td_block_authors
– td_homepage_full_1 -> td_block_homepage_full_1
– td_popular_categories -> td_block_popular_categories
– td_video_vimeo -> td_block_video_vimeo
– td_video_youtube -> td_block_video_youtube
– td_text_with_title -> td_block_text_with_title
– td_slide -> td_block_slide
– td_social_counter -> td_block_social_counter
So the renamed widgets have to be re added to each sidebar after this update. Make sure that you backup your database and if possible get the widget list from your sidebars.
Rename the short codes via SQL: https://forum.tagdiv.com/update-newsmag-to-1-5/
An alternate solution is to rename the shortcodes manually in your pages: http://screencast.com/t/Da8k0HHtSD
Thanks!
When I open visual Composer this is showing for sidebar
[td_ad_box spot_id=”sidebar”][td_block_6 limit="2" custom_title="POPULAR VIDEO" td_filter_default_txt="All" header_color="#ed581c"][td_block_8 limit="3" custom_title="HOLIDAY RECIPES" header_color="#0152a9" td_filter_default_txt="All"]
So i guess VC has some issue with sidebar
Hello
Some issues noticed with 1.5 version updates
1) We noticed one second delay in whole site installation, WP-Admin – site front page as well.
2) In the error log file we also found some PHP errors. Please get this errors fixed as soon as possible.
`2015/01/30 07:02:57 [error] 19389#0: *2940 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined method td_block::inner() in /var/www/example.com/htdocs/wp-content/themes/Newsmag/includes/wp_booster/td_ajax.php on line 154
PHP message: PHP Stack trace:
PHP message: PHP 1. {main}() /var/www/example.com/htdocs/wp-admin/admin-ajax.php:0
PHP message: PHP 2. do_action() /var/www/example.com/htdocs/wp-admin/admin-ajax.php:95
PHP message: PHP 3. call_user_func_array:{/var/www/example.com/htdocs/wp-includes/plugin.php:496}() /var/www/example.com/htdocs/wp-includes/plugin.php:496
PHP message: PHP 4. td_ajax_block() /var/www/example.com/htdocs/wp-includes/plugin.php:496" while reading response header from upstream, client: 92.90.16.190, server: example.com, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.example.com", referrer: "http://www.example.com/2015/01/25/melchior-productiond-ltd-meditations-1-3-ep-flac/"
2015/01/30 07:38:55 [error] 19384#0: *8832 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function get_header() in /var/www/example.com/htdocs/wp-content/themes/Newsmag/index.php on line 6
PHP message: PHP Stack trace:
PHP message: PHP 1. {main}() /var/www/example.com/htdocs/wp-content/themes/Newsmag/index.php:0" while reading response header from upstream, client: 54.194.125.10, server: example.com, request: "HEAD /wp-content/themes/Newsmag/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.example.com""`
3) It’s not possible to change the line height on module related articles. From theme panel is not change. All settings are to default. The navigation also moved from top to bottom of the panel. See also this image
Kindly review this and let me know.
Best Regards
Hi,
We have changed the shortcode for slider from td_slide -> td_block_slide. Sorry for inconvenience!
So after you update the theme you have to re add the slider using Visual Composer plugin or you can change to the Classic mode and replace the shortcode manually for the slide you already have: http://screencast.com/t/kHCvHz1nWTPl
Also to rename all the shortcodes from versions older than 1.5: https://forum.tagdiv.com/update-newsmag-to-1-5/
An alternate solution is to rename the shortcodes manually like shortcode for slider.
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
Just search and change in the code that Lucian provided to you td_ad_box with td_block_ad_box: http://screencast.com/t/emhXth36SM
We have changed some shortcodes on this update: http://screencast.com/t/moj0NT9CKvX
Sorry for inconvenience!
Thanks!