- NewsmagUsing the theme translations together with WPML
- NewsmagHow to update a plugin
- NewsmagCustom Post Type Support
- NewsmagAbove footer ads
- NewsmagWeather Widget
- NewsmagHow to update the theme
- NewsmagIntroduction
- NewsmagLogo & Favicon
- NewsmagFooter templates
- NewsmagUsing other ads
- NewsmagCustom ad spots
- NewsmagArticle ads
- NewsmagSidebar ads
- NewsmagHeader ads
- NewsmagLoading image effects
- NewsmagCategory top post styles
- NewsmagSmart Lists
- NewsmagGeneral settings
- NewsmagTheme thumbs
- NewsmagtagDiv slider gallery
Hi,
I have problems in images optimizing & need your help to take a look.
Score = 82 (without cloudflare & W3)
Socre = 62 (with cloudflare-pro plan & w3)
Both sites using plugin EWWW Image Optimizer.
Thanks in advance!
I fixed this by removing word “Archives” Under “Titles & Metas” menu in SEO by Yoast Tab Taxonomies > field “Categories”
Thank you.
I have hundreds of posts which I’ve imported from another website and I’m having trouble getting these to display a sidebar. All of the individual posts have the side bar position set to “Default” and I’ve set the default in “Template Settings” to have a right sidebar. I’ve done this by Template Settings > Blogs & Posts Template > Custom Sidebar + position [Side Bar set to the right]..
This problem doesn’t occur with new posts (they inherit the default setting correctly), only the existing ones.
I’ve tried deactivating all plugins except Visual Composer and doing a fresh install of the theme. I’ve also tried flushing all the MySQL tables but still have the problem..
Please can you help?
Hi,
I understand that you use header style 3, but I don’t know what you want to not display on the other pages/posts.
For example if you want to use header style 3 on homepage and not display banner on the other pages and posts you have to edit header.php and use condition if (is_front_page()) like this: http://screencast.com/t/xUFzgXJyLS
Result:
-Homepage: http://screencast.com/t/wubvEaDuMg0
-Posts, Categories and other pages: http://screencast.com/t/zYIHwjskLck
Please provide more details, if this is not what you want to do.
Hope this helps!
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
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 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!
I get very bad grade, and my site loads very slowly.
43/100 for PC & 18/100 For Mobile.
I tried what is proposed here and still nothing.
What am I missing?
Thank you very much.
Hello,
When i embed instagram pictures either via code or the URL link it messes up my website.
Example i add the URL http://instagram.com/p/yiWvACydvT into my post (as i use Jetpack) and my background image on my website disappears.
Any help?
Thanks.
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. ”
I can not open the possibility to write comments on the page.
Although all settings are enabled.
Sample page: http://www.hayom.org.il/%D7%97%D7%95%D7%91%D7%A8%D7%95%D7%AA/
Thank you very much!
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.
***
SInce I upgraded the site to the latest version of Newspaper I have an issue with the search – when I place a single word in search it is OK but when two or more are placed, the search combines it into a single word and results nothing.
Example: http://www.defense-update.com/?s=F-35
http://www.defense-update.com/?s=F-35&wings results in: http://www.defense-update.com/?s=F-35wings
Hello, thanks, by following all above instruction i am being able to speed up a bit :
https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.unbelievable-facts.com%2F
from 70 to 76, i have few more question, should i consider “Minify CSS” & “Minify JavaScript”
which are not third party and hosted on my site?
Also you suggested me to update template,i did. I was using plugin to replace wp comment with fb comment:
https://wordpress.org/plugins/fatpanda-facebook-comments/, which is not working after template update.
Right now i have removed comment plugin, Now not even wordpress default comment system is working properly, check this : http://www.unbelievable-facts.com/2013/05/portrait-made-of-21-million-ink-dots.html
Comment box is not visible, it is visible to few posts!
Please help!
If you don’t know how to edit files manually for the theme you should not attempt any minification. There is no plugin to do it properly, aside from some things which mod_pagespeed running on your server might help with.
If you’re new to HTML and webdev.
The way you “minify” a file is removing extra spaces and line breaks.
For example, open the style.css file in text editor/programmer tool (I use TextPad on Windows, and BBedit on Mac), copy all the text, paste into the CSS minifier (link provided in my prior post); hit minify button, then paste back into the style.css file.
That is what minification is. Plenty of tutorials on the topic online.
In WP config, comments looks like
/** Sets up WordPress vars and included files. */
I cover most of this in the pagespeed sticky topic from the past year using the theme. Might be worthwhile to read through that; perhaps going back to front for my later posts.
But basically, you need to manually edit the files you want to minify, then use a tool to “minify” them; then replace the files on server in theme folder, etc., with the optimized versions.
Minifying the style.css file is the simplest thing to start with.
Hi folks
this is an advanced user question (me).
Seeking to streamline overhead a little for all the theme functions we don’t use, and will never use with the theme, which are now loaded via td_wp_booster_functions.php and not main functions.php file.
For example, can I safely remove some of the elements such as
require_once('td_ads.php'); //handles background click ad
require_once('td_demo_site.php'); // the demo site
require_once('td_video_playlist_support.php'); //video playlist support
require_once('td_first_install.php'); //the code that runs on the first install of the theme
require_once('td_smart_list.php'); //the smart lists
require_once('td_login.php'); // modal window for user login
In the above list, we don’t use background ads, demo site, video playlists, smart lists, or logins; and we don’t use theme panel to install plugins/check for plugin install.
Similarly is it practical to remove the entire bottom section, since we’re not using the theme admin to manage install or nag screen for *any* plugin install, and it’s a lot of “newbie bloat” for us.
e.g., section starting with:
/* -----------------------------------------------------------------------------
TGM_Plugin_Activation
*/
require_once 'external/class-tgm-plugin-activation.php';
(etc.)
Thanks folks 🙂
Trying to optimize a little as some stuff we don’t use and never will use and is redundant/irrelevant for our use.
This is an example
http://www.sarahma.net/page/1/
http://www.sarahma.net/page/2/
http://www.sarahma.net/page/3/
etc….
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.
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,
I upgraded to the new version of the plugin Speed Booster 3.2
but does not put in the footer the following files:
http://www.knews.it/wp-content/plugins/js_composer/assets/css/js_composer.css?ver=4.4.2
while in vesrione 3.1 worked great
Appearance for your feedback about
good job
Orlando
One more question…
I’m new to worpress and some simple issues are difficult to solve for me.
I have the menu linking to the page About my blog http://www.edurozrywka.pl/o-mnie-i-o-edurozrywce-slow-kilka/
It’s just signle page woth the content. It’s not menu to category.
How to show share buttons like on single posts (example here: http://www.edurozrywka.pl/zostan-kim-chcesz-dzieki-grze-cv/) on the page i mentioned above ?
Or maybe i should create a category About Blog with just one article and link it to menu, so then i will have share buttons by default ?
Any ideas ?
Hi,
I’m not sure I understand what you mean to offset one category in module 8. Modules are used to display articles for example like on category page: http://screencast.com/t/29tbDak2xnV You can set a module for different categories.
If you refer to the Latest Articles display only one category, you can set this from backend page > Homepage Loop Filter: http://screencast.com/t/83QN5jKvQwnz
See in screen options if this is selected: http://screencast.com/t/8bEMplqn7
Please provide more details if this is not what you mean.
Hope this helps!
If I enable minify from the CDN my sliders won’t work with this theme… Is it possible to get 2-3 seconds load time and Yslow of 90 for example. This is my google pagespeed test.
http://developers.google.com/speed/pagespeed/insights/?url=www.toppcnews.com&tab=desktop
What else can I improve I am really obsessed with this stuff.
Wordpress docs are a great place to learn how WordPress works. That setting is not related to the theme, specifically:
http://codex.wordpress.org/Settings_Reading_Screen
Front page – Select in the drop-down box the actual Page that you want displayed as your front page. If you do not select a choice here, then effectively your blog will show your posts on both the blog’s front page and on the Posts page you specify. If you would like to create a static home page template file, do not name it home.php, otherwise you will encounter problems when you try to view the “blog”/”posts” section of your site. To get around this, just name it anything but home.php, for example, myhome.php
Posts page – Select in the drop-down box the name of the Page that will now contain your Posts. If you do not select a Page here, your Posts will only be accessible via other navigation features such as category, calendar, or archive links. Even if the selected Page is Password protected, visitors will NOT be prompted for a password when viewing the Posts Page. Also, any Template assigned the Page will be ignored and the theme’s index.php (or home.php if it exists) will control the display of the posts.
Hi
Please edit td_module_single.php and replace pinterest button with linkedin: http://screencast.com/t/MJCAKIyyGGt
<a class="td-social-sharing-buttons td-social-linkedin" href="http://www.linkedin.com/shareArticle?mini=true&url=' . urlencode( esc_url( get_permalink() ) ) . '&title=' . $this->title . '&via=' . urlencode( get_bloginfo( 'name' ) ) . '" onclick="window.open(this.href, \'mywin\',\'left=50,top=50,width=600,height=350,toolbar=0\');return false;"><div class="td-sp td-sp-linkedin"></div></a>
Then use this custom css in Theme Panel > Custom Css:
.td-social-linkedin {
width: 32px;
height: 32px;
background-image: url('https://media.indiacurrents.com/resources/resources/social-media/linkedin.png') !important;
background-repeat: no-repeat;
}
.td-social-sharing-buttons {
margin-right: 10px !important;
}
.td-sp-linkedin{
width: 32px;
height: 32px;
}
I’ve used an icon found on internet, but you can change it.
Result: http://screencast.com/t/fLzO6DTR
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
-
This reply was modified 11 years by
Alin [tagDiv].
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
Footer is resizing automatically, but you can limit the posts number that are appearing on the block.
For example Popular Category from your footer widget: http://screencast.com/t/gqNrPRlW
My footer before: http://screencast.com/t/w8b3ymW2MGln
And after: http://screencast.com/t/9ExccDdFHwT
Thanks!