- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsOffset Feature
- TutorialsWhat is Ajax preloading?
Hello,
For custom post type you have to create a template, you can use structure present in the post template 3. You have to check how the single and loop-single templates are built and start from there. For example single_template_3.php and loop-single-3.php and check the official documentation – https://codex.wordpress.org/Post_Types#Custom_Post_Type_Templates
Unfortunately the theme still has limitations as far as custom post types are concerned.
Thanks!
Hello,
Please provide an example of this ad that is not displaying and how you are implementing it. Basically if it’s adsense you can simply place the ad in the field. If it’s not then you need to use this method: https://forum.tagdiv.com/using-other-ads/
The ads should have nothing to do with your previous theme.
You can also try to disable all plugins except visual composer and clear cache.
Let us know how it goes.
Thank you!
Hello,
You will have to provide more details as to how it’s ‘contradicting’ as we cannot tell from your screenshot. Please provide more examples and a link to the problem so we can inspect it.
Thank you!
Hi
To add a new custom ad you have to edit the following files like here:
– td_panel_ads.php – http://screencast.com/t/csyUpkoa – http://pastebin.com/v9xwLdQz
– td_block_ad_box.php – http://screencast.com/t/mRzwOa0Q5
– td_config.php – http://screencast.com/t/m3REo5pm
Result should be like here: http://screencast.com/t/FxYioNcpNS
This was just an example for custom ad 6. To add more custom ads follow the same steps but make sure you update properly the ad-spot ids.
Thanks!
I want to add author avatar to the post title on the single post template. Could someone help me do it?
Here is an example:

However,I would like the avatar to be circular.
Hello mabrell,
For achieving that, you have to use a bit of CSS. Please try the code below and add it in Theme panel->Custom CSS area. Below I gave you an example for module MX5. You have to implement this code for your modules that you are using in the theme and see how it works on your side. Here you can see the list to the modules used in blocks -> http://screencast.com/t/hd1pe4Mi
The code is ->
.td_module_mx5 .entry-title {
background-color: rgba(77,178,236,.7);
}
Hope this helps!
Thank your for the message!
Hello doshi751,
Our theme uses a lot of predefined thumbnails in blocks and modules. If you check the Theme panel->Block settings area you can see the list with all dimensions of the thumbs wich is used in the theme and which elements -> blocks/modules uses -> http://screencast.com/t/tQuimSer9 If you want to exclude the cropping system wich you have to use the right dimension for your images.
Our theme uses the system of cropping from center to top. The theme uses thumbs to reduce the page size and speed up page loading time. From each image uploaded are generated thumbs for each thumb size used by the theme. Basically, when a post it’s displayed on the page in a block, the featured image displayed is not the one which you uploaded in the media file, it’s a thumb cropped from the original image at the precise dimension. To change the picture orientation most likely you will need a different cropping system. We use a WordPress function – add_image_size() – you can read about it here – https://codex.wordpress.org/Function_Reference/add_image_size – and here – http://www.davidtan.org/wordpress-hard-crop-vs-soft-crop-difference-comparison-example/
Our theme crop (cut) thumbnails in some cases to avoid creating a lot of thumbnails in order to reduce to load more spaces on the server.
If you don’t have the possibility to upload large images you could use a combination of plugins to upscale the thumbs – Thumbnail Upscale and Force Regenerate.
Hope this helps!
Thank you for the message!
Hello,
Unfortunately there is no different version of the website for mobile phoines. It is the same version of the theme/page. You can however use a css trick to hide the particular block on all other devices except mobile.
For example you can add a block and add an extra class on the row in visual composer: http://screencast.com/t/arlc4Qu1Dt and then use thios custom css in the theme panel->custom css box:
@media (min-width:767px){
.customclass{
display:none!important
}
}
I hope this helps.
Thanks.
Hello InstallationComplete,
If you want to hide the breadcrumbs feature for a specific pages and posts, you have to use PAGE ID and POST ID. To get the post ID, please consult this link -> http://screencast.com/t/0DVC9a1rj and to get the page ID, please consult this link -> http://screencast.com/t/Lkh3XODB9Am
Example for posts ->
.postid-143 .entry-crumbs {
display:none;
}
Example for page ->
.page-id-382 .entry-crumbs {
display:none;
}
Hope this helps!
Thank you for the message!
Hi
You don’t have to edit the menu-mobile.php. The point if to register a new menu in td-menu.php then load this menu only when a mobile devices is detected. For this you will need a custom javascript which detect the screen width and loads the menu conditional. You can take a look at the examples from this topic, it may help you to develop the required code:http://stackoverflow.com/questions/1504459/getting-the-screen-resolution-using-php
Also follow the exact instructions from the above topic to register the new menu but you have to adapt it in order to be loaded only for mobile devices.
Thanks!
Hello,
The search icon does not work anymore (as well as your mobile menu) due to a js error. This is most of the time a plugin conflict. Please disable all your plugins except visual composer and clear cache and it should work fine again. Then you need to identify the plugin that causes the issue.
As for the menu item, you can create a custom link: http://screencast.com/t/GNxckduyl
It depends on the header style you use for the modification as the search icon is not positioned in the same way.
For example I used this code on my end:
.menu-item-57{
position: absolute!important;
right: 30px!important;
top: 50%!important;
margin-top: -24px!important;
}
for this result: http://screencast.com/t/PiL7y2m4d
This is on the default header style. Every menu item has a unique class. Mine was 57. Youcan use your browser inspector to get your menu item number and replace it in the code.
Thank you!
Please help me
Newspaper theme I bought you. and I have problems installing it. Malware error it, so I hope that you will help my fault.
thank you

Licensor’s Author Username: tagDiv
Licensee: UZAKA
The site ahead contains malware
Attackers currently on uzaka.com might attempt to install dangerous programs on your computer that steal or delete your information (for example, photos, passwords, messages, and credit cards).
Automatically report details of possible security incidents to Google. Privacy policy
Back to safetyHide details
Google Safe Browsing recently detected malware on uzaka.com. Websites that are normally safe are sometimes infected with malware.
If you understand the risks to your security, you may visit this unsafe site before the dangerous programs have been removed.
Hello!
I just bought this a few days ago.. and while trying to work around it.. im having a few issues. The questions i have are:
1) How can remove the dates on all the posts?
2) How can i make the website look just like this: http://demo.tagdiv.com/newsmag/
2a) and then replace it with my own images and articles?
3) I cant seem to remove the this box on the homepage that says:
“Home > homepage
homepage”
Thanks!
Hello,
Using the page builder with the big grid and the blocks, bring my homepage (for example) to have 180 internal links. I want to reduce this number by removing the links from the thumbnail images. How can I leave only the titles linked (without the duplication of the same link over the image).
thank you,
–Uri–
Hi, After updating from v4 to v6 i noticed that the images in the posts with a hyperlink doesn’t open the link anymore. Instead of that there is a popup with the message ‘cant open image2’
When i edit the code and remove the following class
wp-image-51602
from the source / html code, the hyperlink works correct.
You can see an example over here.
Just click on this image to see the result:
![]()
How to solve this?
Thanks in advance!
JB
How can I set the menu to be transparent over the first row (picture), like you see on most websites these days (example: https://realtyinorlando.com)?Menu
hi,
i use human time diff and my post’s publish time is true on post page. for example 4 hours ago. but when i change homepage’s publish time, all posts shows same publish time. for example:
see? all posts show same publish time. but they havent same publish time. how can i solve this problem?
The tag page doesn’t work on Newspaper. Pl help
Example: http://www.pravsworld.com/tag/life/ (The page is not loading the theme). Just renders homepage template.
Help!
I realized that something I assumed would be happening with the tweaks mentioned above is actually not occurring. Off the top of my head, this might be more complicated than simply putting code into “Custom CSS”, but hopefully this can be done.
So right now, as the mouse hovers over each of the tabs in my navbar, a colored bar appears, running at the bottom. However, I’d hope that the colored bar would remain on the tab of the category that’s currently active. For example, let’s say that my navbar consists of categories A, B, C, and D. In each category, there are three posts numbered 1, 2, and 3. I’ll identify the categories of posts like this: B2 is the second post in category B, D3 is the third post in category D.
Hopefully you’re with me so far.
What I want to happen is when a person was browsing a category (A-D) or viewing a post, the “active” category’s tab would have the little colored bar fixed, running along the bottom of that tab. It would stay there for as long as the viewer remained on that page or in the category to which that page belonged. When he or she hovered the mouse over the navbar, the little colored bar would appear at the bottom of whichever tab the mouse was hovering over as the code provided above had intended for it to do, but there would also be the fixed colored bar along the bottom of the active tab that would remain no matter where the mouse was hovering because the person is currently on a page that belongs to that category. In other words, that category is still “active”. Then, if the viewer went into another category, the new category would have the colored bad fixed along its bottom because it would now be the “active” category.
Viewing post A2 would mean that category A would have the fixed, colored bar.
Viewing post C1 would mean that category C would have the fixed, colored bar.
Viewing post B3 would mean that category B would have the fixed, colored bar.
I hope this makes sense, I don’t know if I’m explaining it right. The purpose for me wanting this is so that a viewer could glance at the navbar and it would tell him or her which category he or she was currently browsing, or in which category the post he or she was reading belonged.
Again, hopefully I’m explaining this right and I really, really hope this is possible.
Hi Catalin,
Yes, this helps to understand where the sidebar is set for the category. But it still doesn’t address my problem, how to customize/edit the sidebar. For example, I have something called “Default sidebar” selected for my category. My question is, how can I add or remove widgets to this Default Sidebar.
hello,
i use newsmag theme on global.minutenews.fr and i want to change the order of the homepage loop with this custom filter. i use the template VC + last post + pagination but i tried with all template and it’s not working because it seems it’s not the main query .
here is my filter :
// Alter the homepage Query to order by sharecount and date
function hp_pre_get_posts( $query ) {
global $query_string;
// do not modify queries in the admin
if ( is_home() && $query->is_main_query() ) {
$query->set(‘orderby’, ‘date meta_value_num’);
$query->set(‘meta_key’, ‘socialcount_total’);
$query->set(‘order’, ‘DESC’);
}
if ( is_category() && $query->is_main_query() ) {
$query->set(‘orderby’, ‘date meta_value_num’);
$query->set(‘meta_key’, ‘socialcount_total’);
$query->set(‘order’, ‘DESC’);
}
// return
return $query;
}
add_action(‘pre_get_posts’, ‘hp_pre_get_posts’);
can you help me ?
Hello Edward
Put this code at the end of your functions.php theme file. Change the number you want and the taxonomy if you need. For example, I have changed post_tag and I have put ‘category’ to show category tags.
add_filter( 'widget_tag_cloud_args', 'tj_tag_cloud_limit' );
function tj_tag_cloud_limit($args){
// Check if taxonomy option of the widget is set to tags
if ( isset($args['taxonomy']) && $args['taxonomy'] == 'post_tag' ){
$args['number'] = 25; // Number of tags to show
}
return $args;
}
-
This reply was modified 10 years by
Albert.
We recently migrated our site, http://www.koimoi.com, to your Newsmag theme, and love the new layout.
We’re hosted on Pagely.
We’ve been noticing alot of server errors on Google Webmaster tools, where lots of URLs were throwing up 500 and 502 errors. On checking with Pagely, this is what they pointed out :-
1) All the 502s / 500s are of the format :
http://www.koimoi.com/?attachment_id=264104?aid=&iid=2
One problem is that the URL is invalid 264104? instead of 264104&.
2) If we switch the url to
http://www.koimoi.com/?attachment_id=264104, it very slowly redirects to http://www.koimoi.com/sunny-leone-sachiin-joshi-promote-jackpot-in-bangalore-4/, which fails with a 502 error.
Pagely believes the problem is to do with an infinite loop triggered at “wp-content/themes/Newsmag/attachment.php” line 47.
What is the purpose of attachment.php?
Reading other posts on your pages, attachment_id=XXXX is typically used to reference a image in the media gallery, and pull out its’ parent page. Is that correct ? How do we stop these URLs from being crawled ?
Would it be possible to share our copy of attachment.php for your review?
AMP is simple plugin, and was updated this week. Google will start supporting it on the 24th.
However, it only works with supported platforms … so, still best to optimize the theme’s mobile setup on your site, as you’re trying to do.
AMP is just another “option” to consider at some point as Google will start to “show” that version if enabled on compatible devices over the theme version, if AMP is setup.
-
This reply was modified 10 years by
simchris.
Hi
You can use the custom ad-spots to achieve that. The file that must be edited it’s the one which generate the header. That depends by the header style used: http://screencast.com/t/UGqIID8VFO
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]')?>
The result will be like here: http://screencast.com/t/ybG5tpCBjF7 I’ve used custom ad 1 for this example but you can use any custom spot ad, just update the number from shortcode.
Thanks!
-
This reply was modified 10 years by
Andrei L..