- NewspaperHeader ads
- NewspaperSidebar ads
- NewspaperArticle Ad
- NewspaperPost template ads
- NewspaperAbove footer ads
Hi,
First you have to ad the code in your custom ad from Theme Panel: http://screencast.com/t/7BKCFWGNKY2V
After that edit loop-single.php(default template) and add the shortcode echo do_shortcode('[td_ad_box spot_id="custom_ad_1"]'); above breacrumbs: http://screencast.com/t/l3pKgdEO
If you have to edit single-templates use php tags: http://screencast.com/t/EiwivDuTPHCT
Result: http://screencast.com/t/N8MKDkNK
Thanks!
Great! It’s Works!
Only had to remove 1 line:
comments_template('', true);
With this line was fatal error. I deleted this line.
Here we go:
<div class="td-container">
<div class="td-container-border">
<div class="td-pb-row">
<?php
echo do_shortcode('[td_block_big_grid]');
?>
</div>
</div>
</div>
By the way, you notice that the board moves down the left?
I also, like you have in the screenshot to the left leaves. How to align?
Hi,
You have to edit single.php(default template) to display Big Grid after sidebar and paste this shortcode like this: http://screencast.com/t/0G9dZSdugO
<div class="td-container">
<div class="td-container-border">
<div class="td-pb-row">
<?php
echo do_shortcode('[td_block_big_grid]');
comments_template('', true);
?>
</div>
</div>
</div>
Result: http://screencast.com/t/bBF74NyVZn
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
Please read plugin’s instructions for shortcodes: http://screencast.com/t/Yyvvlva3X1yg
Try this without url: http://screencast.com/t/xXpWkVnUZcJ
echo do_shortcode('[fbcomments]');
Result: http://screencast.com/t/PvCoQmpsO
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
Please add the code in Theme Panel > Ads > Custom Ad 1: http://screencast.com/t/OvmRFXlG
Edit single_template_2.php and add the shortcode like this: http://screencast.com/t/tGqgkSXqP88
<?php echo do_shortcode('[td_ad_box spot_id="custom_ad_1"]'); ?>
Result: http://screencast.com/t/tskShiHIv
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
Please try this like above, but use this shortcode:
echo do_shortcode('[fbcomments url="http://peadig.com/wordpress-plugins/facebook-comments/" width="600" count="off" num="3" countmsg="wonderful comments!"]');
I removed [fbcomments] and now should work: http://screencast.com/t/pKsAtjq6pCD
You can change width value like you wish.
You don’t have to disable comment to every post if this is set off: http://screencast.com/t/98Gkvu8knu
Thanks!
Hi,
If you want to use the code instead of post comments please edit single_template_7.php and replace comment with it like this: http://screencast.com/t/NZNypc4em3
You have to use the shortcode without php tags:
echo do_shortcode('[fbcomments][fbcomments url="http://peadig.com/wordpress-plugins/facebook-comments/" width="100%" count="off" num="3" countmsg="wonderful comments!"]');
Also to not display twice you have to disable plugin from post: http://screencast.com/t/EefFp69OwZ
Thanks!
Hello, i want to replace default wordpress comment system with facebook comments,
i have already research on this forum for facebook comment, i saw some people recommended this plugin:
https://wordpress.org/plugins/facebook-comments-plugin/
i have tried install it and i tried to use it via php tag in loop-single-7.php
<?php echo $td_mod_single->related_posts();?>
<?php echo do_shortcode('[fbcomments][fbcomments url="http://peadig.com/wordpress-plugins/facebook-comments/" width="100%" count="off" num="3" countmsg="wonderful comments!"]'); ?>
comment box was showing but it was showing twice itself!

Also how to disable original default comment box?
Hi,
You can edit td_module_blog.php and put your button like this: http://screencast.com/t/9ScSX51Gm
So you don’t need to edit post template to add your button, it will appear when you set “Article bottom ad” for all post template styles.
Result: http://screencast.com/t/9pORH1sE0
Or you can disable “Article bottom ad” and use the code in Custom Ad from Theme Panel: http://screencast.com/t/jEiryBuubIm and use this code <?php echo do_shortcode('[td_ad_box spot_id="custom_ad_1"]'); ?> in post template that you use bellow social sharing: http://screencast.com/t/BpyDhFWGVM http://screencast.com/t/X8MeA9kLP1C6
Result: http://screencast.com/t/X8MeA9kLP1C6
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
-
This reply was modified 11 years by
Alin [tagDiv].
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
Unfortunately is no option for this, the block has been designed to work on pages, so it can be added only on pages using Visual Composer plugin.
You can try this solution, but will appear to all of your posts that are using that post template:
Use pagebuilder to customize your block, then switch to classic mode and get the shortcode: http://screencast.com/t/YgZ9wlj4U3
Now use echo do_shortcode('your shortcode') and place it in you post template like this: http://screencast.com/t/7Rrq0TMI
Result: http://screencast.com/t/hODdwqN0wlc
Thanks!
Hi,
First you have to ad the code in your custom ad from Theme Panel: http://screencast.com/t/7BKCFWGNKY2V
After that edit loop-single.php(default template) and add the shortcode <?php echo do_shortcode('[td_ad_box spot_id="custom_ad_1"]'); ?> after breacrumbs: http://screencast.com/t/vqZWJmCSQVm6
Result: http://screencast.com/t/oXbhgMhLbGY
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Lucian,
Thanks for the response. I entered as you instructed and this was the output.
echo do_shortcode('');
So the AdRotate shortcode is being stripped out?
Edit: I simply just placed the AdRotate shortcode in and the ad worked.
-
This reply was modified 11 years by
k24.
Hi,
I believe this happens because you use the php tags while the php tags are open so you just need to add the echo do_shortcode('[adrotate group="1"]'); without the opening tag and ?> the closing one. Add it like this and be careful at the php tags: http://screencast.com/t/SRqJPSwY
Hope this helps!
Thanks
I’m trying to setup AdRotate and use the following code to place in the Header Ad location:
<?php echo do_shortcode('[adrotate group="1"]'); ?>
Is this the correct usage? When I use the code the following characters show instead of the ad: ‘); ?>
Hi,
Please add your code in Theme Panel > Ads > Custom ad like this: http://screencast.com/t/Qg2O2uBdtdu
After that you can use do_shortcode function to place it in template:
-in loop-single.php add <?php echo do_shortcode('[td_ad_box spot_id="custom_ad_2"]'); ?> before related posts like this: http://screencast.com/t/1IhB9MmYQlX
-in single.php add echo do_shortcode('[td_ad_box spot_id="custom_ad_1"]'); after comments like this: http://screencast.com/t/nSsLlE92gYQ
Result: http://screencast.com/t/JqIpqZ5r
I don’t know why, but your code is loaded only once.
Hope this helps!
-
This reply was modified 11 years by
Alin [tagDiv].
-
This reply was modified 11 years by
Alin [tagDiv].
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
You can add condition for the ticker to be displayed only on the first page like this: http://screencast.com/t/c7rJEjRz
if($paged < 2) {
echo do_shortcode('[td_block_trending_now limit="5"]');
}
Thanks!
Hi,
You can use shortcodes and add the plugin shortcode directly into posts’s template using the do_shortcode function. You need to edit the loop-single.php file and add it above the title like this or replace our social sharing: http://screencast.com/t/JV4sz8Lzhn
You can disable the theme’s social sharing buttons from theme panel: http://screencast.com/t/42dPYTOMC1
Thanks
-
This reply was modified 11 years by
Lucian.
Hi,
You can add it directly on page template and use the do_shortcode() function to call the ad spot you want there.
To add and ad to the top of latest articles are you can also use the page builder and add it using the VC Ad box element to add it last on page so that it will appear right before the latest articles section.
To add it in the template you need to edit the page-pagebuilder-latest.php file and add it like this: http://screencast.com/t/DKTrJYAYLLWA
Use this line: <?php echo do_shortcode('[td_ad_box spot_id="custom_ad_1"]') ?>
Result: http://screencast.com/t/ww9XPrN3mr6d
Please also note that you need to do this for all cases or for the one you want to use, in my ex you can notice I have done it for the nosidebar case.
Thanks
-
This reply was modified 11 years by
Lucian.
Hi,
You can use the do_shortcode() function and add the shortcode for the news ticker directly to category like this: http://screencast.com/t/oTyYO9nikGNW
First go to VC page builder and customize the ticker then switch to classic mode and get the ticker shortcode: http://screencast.com/t/04wufgypnN1I
Use this code and add your shortcode to it: echo do_shortcode('add your shortcode here'); then edit the files and add it like shown above.
Result: http://screencast.com/t/r6U8ZQ6fMSQ7
You also need use the custom css I’ve pointed in the screenshot.
.td-subcategory-header .td-category-header, .td-subcategory-header .td-category-pulldown-filter {
display: none;
}
Thanks
Hi,
Make sure you use this method: https://forum.tagdiv.com/topic/where-to-put-this-code/#post-23969 and add it via shortcode and use echo before the the do_shortcode() function, like this: echo do_shortcode('[your shortcode here]')
Thanks
Hi, I tried following this previous thread: https://forum.tagdiv.com/topic/where-to-put-this-code/
But that was for Newspaper. I am trying to do the same thing with Newsmag using OneAll social login, but cannot figure it out. The do_shortcode doesn’t seem to be working. The do_action works, but displays in top menu and not within the modal box:
<div class=”td-login-info-text”>‘ . __td(“Forgot your password?”) . ‘</div>’ . do_action( ‘oa_social_login’ ) . ‘</div>
How can I please add this to Newsmag?
Thanks!
Hi,
I’m not sure I understand. Have you managed to get this done finally?
We haven’t made any tests with this plugins so I can’t let you know how you can achieve this.
Not sure if this is an possible solution in your case but if you want to use this shortcode [button color="" size="" type="outlined" target="" link=""][/button] instead of the default button and use the do_shortcode() function and add the button where you want it in the template, replacing the default button.
If this doesn’t work I suggest you also ask this question to plugin’s support page or get someone to help you with this as you need custom for this.
Hope this helps!
Sorry for the inconvenience and thanks for the message!
Hi,
You can edit the post template you use and add your image using the do_shortcode function() or via html.
You can use the shortcodes generated by the Visual Composer plugin to customize the image you want to add into the template before the comments template like this: http://screencast.com/t/l18UhAgW
Use this line: echo do_shortcode('add your shortcode here');
Hope this helps!
Thanks
Hi,
You can use shortcodes and add the items directly into posts’s template using the do_shortcode function. You need to edit the loop-single.php file and add the items you want above the title like this: http://screencast.com/t/G89bn6ykN
You can do use the do_shortcode function like this: https://forum.tagdiv.com/topic/how-to-create-attachment-page-like-this-in-newsmag/#post-31168
Thanks
Hi,
You can try the following solution:
Please paste your code in Custom Ad1 (in Theme Panel -> Ads) and edit single.php like this: http://screencast.com/t/qA6162bsn
<div class="td-container">
<div class="td-container-border">
<div class="td-pb-row">
<?php echo do_shortcode('[vc_row][vc_column width="1/1"][td_ad_box spot_id="custom_ad_1"][/vc_column][/vc_row]');?>
</div>
</div>
</div>
Result: http://screencast.com/t/Hj0Uf6rr
Thanks!
-
This reply was modified 11 years by
Emil G.