- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsDefault Block Settings Guide
- TutorialsHow to use custom fonts
Hi,
Try to use this ID’s, inpect your page source, like this: http://screencast.com/t/5cpXIhxoPDxN and also use the function to inspect scripts presented at the second point under the “Remove render blocking css/js – using the TagDiv Speed Booster plugin (Advanced Users)” in the guide: https://forum.tagdiv.com/how-to-make-the-site-faster/
Make sure you do this right.
Thanks
Hi,
Unfortunately the theme doesn’t have settings for responsive view/mobile view. The content from your homepage/post page is just styled for mobiles screens and it’s the same as on desktop screens.
We plan to improve this system in the future and add options for this but at the moment this can only be achieved via css and use the media queries to target the mobile view and hide content.
This is the media query which you need to used to target the mobile view screens:
/* responsive phone */
@media (max-width: 767px) {
add your css code here
}
Hope this helps! Sorry for the inconvenience!
Thanks
Lucian i am a little confused.
i have saved the font in a folder “Flaticon_Converted_Font” in root folder ;”public_html”
in theme panel there is an option to add custom font.
there we can give a link to Custom Font file. should i give link to this folder? or link of a specific file in that folder? also should “public_html folder name be included in the custom font link? like
http://akhbarworld.com/public_html/Flaticon_Converted_Font
also should the css of this font be added in my main style.css ?
is there a video tutorial to adding a font?
thank you for being so patient as this is the first time im adding a custom font to any site
Hi,
You can use this custom css:
.category .entry-content {
display: none;
}
You can also do it by editing the category and remove its description: http://screencast.com/t/ImAUWWYGsj
Thanks
Hi,
Please use this custom css in Theme Panel > Custom Css and change top an bottom values after you preferences: http://screencast.com/t/FupzTdgW9
.td-full-layout .td-footer-wrap .td-grid-wrap, .td-boxed-layout .td-footer-wrap .span12 .td-grid-wrap{
padding: 20px 13px 10px 13px;
}
Thanks!
Hi,
Please try this css in Theme Panel > Custom Css: http://screencast.com/t/5IMpUlnW
.td-full-layout .td-menu-background, .td-boxed-layout .td-menu-wrap{
border-bottom: 4px solid black !important;
}
We cannot put color settings for all elements on Theme Panel. Sorry for inconvenience!
Hope this helps!
i tried thi way but it is not resizing automatically. i think i need css codes
Hi,
I try to Remove render blocking css/js According to the guide. https://forum.tagdiv.com/pagespeed-guide/
But that did not change anything for me. Errors still appear for Google.
Moreover, it made me a little trouble.
http://www.hayom.org.il/wp-content/uploads/2015/02/booster.php_.jpg
It works great 🙂
thanks!!!!
why you don’t make all this small css changes on the theme? you write in your offer that the theme have
RTL support, i’m not pro in css, and for me it a big problem to fix all the RTL css problems by myself.
Hi,
Please add css code that Lucian provided to you in Theme Panel > Custom Css: http://screencast.com/t/M0BFxXyd
Thanks!
Hi,
Please use this custom css in Theme Panel > Custom css: http://screencast.com/t/pxrZiGw0e
.sf-menu li:hover ul, .sf-menu li.sfHover ul {
right: 0;
left:auto!important;
}
Result: http://screencast.com/t/nby9qykVX2I
Hope this helps!
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,
You can use this custom css in Theme Panel > Custom css: http://screencast.com/t/jvJ1Mbu8c3zM
.blog-stack .span4.header-logo-wrap{
float:right !important;
}
Thanks!
Hi,
You can use css to hide them only on that post:
Take the post ID: http://screencast.com/t/Wb7Vnhe1BufG
Use class .postid-xxx to hide: http://screencast.com/t/ZsS1RInIcBn
.postid-xx .td-a-rec.td-a-rec-id-content_bottom{
display: none;
}
Thanks!
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!
Hi everyone
I have already answered the same questions 50 times the past year and they are all covered in this thread.
I am no longer providing any help with PageSpeed issues, as this is all covered in this 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 this 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.
Advanced users:
a) local caching/loading of gravatars
b) mod_pagspeeed and mod_spdy if site loading via https
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.
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
f) add expiration type/ttl for custom icon font loaded by theme
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.
Hi,
I have noticed the default theme has a correct font stack
font-family: 'Roboto Condensed', sans-serif;
or
font-family: Ubuntu, sans-serif;
If I change the fonts via Custom Typography under Theme Panel to Open Sans the property become
font-family: 'Open Sans';
There is a way to retain the fallback on sans-serif or I need to modify the font-family property via css?
Thanks
hi, i have a trouble with widget of “tagDiv Social Counter”
the social counter looks bad, see this screenshot (use child theme) I have nothing personalized, but prefieron use “child theme” to avoid problems if customize something with css or functions
screenshot:
https://my.pcloud.com/publink/show?code=XZgoBkZKNheuHAzSQVQ70bLblXi3QO947J7
regards
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
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.
***
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.
For minification I only recommend the following, and DONE MANUALLY:
I use http://cssminifier.com/
1) remove all the comments in wp-config.php manually
2) minify the style.css file
3) minify the functions.php file
4) if not running mod_pagespeed which does it for you, then you might also consider, manually opening your main post template and remove all double spaces and comments.
these are probably the 3 most loaded files on a WordPress site, and minifying them can really help.
Also putting in your direct URLs for base URL and home URL in the wp-config.php file really helps by saving queries. Similarly direct link to your theme folder also saves queries. But that is a bit advanced. See the WordPress Codex for more info on this topic of optimizing the wp-config.php file for hard-coded PATHS on your domain.
You can *try* minification of the main java file (.js), but this doesn’t always work very well.
Try:
http://javascript-minifier.com/
http://refresh-sf.com/
Or, open the two “main” .js files and just remove all the commenting, if you want a quick and dirty optimization.
-
This reply was modified 11 years by
simchris.
Hello team,
How to minify javascript files and css files. i see you demo and you guys are using minify js and css. how you do that in my website http://www.movzio.com google pagespeed suggest minify HTML,CSS and JS. and the second issue is admin-ajax.php load to slowly can you please suggest the solution 🙂
Thank you
-Mosam
Hi,
What code will I put in custom css, to hide category description from showing up if I’m in http://www.url.com/category
Thanks.