No search results were found in Documentation!
Hello creativepile,
If you want to customize your Blog page, please notice that you will have to check your Theme panel->Templates settings, like this -> http://screencast.com/t/QDGDAXR0Mw and if you want to add a grid to the top of your Blog page you will have to use the do_shortcode method and add it to the index.php core file like this -> http://screencast.com/t/gfVgHeg43A3 and the result you should see here -> http://screencast.com/t/9pOKFBkt
Hope this helps!
Thanks for your understanding!
Hello gsmadvert,
Actually, if you want to use the ‘Homepage post’ element from Visual Composer to your category page, please notice that you will have to use the do_shortcode method in order to achieve as you wish. First of all, you will have to create the shortcode using the Visual Composer editor, like this -> http://screencast.com/t/7lbVJ3Fm2Sz -> http://screencast.com/t/VM5LKmMUv0i -> http://screencast.com/t/LO6nrg2cHM1o and the snippet of the code which has to be added in the corresponding category post style used by you are the following code ->
<?php echo do_shortcode('[td_block_homepage_full_1]'); ?>
For example, if you are using the category top posts style 1, you will have to add this code in td_category_top_style_1.PHP, like this -> http://screencast.com/t/txOSy4wD and the result you should see here -> http://screencast.com/t/ewi0BhnetwL
Hope this helps!
Thanks for your understanding!
Hi Stanley,
Unfortunately we have not tested any RSS plugins so we cannot say for sure what they can or cannot do. What I can say is what the theme can do. Our theme was built with creating content in mind. Not pulling from external sources. So there is no theme option that can do this. For the post template, we do not have that sort of layout to provide. You can try to use visual composer on posts by activating it from post settings but this is not tested so it could provide mixed results. Try using blocks on posts or adding the layout directly in the post files by using the do_shortcode funtion: https://developer.wordpress.org/reference/functions/do_shortcode/
You can search through this forum for do_shortcode if you do not know how to use it as we provided solutions with it quite a few times. You use visual composer shortcodes inside the function and then add it in the post template files.
I hope this helps.
Thanks.
Hello avicabessa,
I suppose that you want to add your ads after every post when you are using the Blog mode (front page displays your latest posts), right? So, if you want to do that, you will have to use the do_shortcode method, create the shortcode using the Visual Composer and then add it in the loop.php file. First of all, you will have to add your custom ad code in your Custom Ad 1 area from Theme panel, like this -> http://screencast.com/t/8960iRYbP and then, using this snippet of the code > echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');
This will have to be added like this -> http://screencast.com/t/b43jvDsyt and the result you should see here -> http://screencast.com/t/nZHwT04z3
Hope this helps!
Thanks for your understanding!
Hi,
I’m not quite sure how you want it exactly. As I understand it you want to place 3 block 7 elements inline (on a 3 column layout I assume) on all posts. For this you have to use a do_shortcode function and place the visual composer shortcodes in side it. The place the code in each post template you want to use the blocks on. If this is what you are looking for: http://screencast.com/t/EYW900UWqW then you can create the layout you want inside a page and then access classic mode and text mode and copy the shortcodes. Thne use them inside the do_shoprtcode function like so:
do_shortcode('[vc_row][vc_column width="1/3"][td_block_7][/vc_column][vc_column width="1/3"][td_block_7][/vc_column][vc_column width="1/3"][td_block_7][/vc_column][/vc_row]');?>
and place the code above the breadcrumb on each single-template.php file: http://screencast.com/t/zi1HZRMS
I hope this helps.
Hello ahmedyakub,
Unfortunately, our theme has not been designed to use the Visual Composer to edit the category pages, sorry! Please notice that is not a simple task and require to make some adjustments through code in order to achieve as you wish and all of these processes requires custom work. So, if you are not aware of the steps which are needed to take in this regard, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!
As a hint, you can use the Visual Composer shortcodes to edit your category only if you are using the do_shortcode method in the category templates from the theme code, according to what type of category is used for your category page -> category template 1, 2,3,..etc -> http://screencast.com/t/mUE3Ch1p The shortcode you can prepare with the Visual Composer, using the classic mode, like this -> http://screencast.com/t/GEm1IJXHzN5 For more information about this method, please refer to this documentation here -> https://developer.wordpress.org/reference/functions/do_shortcode/
Please notice that all of these are addressed only for ADVANCED USERS Please notice that all of these are addressed only for ADVANCED USERS which have a solid knowledge in this regard.
Thanks for your understanding!
Hi,
We have not tested the news ticker in the top bar so I’m not sure if this will work . If you want to add visual composer shortcodes in specific places, you have to do it with this function: https://developer.wordpress.org/reference/functions/do_shortcode/
Add a do_shortcode function in the top bar file here: http://screencast.com/t/nD65Ltx1Vzix
It will probably need further adaptation as the trneding now element was not designed to work from the top bar.
Thank you!
Hello thehouse,
If you want to add your desired ad in the bottom of the post page, you will have to use the do_shortcode method and place this code where you want in order to achieve as you wish. For example, if you are using the Post template 1, you will have to alter the code from the loop-single-1.php and add the following code, like this -> http://screencast.com/t/k1iCWvBv and the result -> http://screencast.com/t/H0SLqUcQfzvY
The code is -> do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
Also, in order to achieve best results, please ensure that you have added your ad code in the Custom Ad 1 from theme panel, like this -> http://screencast.com/t/JkgfPR2YxP
Thanks for your understanding!
Hello FarrahGillani,
I have checked your website and I saw that you are using the category template style 2 for your category pages, right? So, if you want to add your logo under the category title, you will have to add this in td_category_template_2.php. You can add your logo image using the do_shortcode method. First of all, you will have to create your shortcode for your logo, using the Text Block element from Visual Composer and then you will have to add this under the title in the core file.
1) Create your shortcode, like this -> http://screencast.com/t/7wrTbk1sO -> http://screencast.com/t/aLBXrotZzYr
2) Place the code in the corresponding category template file, like this -> http://screencast.com/t/FZcfgYnMie
The code for this example is ->
<?php echo do_shortcode('[vc_row][vc_column][vc_column_text]<a href="http://192.168.0.214/site2/logo-header/"><img class="alignnone size-full wp-image-3166" src="http://192.168.0.214/site2/wp-content/uploads/2016/07/logo-header.png" alt="logo-header" width="272" height="90" /></a>[/vc_column_text][/vc_column][/vc_row]');?>
The result you should see here -> http://screencast.com/t/Hasz018hCGfd
Hope this helps!
Thanks for your understanding!
Hello MoschatoTavros.gr,
1)However, I suppose that this type of problem is cache or CDN related. Please try to clear all of them, purge CDN files if you are using the CDN system and also, please try to clear the server cache. If you do not have any access to do it, please request this thing to do from your hosting provider. Also, if your problem will still there, please send us an email at contact@tagdiv.com with your log-in information (wp-admin) so we can further inspect the issue. Also, please provide the link of this topic so we can easily identify you.
2)I suppose that you want to display the ads after the main menu bar, for every post,page and category page, right? Please notice that our theme does not have such an option to add this but only with a bit of coding. The only way to add a banner ad above the menu is using the do_shortcode method which you will have to add in the corresponding file for page/post/category template. For example, to display the add to the category pages, can simply use a do_shortcode function in the category template like so: http://screencast.com/t/3AhOEXNl9lPl
<div class="mycustomclass">
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
</div>
It will need a few css adjustments to remove the bottom margin and add a top margin for it to position properly so you can use the custom class assigned to the div element.
To affect the posts pages you will have to add the core file corresponding to post template used by you and then add the do_shortcode there, like this -> http://screencast.com/t/nbArnFDgR9yc
In order to achieve best results, please check your custom Ad 1 to have added a valid ad code in it, like this -> http://screencast.com/t/ZwBAoy3zAKo
If you are not aware of the steps in this regard, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!
Hope this helps!
Thanks for your understanding!
Hello,
Unfortunately if you want to place a widget on the homepage you will have to edit the theme files as there is no setting for it in the theme. You can edit the page template itself or even create a custom page template you can add code to. https://forum.tagdiv.com/topic/overriding-page-pagebuilder-latest-php-in-child-theme
Then after you create your new page template (a copy of one of the existing template), you can use a do_shortcode function in the file to add content to it: https://developer.wordpress.org/reference/functions/do_shortcode/
You can also use standard html and php if you have the proper coding knowledge. If you need help with the code needed, you will have to get some hired help as we cannot offer any custom work at the moment.
Thank you!
HI
The login wedged is generated in td-login-modal.php file: http://screencast.com/t/f0CEKZaQ0e96 If the plugin used generate shortcodes you can use do_shortcode function to insert it: http://screencast.com/t/hbpKfAbk
Note that we didn’t tested any social logins plugin with our theme and we can’t guarantee that they will work sine with our theme.
Thanks!
Hi,
If you want to add a shortcode in the theme files you need to use the do_shotcode function: https://developer.wordpress.org/reference/functions/do_shortcode/
Unfortunately since the plugin is not tested, I can;t say for sure how it should or would display. Plugin implementation falls beyond what support can offer you so we suggest hiring a freelancer to help out in this matter if you still need help.
Thank you!
Hello,
This will not be so easy to do. You first need to create the block on a dummy page and filter it to show 3 posts and the category you want to show or specific posts by using block settings: https://forum.tagdiv.com/block-settings-tutorial/
If you want to have the black background you will also need a bit of css to adjust it as that element is custom made.
You can assign a custom css class to your element like so: http://screencast.com/t/nUwW45WrzGl, then set your background for the row to the color you want and use this css:
.mycustomclass{
margin-bottom: 48px;
padding-top: 48px;
background-color: #222;
}
After you set it up properly and you are happy with the results, it;s time to move it on posts.
You can use a do_shortcode function: https://developer.wordpress.org/reference/functions/do_shortcode/ and place the shortcode for your block inside it. Then add the function to the theme files here: http://screencast.com/t/6zk43xa1t2hL
I hope this helps.
Thank you!
Hi,
You will have to edit the theme files if you want to place the ad in the spot you mentioned. Every post style has it;s own file so you will have to make this modification for every post template that you use: http://screencast.com/t/sX3Wky0osNa
You can use this function to render shortcodes: https://developer.wordpress.org/reference/functions/do_shortcode/
Thank you!
Hello,
The theme ad spots do not offer a category ad unfortunately. It can be done by altering the theme files though. You can place an ad the the bottom of categories by adding this code:
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
in this file like so: http://screencast.com/t/abKwebu1Rn3q
Make sure you have an ad in custom ad 1 or change the ad spot to another custom ad in the code
Thank you!
Hi,
If you only need to insert one ad, not repeated after a number of posts, then you do not need to use the adcounter. You can simply use a do_shortcode function in the category template like so:
http://screencast.com/t/3AhOEXNl9lPl
<div class="mycustomclass">
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
</div>
It will need a few css adjustments to remove the bottom margin and add a top margin for it to position properly so you can use the custom class assigned to the div element.
As for the bottom ad you need to use the same procedure but this time place the code at the bottom of loop.php from the root directory.
I hope this helps.
Thank you!
Hi
I assume that you want to exclude posts from some specific categories from being displayed in that block. If this is the case you just have to pass the ids in block’s shortcode, here is an example:
echo do_shortcode('[vc_row][vc_column width="2/3"][td_block_13 post_ids="'. -$exclude_current_post .'" category_id="' . $cat_name . ', -1, -2, -3" limit=""][/vc_column][/vc_row]');
Hope this helps.
Thanks!
Hi I was able to add the shortcode to the module 17 and the ad show up, unfortunately it show right after every post. see screeshot http://prntscr.com/bkpwpi
This is how my code look in module17
function render() {
ob_start();
?>
<div class="<?php echo $this->get_module_classes();?>">
<div class="meta-info-container">
<?php echo $this->get_title();?>
<div class="td-module-image">
<?php echo $this->get_image('td_696x385');?>
<div class="td-module-meta-holder">
<div class="td-left-meta">
<?php echo $this->get_author();?>
<?php echo $this->get_date();?>
</div>
<?php echo $this->get_comments();?>
</div>
<div class="td-category-corner">
<?php if (td_util::get_option('tds_category_module_17') == 'yes') { echo $this->get_category(); }?>
</div>
</div>
<div class="td-excerpt">
<?php echo $this->get_excerpt();?>
</div>
<div style="padding-top:30px; margin-bottom: -30px; ">
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]')?>
</div>
<div class="td-read-more">
href;?>"><?php echo __td('Read more', TD_THEME_NAME);?><i class="td-icon-menu-right"></i>
</div>
</div>
</div>
<?php return ob_get_clean();
}
}
, is there anything else I need to add so the ad can be display on every 5 posts?
This is the last step before I can launch the site.
Please guide me to the right direction?
Thank you for your support.
Hello posonty,
If you want to add an ad after each posts using the Block 13, you will have to edit the td_block_13.php and use the do_shortcode method, using the Custom Ad 1 field. So, if you want to do this, please follow the next steps -> http://screencast.com/t/kIsAX0zAxk8E and the result you should see here -> http://screencast.com/t/qltnTvUbN
If you refer to something else, please provide more details.
Thanks for the message!
Hi,
If you want the same slider to appear across the whole site you can add it in the header files. Depending on the header style that you use: http://screencast.com/t/6blkMnuZYl You can use a do_shortcode function: https://developer.wordpress.org/reference/functions/do_shortcode/
I hope this helps.
Thank you!
Hello tintin,
If you want to add an ad to the bottom of your smart list 5, you will have to use a bit of code and add this in td_smart_list_5.php in order to achieve as you wish. Please follow the steps, like this -> http://screencast.com/t/BcraJMrzP8QY The code which you will need is below ->
$buffy .= do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); Please ensure that you have added your desired ad code in Custom Ad 1 from your panel, like this -> http://screencast.com/t/Nb4tQKkFr8D and the result you should see here -> http://screencast.com/t/Zh2tB3lHL
Hope this helps!
If is not what you mean, please provide more details.
Thanks.
thank you for your reply i simple manage to choose post are displayed with this code:
<?php echo do_shortcode(‘[vc_row][vc_column][td_block_16 custom_title=”” post_ids=”4, 22, 13, 44, 47″ limit=”5″][/vc_column][/vc_row]‘); ?>
using post_ids=”” command
Hello rishab55555,
If you want to move your banned ad below the menu bar on mobile, you will have to change the header template which has to correspond with your header used. For example, if you are using the header style 1 you will have to add the do_shortcode method in header-style-1.php like this -> http://screencast.com/t/jJhNqOvZ Also, please ensure that you have added an ad code in your custom AD 1 from the Theme panel -> http://screencast.com/t/56LI9Ya6oh6d
Hope this helps!
Thanks.
Hi,
You will need to edit the post template that you use and using do_shortcode function you can place it above the share buttons – http://screencast.com/t/8zXispSPY Of course paste your code in the custom ad spot that you want to use from Theme Panel > ADS – http://screencast.com/t/7piXBet1
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
Thanks!
Alin V.
-
This reply was modified 10 years by
Alin [tagDiv].