- ApiPractical example – How to add a new Block and Module
- Apitd_api_block::delete
- Apitd_api_block::update_key
- Apitd_api_block::update
- Apitd_api_block::add
- ApiAPI – Blocks – Introduction
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
- Apitd_api_thumb::add
- ApiAPI – Thumbnail – Introduction
- Apitd_api_category_top_posts_style::update_key
- Apitd_api_category_top_posts_style::update
- Apitd_api_category_top_posts_style::add
- ApiAPI – Category top section style – Introduction
- Apitd_api_module::update_key
- Apitd_api_module::update
- Apitd_api_module::add
- ApiAPI – Modules – Introduction
- ApiUsing the Theme API in plugins
- ApiThe Theme API
Hello
I tried to add child theme for Newspaper but it doesn’t properly load the parents css and js
Even tried with this plugin Child Theme Wizard, but still the same
Instead of the side bar i get 2 blue headers with
Slider HTML
Jquery-Slider script
The example child theme does the same
functions.php
<?php /*
This file is part of a child theme called Newspapper Child.
Functions in this file will be loaded before the parent theme’s functions.
For more information, please read https://codex.wordpress.org/Child_Themes.*/
// this code loads the parent’s stylesheet (leave it in place unless you know what you’re doing)
function theme_enqueue_styles() {
wp_enqueue_style(‘parent-style’, get_template_directory_uri() . ‘/style.css’);
wp_enqueue_style(‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array($parent_style));
}
add_action(‘wp_enqueue_scripts’, ‘theme_enqueue_styles’);/* Add your own functions below this line.
======================================== */
and style.css
/*
Theme Name: Newspapper Child
Theme URI:
Description: A child theme of Newspapper 6
Author: admin
Author URI: http://vrn-dev.local
Template: Newspaper
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html/* == Add your own styles below this line ==
——————————————–*/
Hi,
I would liked to have long title in the main story from block 1. After I don’t know how many characters … is added automatically. Is it possible to not cut the title even if it is long or to manage the number of characters before the … ?
Another question : even if the article starts with bold words they are shown as roman in blocks, is it normal ?
Thanks
Hi
By default Newsmag theme does not have the border included in its style but you can use this css to achieve a similar rezult: http://screencast.com/t/rFdeQkYYgdCX
.td-pb-span8 .block-title{
border-bottom: 2px solid red;
width: 94%
}
.td-pb-span12 .block-title{
border-bottom: 2px solid red;
width: 96%
}
.td-pb-span4 .block-title{
border-bottom: 2px solid red;
width: 88%
}
.td-wrapper-pulldown-filter {
position: relative;
top: -48px;
}
.block-title > span{
top:0;
}
Thanks!
Hello,
is it possible to rename the ad container. It would be better when containers like “td-a-rec-id-custom_ad_2” have another name like “td-a-rec-id-custom_qwerty_2” so it will not be recognized by every adblocker…
Hi Catalin,
I made the changes in td_block_social_counter.php, its working fine with replaced text but unfortunately with social counter and if i override the code in Theme panel->Custom CSS area as you recommended in your first post both counter and text are vanishing.
.td_social_info {
display:none;
}
Could you please suggest me the solution to display replaced text without Social counter?
Best Regards and Thanks in advance
Adnan
Hi,
The excerpts can be controlled by words or by letters. First check that option here and make sure it;s the one you want: http://screencast.com/t/85S7f4ebSp
Then make sure you modify the correct module for the block you want.
Afterwards please clear your cache as all theme settings are affected by cache.
If it still does not work, you can check your memory allocation by following this guide: https://forum.tagdiv.com/system-status-parameters-guide/
If it still does not work you can try it without plugins to see if there is no conflicting plugin that interferes. Please disable all plugins except visual composer, clear cache and rest cdn files if you use it.
Thank you!
Hi
That happens because of search container display. You can correct that by replacing the previous css with this one:
@media(min-width: 768px){
#td-top-search {
margin-top: 0px!important;
position: initial;
display: inline-block}
}
Please note that this header style wan’t designed to have a full width background and by affecting it’s layout may appear some issues with menus functionality.
Thanks!
Hello, I updated the theme to latest version and I noticed that from the theme control panel Excerpts of the command on the title has no effect while the content. In default of 25 lines if I try to change this modifcation is not performed. I attach screenshots. And ‘possible to intervene direttamenre on the block? How. Thank you, good job

Hi,
Unfortunately there is no easy solution to this as it’s added with css, but you can inspect pull quote center paragraph for example and see how it was designed – http://screencast.com/t/pwnaeAeGi – http://screencast.com/t/UknMTzAHXGas and modify the default blockquote. You will have to add :before and :after to blockquote paragraph to add double qoutes and you can change the font from the theme panel: http://screencast.com/t/Vg3S0mefEt
Thanks!
Hello res,
As I can see in your image, that is the title of the block in Visual Composer. If you want to have on your homepage more than one, you have to add more block elements in the homepage or text with title element, like this -> http://screencast.com/t/rvVyTFHY -> http://screencast.com/t/22ZJprNBi2U For more information about how to use Visual Composer, please check this documentation here -> https://forum.tagdiv.com/how-to-use-visual-composer/
Hope this helps!
If is not what you mean, please provide more details about what you want to achieve so I will be able to provide a more accurate response in this regard.
Thank you for the message!
Hello,
how to reduce the size of slider which i am using on homepage. Is there anyway to do this without any disorder like padding/gap to block under it on desktop, tablet and mobile.
Thanks
Best Regards
Adnan
Hi,
Is it possible to display a query result in a standard Newspaper block template (e.g. Block 11) by calling a Newspaper function with a result object or array? I don’t really feel appropriate to recreate the Block 11 html structure by hand to display the faceted search results.
What is the proper way to display such query results?
Best regards,
Tibor
Hello,
how do I change the blockquote default style to one of the other styles?
They are all listed on this page: http://demo.tagdiv.com/newspaper/blockquotes-pullquotes/
I cannot find out where to change the default used and not sure if my client is going ot be happy to have to add the class manually to every single blockquote they insert.
how to adjust number of title text in VC Block?
I want use 10 number of title text in VC Block.
Hi,
@Breakwater
Unfortunately there are no settings for the attachment page other than the ones seen here: http://screencast.com/t/x4ieLRMn74s You cannot add visual composer elements to the attachment page from the theme panel. What you can do is use the do_shortcode function to add content through code. Every visual composer element has a shortcode that can be seen here: http://screencast.com/t/lEQjrxFAZo
Then you can use this code:
You can add the code in the attachment template file like so: http://screencast.com/t/yht7usHz
Now my block appeared on the attachment page: http://screencast.com/t/GQ0WNwFcjif
@dizajn
I’m not sure why you get the attachment page from linking to the media file. This should be the result in linking to the media file: http://screencast.com/t/1Kgp9otgj
If this is the case and your images realy link to the attachment page instead of the media file, please try to disable all plugins except visual composer, clear cache and reset vdn files. There could be a plugin conflict that does this.
Thank you!
Hi
To achieve the current layout on our demos we combined different blocks on the page and set a specific configuration for them.
Please check our documentation for more details about page setup, blocks settings and visual composer usage: https://forum.tagdiv.com/newsmag-how-to-use-visual-composer/ – https://forum.tagdiv.com/newsmag-block-settings-tutorial/ – https://forum.tagdiv.com/newsmag-homepage-how-to-build-and-set-it/ Also you can check our youtube videos here: https://www.youtube.com/watch?v=TUdVeZ1pbuc&list=PL6CsDkMaejhpWFcFNOIDfdp5nIT0NbUbj
1. On top of our travel demo we use a big grid 6 with grid style 7: http://screencast.com/t/kK4cxADm4M7
2. I assume that you’re referring at this part from our demo: http://screencast.com/t/1K76Jyg8bb6 There we use latest article part and module 14 for layout: http://screencast.com/t/bzWaMkx7qMpq You can also use a block 13 from Visual Composer to achieve the same layout: http://screencast.com/t/uvzjovotqyS
3. To move the title below the featured image on module 14 add this css in theme panel > custom code > custom css: http://screencast.com/t/1N8UqmYG0qw
.td_module_14 .meta-info {
position: initial;
}
Thanks!
Hi
Thanks for the quick reply. I tried your code but without any luck. I have two images to illustrate what I am trying to accomplisch.Perhaps showing it helps you better understand or give me a hint on what I am doing wrong with your code.
The site has several Categories with Subcategories. One of those Categories is ‘Nieuws’ (Dutch for News). The category id for this category is 23. Nieuws has several subcategories, such as ‘File’ (Dutch for traffic jam). The category id for this category is 87.
I tried accomplishing what I want with this code:
if (get_class($this) == 'td_block_mega_menu' && $this->atts['category_id'] == 23) {
$this->atts['category_ids'] = "23, -87";
}
However, the result is still the same. The articles from the category File keep popping up in the mega menu and on the category page in the big grid.


Hope you can assist me further.
Hi,
We have not tested adding 3 ads in a row, but you could try to add your code inside a text block in visual composer and insert the adsense code in text mode (not visual) and simply split the row in 3 sections like so:
http://screencast.com/t/JAsXojOJ
Thank you!
Hi,
You can add your adsense code in the custom ad 1 spot in the theme panel and then use this code:
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); ?>
and add it here: http://screencast.com/t/3Gu4HDHLw4D
Thanks.
Hello alaisne,
If you want to change the color for the block arrows pagination, you have to use a bit of CSS code to do that. Please try the code below and place it in Theme panel->Custom CSS area.
The code is ->
.td-next-prev-wrap a {
color: red;
}
The result you should see here -> http://screencast.com/t/CJ6KtYxW8jtu
Thanks.
Hi,
The icon was hidden with css for mobile, but you can activate it with this code:
@media (max-width: 767px){
.td-scroll-up-visible {
display: block!important;
}}
Simply add the code in the theme panel -> custom css box.
Thank you!
Hi
We don’t recommend to add custom values in design options sections. Adding different margins/paddings there could affect the page’s layout.
All theme’s blocks/grids have fixed layout and changing it involve many customizations and in most cases a new approach for the element.
Unfortunately we can’t offer speed customization at the moment so if you still need guidance on this or you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you.
Thanks!
Hello Albert,
Please try to set your blocks by the following example and check the results.
-block 18 ->> filtered by category X with offset 1
-block 2 ->> filtered by category X with offset 2
-block 2 ->> filtered by category X with no offset
-block 2 ->> filtered by category Y with offset 2
-block 1 ->> filtered by category Y with no offset
-> and then you have to set for each block how many posts you want to be displayed on the block.
Hope this helps!
If is not what you mean, please provide more details about your desired changes so I will be able to provide a more accurate response.
Thank you for the message!
Hi,
For posts you woudl have to modify the query and you can do it here: http://screencast.com/t/D6ynnxBEtmN and use a the below condition to detect the mega menu block class and the category to alter based on its id then set the “category_ids” attribute to filter posts based on your category id and exclude the subcategory based on its id also. Here is the code I’ve used:
if (get_class($this) == 'td_block_mega_menu' && $this->atts['category_id'] == 115) {
$this->atts['category_ids'] = "115, -144";
}
Hope this helps!
Thanks
Hi
You can set a background color for each bloc title from Visual Composer page-builder: http://screencast.com/t/iiTDFVA80 – http://screencast.com/t/nBOu6Ofz72Si
For more details regarding page setup and visual composer usage with our theme please refer to our documentation: https://forum.tagdiv.com/newsmag-how-to-use-visual-composer/ – https://forum.tagdiv.com/newsmag-homepage-how-to-build-and-set-it/ – https://forum.tagdiv.com/newsmag-block-settings-tutorial/ Also you can check our youtube videos: https://www.youtube.com/watch?v=TUdVeZ1pbuc&list=PL6CsDkMaejhpWFcFNOIDfdp5nIT0NbUbj
Thanks!