- NewsmagAbove footer ads
- NewsmagSmart list ads
- NewsmagArticle ads
- NewsmagSidebar ads
- NewsmagHeader ads
Hi,
1) I’m not sure what a userpro badge is as userpro is not a tested plugin. you can try to code it in if you have the proper coding skills. Either with the code you showed above or the do_shortcode funtion.
2) If userpro has it’s own comments, you can replace the standard theme comment system from here: http://screencast.com/t/Ic56itglx3h
3) The login was hidden for mobile phones only. For desktop and tablets it is present in the top menu. Please proveide a link to your site so I can provide the proper css to show the login on the mobile version of your site.
Thank you!
Hi,
You can replace the theme author box with the plugin shortcode in the post template files. There is a file corresponding to each post style you use on your site: http://screencast.com/t/s2PE1hVPxs
<?php echo do_shortcode('[userpro template=card user=author]');?>
Thank you!
Hi
Block’s layout can be corrected when it’s used on posts following this configuration:
– in Visual composer set a 2/3 row: http://screencast.com/t/KOy8eW1F
– insert this shortcode in do_shortcode function: http://screencast.com/t/xwyyFSQo
– add this css in theme panel > custom code > custom css: http://screencast.com/t/i4cv7jhH7Vs
.single .td-pb-row .td-pb-row .td-pb-span8 {
width: 100%;
}
Thanks!
Hi
You can use do_shortcode function in category.php file to display a custom content for a specific category. First you have to create the content in Visual Composer, then switch in backend editor, copy the shortcode and paste it inside do_shortcode function. Here is an example: http://screencast.com/t/TjJpQicbC – http://screencast.com/t/1DvdbdCzz – http://screencast.com/t/3Wl63bkLU
<?php
if (is_category('category-id/slug/name')) {
echo do_shortcode('your-shortcode-goes-here');
}?>
You have to add in above condition the name/id/slug fur the category where you want to display your custom content.
I hope this helps.
Thanks!
Hi
We didn’t tested Advanced Custom Fields Pro to work with the theme and we’re not aware of its functionality in order to provide an answer. However I’ve made a quick test and the plugin works fine but you need to use do_shortcode function to display a form on a post or page. Here is an example for a post: http://screencast.com/t/S1daz5ocjpm – http://screencast.com/t/IXkvDetDOla – http://screencast.com/t/IXkvDetDOla – http://screencast.com/t/fFipR7Fw8
Basicaly you need to edit the file corresponding with the post/page template used and add the shortcode on there using do_shortcode function.
If you want to display a form on a specific page you can use a condition like this: http://screencast.com/t/ROGHlaSJ
if (is_page("page_id")){
echo do_shortcode('[acf field="my_name"]');
}
Note that this customization require some basic coding skills in order to be achieved. If you can’t make this by yourself my advice is to look for someone which can help you wit implementation as we can’t offer customizations services at the moment.
Thanks!
Hello bikingculture,
I suppose that you want to display the Ad for each your author name for every one author page. To do that, you have to add some conditions in author.php core file in order to achieve as you wish. As a hint, you have to use the_author_meta('ID') function and do_shortcode(). For more references about the_author_meta(), please check the codex documentation here -> https://codex.wordpress.org/Function_Reference/the_author_meta. Also, you have to add your ad for each author name (ID), you have to have to introduce the following code
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?> and also, you have to use if/else condition for better results. -> http://screencast.com/t/bSbxuuaM
Please notice that this is not a simple task and require custom work. If you are not aware of the steps which you 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!
Thank you for your understanding!
Do you want to show randome posts below the comment section like this? http://www.mysteryofindia.com/2016/04/awe-inspiring-shiva-temple-kakanmath.html
So here is guide:
1. create new page ( you don’t have to publish it)
2. Click backend Editer to use visual composer
3. Add Block 3 and select the options according to your preferences (like Title, category, Random posts or Latest posts)
4. After you finish adding the block click on Classic Mode to return on normal page
5. You will get a code like this [vc_row][vc_column][td_block_3 custom_title="" sort="random_posts" limit="3" ajax_pagination="infinite" ajax_pagination_infinite_stop="4"][/vc_column][/vc_row]
6. add PHP tag like this: <?php echo do_shortcode('your Visual composer code goes here'); ?>
7. Here is final code that we use on our site: <?php echo do_shortcode('[vc_row][vc_column][td_block_3 custom_title="" sort="random_posts" limit="3" ajax_pagination="infinite" ajax_pagination_infinite_stop="4"][/vc_column][/vc_row]'); ?>
8. Now you have to edit your SIngle_Template.php files. We are using template number 2,5,11 so We have added this code in these files. You can add this code in all the templates that you use.
9. Paste the code at end of file Single_template_##.php after this line </div> <!-- /.td-pb-row -->
and before this line: `</div> <!– /.td-container –>
</article> <!– /.post –>`
Thats it. it will work now.
Last thing add this code in Theme > Custom Code > Advanced CSS > Phones:
.td-pb-row {
width: 100%;
margin-left: 0;
margin-right: 0;
}
It will fix some style issue in mobile phones.
-
This reply was modified 10 years by
Josan.
Hi
I assume that you’re using blog template which display latest article published. The theme don’t have an option to add blocks/grids on blog page. However this can be achieved using do_shortcode function. For more details in this regard please check this topic: https://forum.tagdiv.com/topic/big-grid-on-blog-page/
If this is not what you mean please provide your site url and more specific details about what you’re trying to do so I can inspect it closer and get back to you with a more accurate answer.
Thanks!
Hi,
The sidebar appears because there is a bbpress default template that you can style from here: http://screencast.com/t/oyMj2xH1zEcE
Unfortunately you will have to edit the plugin files if you want to add theme elements inside the bbpress forum. You can maybe use a do_shortcode function: https://developer.wordpress.org/reference/functions/do_shortcode/ inside the bbpress.php file in the root folder of the theme:
for example if you want to add the trending now widget, create it inside a dummy page and enter classic mode and text mode(not visual) so you can get the shortcode for the element. Then you simply add it inside the function and paste it inside the file like so:
do_shortcode('[td_block_trending_now]'); ?>
In the bbpress.php fiule, there are 3 cases with code in each section. there is the default sidebar case, the sidebar left case and the no sidebar case. You will have to look for these and add the function to your specific case. If yopu do not want to have sidebar, then add the code here: http://screencast.com/t/KHIyPPBZiD4
Thanks.
Hi,
You can do it with a do_shortcode function inside the post style files. Every post stile has a file corresponding to it: http://screencast.com/t/phiV9Mxz
<?php echo do_shortcode('your shortcode here'); ?>
Thank you!
hello,
i paste ad codes in custom ad 1 and in single-loop.php i paste <?php echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_1"]‘)?> but still its now showing me any ads so i put ads on td-module-relarted-posts.php
but i want to add these codes in single-loop.php..
Hi,
Unfortunately the plugin is not tested and we have no idea of its functionality. Plugin implementation unfortunately is not covered by support as if a plugin does not work out of the box, it’s rarely the case in which the implementation can be added easy.
As I can see in the faq section there is also a shortcode implementation that you can maybe use in the post files:
https://wordpress.org/plugins/contextual-related-posts/faq/ one file for each post style you use. You can use a do_shortcode function: https://developer.wordpress.org/reference/functions/do_shortcode/
Hope this helps.
Thank you!
Hi,
if you want to add the code inside posts at the botom of the content you need to edit the files for each post style you use. Every post style has it;s own file:
http://screencast.com/t/GKMqfOTHR1FZ
Make sure to use the php tags with the shortcode though:
<?php echo do_shortcode('[mashshare]'); ?>
Thanks.
Hi,
You can change the category template and top post settings from the theme panel: http://screencast.com/t/KwjSE2Lc
If you want to add a block to the category templates, you can do so with a do_shortcode function inside the category templates or the category top posts: http://screencast.com/t/vaLSho5EXrXm.
Create the block you want in a dummy page and click on classic mode and switch to text mode so you can copy the shortcode for your block and then use the do_shortcode function to add it inside the file.
This however will require further css positioning as it will not display properly .
As an alternative, you could create static pages for your categories and use a 301 redirect from the category page to your static page.
Hope this helps.
Thank you!
PLease how do add this code
<?php echo do_shortcode(‘[fbcomments url=”http://peadig.com/wordpress-plugins/facebook-comments/” width=”375″ count=”off” num=”3″ countmsg=”wonderful comments!”]’); ?>
SO the comment box appears right below the social sharing in post content
@ChrisS, when you say
you just need to follow the docs to put in your custom HTML for the different media sizes …
do you take DFP’s ad tag and place it in a theme panel>custom ad slot and then hardcode something like:
< ?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
Hello,
Unfortunately things are not as simple as it looks like. These types of smartlists, even though it seems they are on the same page and could be like a simple post, they are not. Every section of the smartlist is separated from the other. If you place an ad inside the php file by hard-coding, this will be the result: http://screencast.com/t/hKvYLgjo – it will place the ad after each title of the smartlist. This is the way smartlists work. It’s the same if you use a sliding smartlist. ALternatively you can have a single ad on top of the smartlist: http://screencast.com/t/8NU01k2h but there is no way of adding it like an article inline ad after a set paragraph.
Depending on the position you place the shortcode inside the file, here is the code for the first implementation with multiple ads: http://screencast.com/t/pa6xuzfoaMN by using this code:
$buffy .= do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');
And here is the implementation for the single ad: http://screencast.com/t/cAVAeD8UVxk by using this code:
echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');
You can use this method for the other smartlists.
Thank you
Muito obrigado, eu não estava achando esse td_module-13.php. Obrigado novamente. Eu usei o codigo
<?php echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_1"]‘);?>
Para adicionar o banner abaixo de cada postagem na home page. Obrigado novamente.
Thank you, I’m not finding this td module-13.php. Thank you again. I used the code
<?php echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_1"]‘);?>
To add the banner below each post on the home page. Thank you again.
Print http://prntscr.com/au9sjo
My website http://www.eusouandroid.com
Hello pedro,
If you want to display the Ad, using the module 13 for latest article option, you have to use the do_shortcode method and place the code in td_module_13.php. First of all, you have to create the code from Visual Composer, like this -> http://screencast.com/t/WSsDj3xttlfk -> http://screencast.com/t/nrSIgUvY and then you have to create this code ->
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1" spot_title="AD TEST"]');?> and then you have to place the code in the core file, corresponding to the module used by you, in this case, module 13. Please check this -> http://screencast.com/t/x2QpnMVe9
Please notice that you have to customize your ad box as you wish, depending on what you want to show in this ad. As an instance, above I gave you an example using the custom ad 1. Before you check the result, please ensure that you have added the code in custom ad 1 field from Visual Composer, like this -> http://screencast.com/t/slwRK2ycOL92
The result you should see here -> http://screencast.com/t/dyHQ6SVuwq
Hope this helps!
Thank you for your understanding!
Hello firetoss,
If you want to add the tab on single posts, you can do it if you are using the do_shortcode method. First of all, you have to create the code from Visual Composer, like this -> http://screencast.com/t/nZBNCZx9Y and then you have to create this code ->
<?php echo do_shortcode('[vc_tta_tabs][vc_tta_section title="Tab 1" tab_id="1461047600033-9a2e045c-8d40"][/vc_tta_section][vc_tta_section title="Tab 2" tab_id="1461047600063-077fb1e5-cf44"][/vc_tta_section][/vc_tta_tabs]');?>
For example , if you are using the post template style 1, you have to add this snippet of the code in loop-single-1.php, like this -> http://screencast.com/t/J9hVGp0iAIVd and the result you should see here -> http://screencast.com/t/HVY46AsrhEsE
Please notice that you have to customize your tab as you wish, depending on what you want to show in this tab. These change would be made from Visual Composer.
Hope this helps!
Thank you for your understanding!
Hi,
Thank you for your kind words, It’s always pleasant to see our work is appreciated.
1) The search button does not have the option to be moved overt to the top menu. You can however implement the standard wordpress search box through the theme files. you can add this code:
echo do_shortcode('[vc_wp_search el_class="mycustomsearch"]'); in the top menu file here: http://screencast.com/t/zdLBnDZoox6 but it will require further customization.
2) Please provide an example of where the tags appear exactly.
3) There is no option to order the sub-categories. They are generated automatically so there is no way to have them in a particular order at the moment.
Thank you!
Hi
When you’re using blog template the elements from Visual Composer can’t be added on page using the page-builder. However you can use do_shortcodefunction to display the big grid on blog page. Here is an example:
– first you need to get the grid’s shortcode. To do that add the desired grid on a blank page, set as you want then click on classic mode button to switch in back-end editor, copy the shortcode and paste inside do_shortcodefunction like here: http://screencast.com/t/GWIAj90xwep
<?php echo do_shortcode('[vc_row][vc_column][td_block_big_grid td_grid_style="td-grid-style-4" category_id="19"][/vc_column][/vc_row]'); ?>
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hi
You need to generate a shortcode which will contain all settings for trending now block. To achieve that add the block on a blank page then set it as you want using block settings: http://screencast.com/t/knqeahy7F After everything is set switch in back-end editor copy the shortcode and paste it inside do_shortcode function http://screencast.com/t/0d4T4rUyal0 Here is an example:
<?php echo do_shortcode('[td_block_trending_now category_id="21" limit="9"]');?>
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hello,
Please try this code and see if the sharing button comes up:
echo do_shortcode('[mashshare]'); the quotation marks are double in your screenshot and php is very sensitive to these things. If it still will not work, maybe the plugin is not compatible with our theme. We can;t say for sure as we have not tested it.
As for the pagination I;m not sure what you want to achieve. Please provide more details so I can understand better.
Thank you!
Hi
To add trending now block on search page you need to edit search.php file and insert block’s shortcode like here: http://screencast.com/t/ls8yiAI9InRK
do_shortcode('[vc_row][vc_column][td_block_trending_now][/vc_column][/vc_row]'); ?>
Also I’ve used this css to add a margin between the menu and the block:
http://screencast.com/t/SKubTMMSS
.search .td-header-menu-wrap-full{
height: 48px;
margin-bottom: 20px;
}
Hope this helps.
Thanks!