- NewsmagAbove footer ads
- NewsmagSmart list ads
- NewsmagArticle ads
- NewsmagSidebar ads
- NewsmagHeader ads
- NewspaperHeader ads
- NewspaperSidebar ads
- NewspaperArticle Ad
- NewspaperPost template ads
- NewspaperAbove footer ads
Hi,
You can disable the automatic positioning for the article bottom ad by removing this condition: http://screencast.com/t/PWgzx852 then place the ad after the pagination function in posts’s template file, like this: http://screencast.com/t/pgCbyqSPF
Use this line: <?php echo do_shortcode('[td_block_ad_box spot_id="content_bottom"]'); ?> and make sure you do the same for all post template files in which you need this.
Thanks
-
This reply was modified 11 years by
Lucian.
Hi,
You need to use the Homepage with article list. To add content after the pagination you need to add it manually in page template php using do_shortcode https://developer.wordpress.org/reference/functions/do_shortcode/ and add your content created from VC.
Thanks for the message!
Hi Marius,
Thank you very much for your reply. I was able to add the userpro login box into your topbar sign/in by adding the following code on line 77 of the top-menu.php
<div class=”td-login-info-text”>‘ . __td(‘Forgot your password?’) . ‘</div>’ . do_shortcode(‘[userpro template=login]’) . ‘</div>
This brings up my login box when i click login but the issue i have now is that the Newspaper default login box still shows as well, so i end up with two login boxes. I only really wanted to click on your signin botton on the topbar and for only my userpro login box to show up.
Hello there,
I was able to add my login box by adding the following code on line 77
<div class=”td-login-info-text”>‘ . __td(‘Forgot your password?’) . ‘</div>’ . do_shortcode(‘[userpro template=login]’) . ‘</div>
It sort of works but the old login widget still appears on top of mine, Can you please tell me how can I make it dissapear?
Thanks
Hi,
Yes, you can place it at the end of the functions.php file.
The shortcode is – http://screencast.com/t/ywl8VeRS
Make sure that the double quotes and the other signs are similar to the default ones, if possible use a code editor like Notepad++. If you decide for different position the do_shortcode() line should look like this:
<?php echo do_shortcode('[related_posts_by_tax posts_per_page="4"]'); ?>
Thank you!
-
This reply was modified 11 years by
Emil G.
Hi,
First you have to disable the Related Articles from Theme Panel – http://screencast.com/t/SxkPbkvIysgA
Then use the do_shortcode() function to call the plugin shortcode on the desired location inside the post template files – http://screencast.com/t/oOBXd4Rp31 – https://developer.wordpress.org/reference/functions/do_shortcode/
Check the plugin documentation to find it’s shortcode.
Thank you!
Hi,
I’m not sure what you mean so, if possible, please provide more details or if you need to have a featured posts slider instead of the default gird now present on category pages, you can comment the category grid from the category template then use the page builder to build a customized slider, configuring it as you need and place it in the category template using the wp do_shortcode function: http://www.wpbeginner.com/wp-themes/how-to-use-shortcodes-in-your-wordpress-themes/
Hope this helps!
Thanks
Hi
Sorry for the delay but we don’t work in week-end. To place an ad in the indicated area you can try to place it using the do_shortcode function and this implementation: https://forum.tagdiv.com/topic/ad-in-style-3/#post-59255 then add it in post’s template here: http://screencast.com/t/hTp60cuvTbq
If you can’t manage to do this on your own you can always get a freelancer from site’s like: http://studio.envato.com/ as unfortunately you need custom work for this which we cannot provide at the moment.
Thanks!
Hi
The top it’s incluted in the content and cant be moved easely, but you can use a custom ad in the post style 3.
You have to edit loop-single-3.php and use do_shortcode function like here: http://screencast.com/t/Ik2gNHZT2S8t To get the shortcode add an ad box in Visual composer, switch to backend editor, copy the shortcode- http://screencast.com/t/LvtB4Uhv and paste it inside the function:
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
Here is the result: http://screencast.com/t/whoitvII
Thanks!
-
This reply was modified 11 years by
Andrei L..
Hi,
Sorry for delay we don’t work for weekends!
You can edit each post template that you use and add a custom ad bellow the content using do_shortcode function – http://screencast.com/t/FTlt33eK and just paste your code in the custom ad from Theme Panel > Ads – http://screencast.com/t/ke3r0InZ2laO
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
Hope this helps!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
The bottom ad is apart of the content and you will need custom modifications to move it. The best solution is to paste your code in a custom ad instead of bottom ad and use do_shortcode function to place it bellow the content for each post template that you use – http://screencast.com/t/cKNtdoNLj – http://screencast.com/t/5Jzt5O1qTJj
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
-
This reply was modified 11 years by
Alin [tagDiv].
how can i change contents title color just in custom place ex:
i have created echo do_shortcode(‘[td_block_3 header_text_color="#ffffff" limit="6" ....blabla]‘)
it just make my block title color white but i like to make contents title white? it is possible can anyone help me?
Hi,
You can use do_shortcode function to place a custom ad in header.php file that it ca be overwritten by child theme – http://screencast.com/t/tfSHbmlm and paste your code in Theme Panel > Ads – Custom ad – http://screencast.com/t/Ai0jnyHcOkh
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
You customize it using custom css in Theme Panel > Custom Css – http://screencast.com/t/82VwxRmtg
Or if you want to register a new sidebar you can do this in functions.php from child theme – http://screencast.com/t/vrZ2ti3WJx – http://screencast.com/t/oVcC46g3DO
<?php dynamic_sidebar('extra'); ?>
register_sidebar(array(
'name'=> 'extra',
'id' => 'extra-widget', //the id is used by the importer
'before_widget' => '<aside class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<div class="block-title"><span>',
'after_title' => '</span></div>'
));
And place the sidebar in header.php like I suggested above with custom ad – http://screencast.com/t/E2EVTuZAHut it should work fine – http://screencast.com/t/Qg6RwbYoxA4r
<?php dynamic_sidebar('extra'); ?>
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].
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
The articles ads are a part of the content and it is not so easy to change the position. The best solution is to use a custom ad in post template where you want it to be displayed. You will have to edit post template that you use and place a custom ad above the featured video(or featured image if you edit also other templates) using do_shortcode function – http://screencast.com/t/2QpXfrwnarp and you may need additional css customizations – http://screencast.com/t/C83dfVmJW
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
.single .td-a-rec-id-custom_ad_1 {
margin-bottom: 0 !important;
margin-top: 40px;
}
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
Please check this topic as reference – https://forum.tagdiv.com/topic/ads-on-tag-and-category-page/ if you want to place the ads between your articles.
If you want to place your banner above the pagination you need to edit each template(category.php, tag.php ..) and use do_shortcode function like this – http://screencast.com/t/L55baskI – http://screencast.com/t/ps4fR9qLbUb
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
Unfortunately we cannot recommend one, sorry. You have to make some tests until you find one that works. To display it on pages the shortcode has to be added inside each module – http://screencast.com/t/W6jlYai0LeDL – , use the do_shortcode() function – https://codex.wordpress.org/Function_Reference/do_shortcode
Thank you!
Hi
Please remove previous changes in page-pagebuilder-latest.php and add this code:
if ($paged > 1) {
if (have_posts()) { ?>
do_shortcode('[vc_row][vc_column width="1/1"][td_block_big_grid][/vc_column][/vc_row][vc_row]');?> //this is for big grid
But for big grid you have to create a blank page, add the grid you want to appear from VC, switch to backend editor, copy the code and paste it inside the brackets.
http://screencast.com/t/LXszyfq5BVe
Thanks!
-
This reply was modified 11 years by
Andrei L..
Hi
Unfortunately the post width can be changed, because the width comes from theme’s grid and changing it would not be easy and for that you need custom work.
If you need a large banner to the top of your article you can use on of theme’s custom ad sports and place the add into post’s template file using do_shortcode fucntion.
Take the ad box shortcode using VC page builder, switch to Classic View and take the shortcode – http://screencast.com/t/eD0p5yEvvW – http://screencast.com/t/y2cn4qR527j
To place it in the code please use do_shortcode() function – https://codex.wordpress.org/Function_Reference/do_shortcode
ex:
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
Add it to posts’s template here: http://screencast.com/t/4kVuslKMdqt0 result: http://screencast.com/t/RmlxncHd9
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
You can use do_shortcode function and display it bellow the main menu in the code. Just set it in a page and take the shortcode – http://screencast.com/t/T92s4Uo8X1en – http://screencast.com/t/YxvbaQzfrX Then paste it like this in the header style that you use – http://screencast.com/t/AXRdDjrO
<div class="td-container ticker">
<?php echo do_shortcode('[td_block_trending_now navigation="" style="" header_text_color="" header_color="" category_id="" category_ids="" tag_slug="" autors_id="" installed_post_types="" sort="" limit="5" offset=""]');?>
</div>
You may need to add some margin top using custom css – http://screencast.com/t/RYECyNYB
.ticker {
margin-top: 20px;
}
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
Please remove that header for category page from Theme Panel > Categories – http://screencast.com/t/TiUVmJQHrtq and use do_shorcode function to place the news ticked above the big grid – http://screencast.com/t/iEJrDnBgSsjM
<?php echo do_shortcode('[td_block_trending_now limit="5"]');?>
Result: http://screencast.com/t/rv65mfqh
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi Andrei,
The edited code doesn’t seem to work either. Below is what I inserted into single.php
?>
<div class="td-container">
<div class="td-container-border">
<div class="td-pb-row">
<?php echo do_shortcode('[vc_column width="1/1"][td_ad_box spot_id="custom_ad_2"][/vc_column]');?>
</div>
</div>
</div>
<?php
Hi,
Unfortunately you will need custom work to move the bottom ad above the author box as it is apart of post content – http://screencast.com/t/78WC2EAv A solution to place the ad above the author box is to use a custom ad like Emil suggested above. Paste the code in a custom ad in Theme Panel > Ads > custom ad – http://screencast.com/t/JFsT6hi5o and use do_shortcode function to place the custom ad above author box – http://screencast.com/t/E1euKrXjuE – http://screencast.com/t/HrDZYbvl9rr
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
Result: http://screencast.com/t/87OS4SszJVAG
Hope this helps!
-
This reply was modified 11 years by
Alin [tagDiv].
Buna,
2. Eu am testat link-ul autorului cu Seo by Yoast activ si nu am gasit nici o problema. Poti verifica setarile pe care le ai in Yoast si de asemenea te poti adresa la suportul plugin-ului.
3. Adauga inca o clasa div-ului de mai sus si foloseste custom css sa-l customizezi – http://screencast.com/t/2juLb5RU
<div class="td-container test">
<?php echo do_shortcode('[td_block_trending_now limit="5"]');?>
</div>
.test {
margin-top: 20px;
margin-bottom: 20px;
}
5. Article top este creat sa apara pe toate template-urile, pe viitor o sa imbunatatim si aceasta.
1. Uite aici raspunsul lui Radu – https://forum.tagdiv.com/topic/speedbooster-not-moving-all-the-files-to-the-footer/#post-55023
Mersi!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
1) Try the following css:
.td-footer-template-4 {
padding-top: 5px;
padding-bottom: 0px;
}
.td-footer-info {
margin-bottom: 5px;
}
2. Try the following css:
.td-footer-info .td-social-style-2 .td-icon-font {
font-size: 20px;
}
.td-footer-info .td-social-style-2 .td-icon-font:hover {
color: red;
}
4. The easiest solution would be to disable automatic positioning on taboola and look on their documentation (i suspect you use a plugin for it) for a shortcode, then use the do_shortcode() function to place it on the desired location inside the post template files (loop-single default and 1-11). – https://codex.wordpress.org/Function_Reference/do_shortcode
5. You have to add it in each post template file like this – http://screencast.com/t/nAaP3gTWp
<?php echo td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'custom_ad_1')); ?>
Thank you!