- NewspaperCreate Custom Code with the browser’s Inspector or the Live CSS Box
- NewspaperScroll Animation
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- NewspaperHow to setup Twitch for Social Counter
- NewspaperModal Popup
- NewspaperFlex Block Settings Guide
- NewspaperAutoptimize Plugin – install and configuration
- NewspaperAdding Multiple Authors to Your Articles
- NewspaperDesign your Post Pages using the Cloud Library Templates
- NewspaperBig Grid Flex Settings
- NewsmagtagDiv Composer Tutorial
- TutorialsFrom WPBakery to tagDiv Composer
- NewspapertagDiv Composer Tutorial
- NewspaperTheme modules and blocks
- TutorialsDefault Block Settings Guide
- NewspaperThe Mobile Theme
- NewspaperCompare theme files – Winmerge tutorial
- NewsmagBlock settings tutorial
- NewsmagLogo & Favicon
- NewsmagFooter templates
Just to share some experiences improving site speed for the many who post here to discuss…
What I’ve also done (My site is an independent ‘hyperlocal’ news site – slightly bigger than hyperlocal really) which I think is good practice given FB Instant Articles and AMP (Already on Apple News for almost a year now) is almost ‘forget the desktop’ exists.
Due to 75%+ mobile visitors it seems good practice (if a ‘live’ news site with say 100+ articles per week) to get the site as fast and safe as possible – this may help others
– I’ve removed all home page blocks except ‘ticker’ – a lightweight grid with no slider- and a sidebar
– Removed all plugins or deactivated ones no required all the time
– Implemented Chris S .htaccess and functions.php tips exactly as described – inc image resizing
– Paid Cloudflare with page rules to remove wp-admin etc- following TagDiv recommendation settings except RocketLoader ON – Mirage in ON
– Removed my subscriber pop-up and won’t use one – promote subscriptions via another route – FB ads – Twitter ads perhaps
– Removed SumoMe and anything that fetches CSS externally
– I do run UberMenu on main site and ShiftNav on mobile (for a better user experience) – But run NO mega menu or dropdowns
– Currently RocketLoader (Cloudflare) runs and doesn’t break anything
– Only added Google Analytics via YoastSEO not on Theme Panel box – it’s there and working
– ADDED a user text box to point people to how to navigate the site – believe it or not saying ‘Press load more or click coloured category labels or main menu’ actually gets visitors to do that!
Results –
Before – GTMetrix – PageSpeed B YSlow C Page size (Homepage) 3.2MB Requests – 187 – Load time – about 7-10 secs
Pingdom 5-7 seconds
After – Page Speed A (96%) YSlow B (82%) Page size (Homepage) 1.2MB Requests 96 – Load time – 2 secs
Pingdom 700ms-1.3 secs
The theme still looks great on desktop but it’s not worth getting caught up in the aesthetics if the visitors aren’t looking at the pretty views – it looks brilliant on mobile and that’s what matters.
Hello,
1) You can use this css to change the color, background-color and hover color of the category tags:
.td-animation-stack:hover .td-post-category{
background-color:red!important;
}
.td-post-category{
color:white!important;
background-color:grey!important
}
2) You can use this css to hide the container that is creating the space on mobile:
@media(max-width:767px){
.td-banner-wrap-full{
display:none!important;
}
}
Hope this helps.
Thanks.
Hi
The Facebook button can’t be targeted with css from “outside” as it’s generated within an iframe and its style is set by facebuk plugin: http://screencast.com/t/A8fsMQIo7kZH unfortunatel I can’t provide a solution now as the theme can’t control this button’s layout, sorry.
Thanks!
Hello TheRiz,
Please try the code below and place it in Theme panel->Custom CSS area.
The code is ->
@media (max-width: 767px){
.td-header-sp-top-menu {
text-align: center!important;
}
}
The result you should see here -> http://screencast.com/t/7rn1TdhUBvwF
Thank you for the message!
Hi,
you can use css to do it but I will need to inspect your cpt if i’m to provide the code. I need the specific class of your post type so please provide a link to a post of this type so I can provide the code.
Thank you!
I finally found another post similar to what I wanted to do. You can use custom CSS to do this as follows:
Go to Newspaper -> Custom Code -> Custom CSS and insert something similar to this:
.td-header-style-9 .td-logo-wrap-full
{
background: url(“<your full path>/header-image.jpg”) no-repeat center;
background-size: 1075px 150px;
}
It scales well on all devices too. Hopefully this will help someone else.
Hm. Prefer to do this as a function, by de-enqueuing the hook, and I think I “might” have that sorted. And of course we don’t want anything minified by a plugin as we do that properly for static files for both js and css ahead of time …
Good thought, though, THANKS — appreciate the feedback! 🙂
We will be using WP Super Cache for this particular in house project.
I think I might have it sorted by doing a de-enqueue function, de-register, in functions.php — so just need to test that.
Have 99% on GTMetrix and down to 1.1 sec with photo and https but no caching plugin! — but only 92 desktop and 78 mobile on Google’s PageSpeed Insights test directly, due to the pesky render blocking crap. If I can get that damn last css file to footer, I’ll be in the home stretch.
Trying really hard to get WordPress to be as fast as our static main part of site where we have 100/100 out of all 3 tests with Google PSI. I’ll get there!! 🙂
If you are using “W3 total cache” or whiling to start you can do it with it.
Go to Performane – Minify (don’t worry no need to minify them), insert the url of the css and choose embed to footer from the dropdown.
That’s it.
You can do it for any css or js in the page.

Well it works for me too. Just go to Theme Panel > Custom Code > Custom CSS, and the code mentioned above.
Hi,
I want to place an custom ad on posts between social sharing and related post on my site (http://soutaoboa.com/as-vezes-um-carinho-cai-tao-bem/). But this one ad should only be visible to mobile visitors.
So:
I have a custom ad 1 and the code is in place (not adsense);
Did a call for the shortcode:
<?php echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_1"]‘)?> on loop-single file;
On the style.css I have:
@media only screen and (max-width: 767px) {
.td-a-rec-id-custom_ad_1{
position:center!important;
};
The problem is that the ad is there but visible to everyone.
What I’m doing wrong?
Thanks
P.S. I have a child theme.
HI,
1.
I forgot to mention – that im – NOT – using the VC Plugin!!!
2. Firebug says, there is a error:
ReferenceError: jQuery is not defined
var html_jquery_obj = jQuery('html');
3. Part of my sourcecode where you can see the scripts in the footer area just above the script with the error:
<script type='text/javascript' defer="defer" src='http://justatestsiteforyouname.com/wp-includes/js/admin-bar.min.js'></script>
<script type='text/javascript' defer="defer" src='https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js'></script>
<script type='text/javascript' defer="defer" src='https://cdn.jsdelivr.net/jquery.migrate/1.2.1/jquery-migrate.min.js'></script>
<script type='text/javascript' defer="defer" src='http:/justatestsiteforyouname.com/wp-content/themes/justatest/js/tagdiv_theme.js'></script>
<!-- JS generated by theme -->
<script>
(function(){
var html_jquery_obj = jQuery('html');
if (html_jquery_obj.length && (html_jquery_obj.is('.ie8') || html_jquery_obj.is('.ie9'))) {
var path = 'http://justatestsiteforyouname.com/wp-content/themes/justatest-child/style.css';
jQuery.get(path, function(data) {
var str_split_separator = '#td_css_split_separator';
var arr_splits = data.split(str_split_separator);
var arr_length = arr_splits.length;
if (arr_length > 1) {
var dir_path = 'http://justatestsiteforyouname.com/wp-content/themes/justatest';
var splited_css = '';
for (var i = 0; i < arr_length; i++) {
if (i > 0) {
arr_splits[i] = str_split_separator + ' ' + arr_splits[i];
}
//jQuery('head').append('<style>' + arr_splits[i] + '</style>');
var formated_str = arr_splits[i].replace(/\surl\(\'(?!data\:)/gi, function regex_function(str) {
return ' url(\'' + dir_path + '/' + str.replace(/url\(\'/gi, '').replace(/^\s+|\s+$/gm,'');
});
splited_css += "<style>" + formated_str + "</style>";
}
var td_theme_css = jQuery('link#td-theme-css');
if (td_theme_css.length) {
td_theme_css.after(splited_css);
}
}
});
}
})();
</script>
4. When i exclude the defer loading of the jquery.min.js file – the error gone!
5. I think this can help http://stackoverflow.com/a/33205519 – please also look at the other answers.
But i dont know how to fix it.
6. If you can help me out, it would be awesome!
Thank you so much
Hey party people …!
Does anybody ’round these parts know a theme agnostic way to move the main WP style.css from the head to the foot, which WP doesn’t seem to want to do ?
Trying to figure out way to re-enqueue that to footer and having trouble finding a way to do so without some bozo claiming “you don’t want to do that …” when, YES, I do need to do that.
Or, how to un-enqueue it from header completely, and then manually add to footer.
Seems I’m in the minority of folks doing critical CSS front loading for speed.
Thanks in advance folks!
I’m not quite sure you are understanding my comment.
I have a site. I’m using the newspaper theme. I use custom fonts as explained in your tutorials. For the user it works fine, but source code is a mess. You can look at the sourcecode of http://sozialmarketing.de/ lines 215 to 806 are filled with CSS @font-face instructions.
Since in the Theme setting there are only three custom font files it is not neccessary to include nearly one hundred of them.
So my question is either if I have done something wrong and there is a way that all this can be merged in a css file? Or if it’s a bug or a problem with other plugins? Or if it’s bad coding?
Hello,
This is the closest you can get to it with your layout
.vc_icon_element{
display:inline!important;
margin-right: 10px;
}
result: http://screencast.com/t/TYHIftZGZ
If you want to have them align properly it will need further customization and coding. I’m not sure how you implemented them but you need to add a few html div tags and set classes to them so they can be targeted with css.
Thanks.
Hello,
You will have to edit a few more containers for it including the logo container and ad container.
Try this css instead:
.td-header-style-1 .td-header-sp-logo img{
max-height: 45px!important;
}
.td-header-style-1 .td-header-sp-logo{
height:45px!important;
margin: 0px 28px 0px 28px!important;
}
.td-header-style-1 .td-header-sp-recs{
margin:0!important;
}
.td-header-rec-wrap{
min-height: 45px!important;
}
Thanks.
Hello newt-on,
This is the method of implementation of the fonts which theme uses. All the fonts which are loaded you can see inline on this line in your page source, like this -> http://screencast.com/t/SrDsAd0Z and then is created an HTML file and you can find the CSS code for each font.
Thank you for your understanding!
Hello,
Css only knows the post id or the category id, it’s not dynamic so it will not detect which category a post belongs to. In order to have a sidebar only on a category page but not the posts themselves you need to alter the theme files and the post templates where the sidebar gets created. This will require a bit of customization and coding knowledge. We suggest you hire some help on this one from a freelancer or a friend who know s a bit of coding knowledge. You will have to add conditions to the code by using the wp function in_category: https://developer.wordpress.org/reference/functions/in_category/
Thank you!
Hello,
You can get rid of the grey box for preformated text by editing the editor-style.css file http://screencast.com/t/6FUkbtbn6K
I’m not sure about what font you are referring to though. The post content fonts can be changed from here: http://screencast.com/t/QM7fLSvHh5
Thank you!
Hello,
Sorry but our theme has no such setting. If you want to change the background color of a row in visual composer, this can be done from the row settings: http://screencast.com/t/yGItmgIkG and then use this css:
.td_block_12 .td_module_wrap{
background-color: white;
border-radius: 10px;
margin-bottom: 10px!important;
margin-top:10px;
}
.td_block_12 .td_module_11{
padding-bottom:20px!important;
}
.td_block_12 .td-module-thumb, .item-details{
padding-top:10px!important
}
result: http://screencast.com/t/twJzIfr7Wi
Thank you!
Hello,
1) You can change the font for the big grid from here: http://screencast.com/t/zWYT0maBayM
2) The blue background of the big grid is affected by the theme accent color: http://screencast.com/t/Iyx7Uf0YP
This color will also affect other parts of the website so if you only need to change the big grid background then you can use this css:
.td-grid-style-4 .entry-title{
background-color: rgba(204, 40, 40, 0.7);
}
Thanks.
Hi,
I want to display a Sidebar only for the Archive page of the Category but NOT for the Single post.
I tried to hide the sidebar via CSS from the single post, but I couldnt find a category-class for the post.
Is there any other way to achieve that?
Thanks!
Hello,
You might be having a plugin conflict that interferes with the css for these pages. Please try to disable all plugins except visual composer and WC, clear cache and reset cdn files. If this does not resolve the problem, please provide an example and a link to these pages so we can inspect them.
Thanks.
Hello sapito,
The code have to be added in Theme panel->Custom CSS area, like this -> http://screencast.com/t/b0EUiin3u3
Thanks.
Hello DagensVerklighet,
We know about this mini BUG, I have added to our list of improvements and we will resolve in next update. Until we will solve this, you have to try a bit of CSS code in order to achieve the logo in your sticky menu bar. Please try the code below and place it in Theme panel->Custom CSS area.
The code is ->
.td-main-menu-logo {
display: block;
}
The result you should see here -> http://screencast.com/t/cG6BQtDgi1j -> http://screencast.com/t/N1ubIqtHS7
Thank you for your understanding!
Sorry for the inconvenience!
Hello Andrei,
Thanks for the above.
Yes, the email that was last sent was the one I am referring to. Please let me know if there has been a reply as there is usually a lag with my emails.
Looking forward to the next update.
In the meantime, could you point me to where I can find the CSS for the Mobile Menu? I would like to make changes to the style.
Thanks.