- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsDefault Block Settings Guide
- TutorialsHow to use custom fonts
Bogdan,
Thank you for bringing that up about Google crawlers on the css.
Thank you it worked out well!
Hi,
I recently launched a new version of my website using Newspaper 7.1.1. This is a clean install and not an upgrade of an older version of the theme. I immediately noticed that even a few (less than 10) visitors are able to rise my server’s processor usage to 100%. My Linux box shows PHP processes as the cause and not the MySQL server. Usage is constantly climbed to 100%. I tried disabling all installed plugins leaving enabled only Visual Composer and the theme. The problem is solved only by disabling the theme and enabling my old one (even with all plugins enabled). It seems like the theme’s code falls in some kind of infinite loop as soon as the first user hits the website.
I am running on a dedicated i7/32GB RAM/SSD server with no control panel, Apache 2.4.10, PHP 5.4.34. I am using the child theme for CSS customization purposes. There no overrides of core templates. In addition I have already installed Comet Cache in order to help my website stay online after the upgrade.
Looking forward to your help,
Thanks
Hi,
As I replied in the other topic, if the code is implemented properly it affects all of the site. How are you adding the css? Are you using the theme panel -0> custom css box? or are you adding it directly in the page settings?
Thank you!
Hi,
You can use this css to change the author name and post date color:
.td-big-grid-post .td-post-author-name a, .td-big-grid-post .td-post-date, .td-big-grid-post .td-post-author-name span{
color:Red!important
}
If you want to remove the overlay of the images you can use this css:
.td-module-thumb a:last-child:before{
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%)!important;
}
Thank you!
Hello,
The theme has no setting for this, but it can be done with a bit of custom cssw:
.td-category-header .td-pulldown-filter-list{
background-color: rgba(34, 34, 34, 0.7);
}
.td-category-header .td-pulldown-filter-display-option{
background-color: rgba(34, 34, 34, 0.7);
}
You can add the code in the theme panel custom css code
Thank you!
Hi
Try this css in theme panel > custom code> custom css: http://screencast.com/t/oLzknVon
.post_td_gallery{
background-color: white;
}
Thanks!
Hey,
I’ve added this above my Adsense code, but it won’t render.
“sponsored links<br>
my ad code is here”
I did this in the theme panel under ads, then in the place for in article ad and above article ad.
The ad shows up fine, but Google requested that I label the ads for compliance. Google wants our ads, if mixed in with articles, to be labeled appropriately so they’re not confused as content. May want to add that option for the in/above/below article ad spots, just as a means of safeguarding ourselves from running into Adsense issues.
Is there a custom code or CSS I can use to do this? If so, can someone share the exact code for me? I don’t really know CSS too well.
Thanks
Ups! My bad.
It seems it changes the newspaper font for the other icons as well. We need to be more specific with the css.
Try this one instead:
#td-top-mobile-toggle .td-icon-mobile:before{
content: ‘\f10c’;
}
#td-top-mobile-toggle [class^=”td-icon-“]:before, [class*=” td-icon-“]:before{
font-family: ‘fontawesome’;!important
}
You can add it in the theme panel. No need to alter style.css.
Thank you!
Hi,
When using adsense it’s not recommended to hide the ad with css as the google crawler will still be able to detect the ad. It;s best to remove the ad from the code.
You can add the condition in the file I pointed out above like so:
if(!is_404()){
echo td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'header'));
}
?>
http://screencast.com/t/Wj8mA0Yo
Thank you!
Hi
1. Please check this topic, here i’ve posted a solution for Newsmag theme but it work also for Newspaper: https://forum.tagdiv.com/topic/chinese-social-networks/
2. Use this css to increase the font size for social icons, you can modify the value as you want: http://screencast.com/t/FlaMRXFjGYy
.td-social-icon-wrap .td-icon-font{
font-size: 15px;
}
Let us know how it goes.
Thanks!
Hi,
The post views are affected by cache so if you use a caching plugin, you need to activate this option: https://forum.tagdiv.com/ajax-view-count/
As for speedbooster, please follow this topic to learn about speedbooster’s compatibility function:
https://forum.tagdiv.com/topic/tinymce-advanced-and-other-various-disabling-speed-boster/
For the ads, if you use adsense, you can select the ad dimensions from the theme panel here: http://screencast.com/t/JoMHKFv4
If you do not use adsense, you need to use this method of implementation: https://forum.tagdiv.com/using-other-ads-non-adsense-ads/
If you want to align the ad left. you can use this css:
.td-a-rec-id-content_bottom{
float:left!important;
}
I hope this helps.
Thanks.
I made this edit in style.css and works for menu button, but breake aother FA icons showing chinesse characters (for example: td-icon-font td-icon-facebook |and| td-icon-menu-down )

For background in custom CSS you can use
.author-box-wrap{
background-color:#fbf17f;
}
jejeje Thank you, i made this change vía custom CSS panel? Or i need to edit some specific php or css file?
Regards
Hello Bogdan,
Where do I add the condition? Can’t I just add a css like how I did for the post and pages?
It seems that having adsense in pages like the 404 is against adsense TOS so asking a fix for this.
Please advise. Thank you.
-
This reply was modified 10 years by
crazydiver. Reason: additional clarification
Thanks for your reply. In my case it only for a few fixed posts which will not be updated. Is it possible to circumvent to auto-regeneration of the theme itself? I know how to shut-down auto-regeneration of WordPress itself but not of the theme. I think that if it does not auto-regenerated a few specific uploads, i might do the trick without custom css.
Hi,
The correct css code would be this one:
.td_block_1 .block-title span{
font-family: "Open Sans";
font-size: 24px;
font-style: italic!important;
}
Thank you!
Hi Bogdan,
Thank you very much. I solved everything except 1 and 2 items. I changed the color but still does not work. I even tried deleting the style.css child theme. I still see the beige texts: http://www.harmonie.com.ar/blog-colors.jpg
I don’t know why it does not work. Perhaps using css. Could you please help me?
Thanks a lot!
P.s. by the way, excellent theme panel!!
Hi
The theme uses thumbs with a specific size on mega menu and after you regenerated the thumbs in your wp-install were created these images. To have a bigger thumb for one specific item you’ll need either a contrition in mega menu or a custom css which makes the image bigger. Also you’ll need some adjustments for all mega menu because if you change the style for one element it’s a chance to be affected and other elements.
Thanks!
i tried to use this custom css code to change the font of the title of block 1 but it didn’t work
can you please tell any modification in this code.
.td_block_1 .td_module_6 .td-block-title {
font-family: "Open Sans";
font-size: 24px;
font-style: italic!important;
}
Thank you
Hi,
How can i remove breadcrumbs in home page. I am not asking doing it via CSS visibility:hidden/display:none. I do not want home to display any breadcrumb data.
Hi,
i searched in many forum on how to reduce the gradient opacity of the grids but i just found a css modification that just correct the grids of one category
Hi,
You can change it with css and font-awesome as it;s a font icon. Here is an example:
.td-icon-mobile:before{
content: '\f10c';
}
[class^="td-icon-"]:before, [class*=" td-icon-"]:before{
font-family: 'fontawesome';!important
}
I set the circle icon to the menu.
You can find the list of icons and css content codes here: https://astronautweb.co/snippet/font-awesome/
(You need to have font awesome 4 menus installed)
http://screencast.com/t/3QeKZ3dcjh
Thank you!
Hi
Try this css in theme panel > custom code> custom css:
.td_block_big_grid_3 {
padding-bottom: 15px;
}
.td_block_1 {
padding-bottom: 10px!important;
}
If this is not what you mean or you’re using other blocks please provide a link where we can inspect this.
Thanks!
Hello,
You can only target specific module types in our theme, not just a particular block. You can change the font family or size from the fonts section for every module: http://screencast.com/t/qfqdn3zIKn
You can see a list here for what module is used in which block: http://screencast.com/t/eohjEChE3
If you want to target just a particular block, you will require a bit of css skills to add a custom css class to the row containing the block and targeting the block using that class to assign a font to the block title. You will have to load the font with css if you do not use the theme panel though. This is done using @font-face http://www.w3schools.com/cssref/css3_pr_font-face_rule.asp
Thank you!