- ApiPractical example – How to add a new Block and Module
- Apitd_api_top_bar_template::delete
- Apitd_api_top_bar_template::update_key
- Apitd_api_top_bar_template::update
- Apitd_api_top_bar_template::add
- Apitd_api_single_template::delete
- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- Apitd_api_footer_template::delete
- Apitd_api_footer_template::update_key
- Apitd_api_footer_template::update
- Apitd_api_footer_template::add
- Apitd_api_smart_list::delete
- Apitd_api_smart_list::update_key
- Apitd_api_smart_list::update
- Apitd_api_smart_list::add
- Apitd_api_thumb::delete
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
Hi,
i love smartlist templates but i have a little problem.
We use to write a preface on our smarlist article and the only way to not show this preface on all smartlist page s is the add an H3 empty tag (e Fake smartlist bullet point) at the beginning on the articles.
You can find an example here http://intraprendere.net/2066/cerchi-unidea-imprenditoriale-noi-te-ne-diamo-45/
How can i hide the first “fake smartlist bullet point” ?
Thank you, i really love your work!
G.
You can embed shortcodes into a custom snippet of any code, like ads, etc., using the filter hooks in the AMP plugin docs to add a block of code at footer in the AMP template.
For videos, yes, we use the template with “no featured image” for the post, then put the video at top of the post box. We also do this for some book reviews where the book cover is tall and skinny and doesn’t work well for any of the featured sizes.
Or, you could create custom field for your video, then add an amp-iframe video box by inserting the shortcode at footer of the amp template.
By example to play with, which must be added to main functions.php
//Chris EXAMPLE AMP FOOTER
add_action( 'amp_post_template_footer', 'xyz_amp_add_pixel' );
function xyz_amp_add_pixel( $amp_template ) {
$post_id = $amp_template->get( 'post_id' );
?>
<div class="s2pamp02">
<p><em>My super special copyright notice goes here.</em></p>
<!--Related posts / or any compatible shortcode for plugin-->
<?php if ( function_exists( 'echo_ald_crp' ) ) echo_ald_crp(); ?>
</div>
<hr/>
<div class="s2pamp01">
<hr/>
<h2><strong>Wow it's Chris' headline!</strong></h2>
<p>You can put text here, isn't it amazing!</p>
<hr/>
</div>
<?php
}
//END
-
This reply was modified 10 years by
simchris.
“So, you generally need to “roll your own” social buttons, or use a plugin that is AMP friendly that will “insert” things at bottom of the AMP footer (e.g., we use a related posts plugin that does this).”
In this case, you’ve used a related posts plugin to insert social buttons?
When using some plugin to insert social buttons on the body of the text, would make the plugin amd collect the codes of button and show page amd, but would also be shown in the original page and already have the social buttons.
“Often with a video, you can simply use a normal post, then put the video at top inline using oembed vs making a “featured video” unless you want to come up with your own workaround.”
In the case of the video, what do you mean, would put the video in the body of the text (in the first line), is it?
If so, then I would have to change the layout of the theme (style 11) for a simpler layout as, for example, the style 5, is it? That way, and could not work with the 9, 10 and 11 style?
I appreciate.
Why I can’t activate licence of Visual Composer &Revolution Slider Plugin
Thank You
Hi,
After reading various threads here, I have successfully added the Facebook comments. For example. Have a look at this link: https://tomatoheart.com/aditi-singh/open-letter-to-friends-cast-indian-teen/
Right now it appears just after the end of the post (even before the share button) but I want it to appear before the “real WordPress comment section” and after the related post section. I have shown the desired location here .

where should I put the code to get it right? Currently the FB comment has been inserted in all the loop-single.php files like this:
<?php echo $td_mod_single->get_content();?>
<div class="fb">
<div class="fb-page" data-href="https://www.facebook.com/page" data-width="180" data-height="70" data-small-header="true" data-adapt-container-width="false" data-hide-cover="true" data-show-facepile="false">
</div>
<div class="fb-comments" data-href="<?php echo get_permalink($td_mod_single->post->ID); ?>" data-width="100%" data-numposts="10" data-order-by="social" data-colorscheme="light"></div> </div>
</div>
Please tell me the right location to get it after the related post section. Thank you.
PS: Do we need to modify any single.php etc. file too to get these results? ( Because under various threads I have seen the mentioning of single.php files too but in my case, I am able to get the FB comment section just by adding codes under loop-single.php files.
Mobile devices need smaller footprint page loads for better user experience and SEO, etc.
Complex page => desktop
Simpler page, less bandwidth, smaller footprint => mobile
This is why Google and others have come with alternate solutions like AMP, etc.
Mobile speed *is* now a ranking factor for mobile with majority of web traffic NOW on mobile devices.
So, the idea is NOT ridiculous, but clever way of serving two version of site when “responsive” alone is not enough for some people. And surprise, you can turn it off if you RTFM.
Welcome to webdev, always a learning experience.
Note that Facebook sets a redirect for all links from FB to a website as well as tracking cookie; if your site does not properly allow redirects or has “too many redirects” then some devices will fail, especially mobile.
If somebody can access your website from any other link except Facebook, then it’s fairly clear the issue is how the site is setup to accept inbound traffic from Facebook.
If your site has popups, popunders, conflicting Facebook data on page, etc. these can also impact FB links on landing.
I don’t work here, just some feedback.
Also note if your site is https and SSL3, TLS1 and 1.1 are deprecated (which are insecure), some older web browsers cannot connect at all over https and will not load page. For example with http/2 and https, old web browsers cannot connect to an https page properly in many cases.
Good evening,
Can we delete the date of a blog block (example : block type 5) on one page?
Indeed, I want to keep the date on a blog page and remove another blog page.
Thank you for your help.
You need to use the filter hooks from the AMP support page to “add” the video to footer of your AMP pages, as the AMP “pages” from your post only pulls the materials in the “post box” — not any plugins or custom coding from your theme. So the AMP version will only get videos which are “inline” to the post and not “featured” videos or images.
So, you generally need to “roll your own” social buttons, or use a plugin that is AMP friendly that will “insert” things at bottom of the AMP footer (e.g., we use a related posts plugin that does this).
Often with a video, you can simply use a normal post, then put the video at top inline using oembed vs making a “featured video” unless you want to come up with your own workaround.
This is how we have been doing on our sites since the beta started last November.
That may not be any help; just food for thought in that with most AMP customizations, hooking into AMP from a theme developer perspective is a like having to manage an entirely new theme.
TagDiv would almost need to make a separate plugin to sell just to cover costs of the support on doing that.
OHello guys,
A new model of pages was created recently, AMP and FBIA, removing most of the data of a page leaving it much simpler and lighter. This will work for posts of texts.
I’m using the AMP plugin from Automattic (https://wordpress.org/plugins/amp/) to create the pages AMP, along with the Glue plugin for Yoast SEO & AMP (https://wordpress.org/plugins/glue-for-yoast-seo-amp/), nd the plugin Facebook Instant Articles & AMP Google Pages by PageFrog (https://wordpress.org/plugins/pagefrog/) to customize and create posts in FBIA.
But none of these plugin carry the social buttons, and neither the embeds videos from Youtube.
Even though pages faster, causing the ranking of my website in Google search results, I believe that on the one hand you have a greatly increased traffic on pages AMPs, but visitors will not be able to share and disseminate the posts.
Another problem is with embed video from Youtube. The theme has how to create posts with videos on top (e.g. http://proddigital.com.br/play/esportes-fitness/q48/peso-ideal-qual-meu-peso-ideal/), but when accessing via AMP (ex.: http://proddigital.com.br/play/esportes-fitness/q48/peso-ideal-qual-meu-peso-ideal/amp/) appears only the highlighted image. This will cause that didn’t have a quick page logic, consequently more visits being that none of these visitors will be able to see the videos.
So I was wondering of you, there’s nothing to do on the subject to the possibility of social buttons being converted into AMP and FBIA? And also in the case of Youtube videos, I saw in the project amp (https://www.ampproject.org/pt_br/docs/guides/amp_replacements.html#include-a-video) that the version amp accept iframe (iframe-amp) which is the format used to call the Youtube video. But to work, you have to put a script on the page <head> amp.
I tried to put this script in the <head> in the subject, and he appears only on the original page, but not on the page.
Is there anything that can be done on the subject?
I appreciate.
Rodrigo Carlos
Thanks Bogdan! Yes, we’re not familiar at all with your product. We’d lunched our 110 page website using a completely different set of products; tools & templates, having to re-educate ourselves on your platform has been a challenge and detailed info is very helpful. We’ll follow your instructions and hopefully will not have to ask for further clarifications.
One pesky problem, the weather widget that ships with the template is useless for our location – always off by 10-15c. I’ve contacted the provider over a month ago and they are aware of the problem but have not corrected it. I attempted to install a different widget that we use and has proved to be very accurate on our existing site but it does not show up as an available choice for the sidebar. Am I doing something wrong?
Hi
You can use theme’s blocks to achieve a similar functionality. For each block you can set a background color and the rezult will be like here: http://screencast.com/t/oJYmLSVJWx7 – http://screencast.com/t/lpOiW9bmmTh
This is just a basic example but you can customize it i many different ways in order to achieve the desired result.
Thanks!
Hello marcello.oddini,
Unfortunately, we do not have any tested plugins in this regard and also, the theme does not have such an option that offers you a way to set the Co-Authors, sorry! Please notice that this is not a simple task and it could be made only via custom work and we cannot provide this type of services at the moment, sorry! As a hint, please try to check the following topic for a basic example for this implementation, like this -> https://forum.tagdiv.com/topic/author-alias/
Thanks for your understanding!
This is the default global setting section for Post template.

Is there any way to set different post template for different category?
For example, I want all the posts under primary category “Videos” to get the post template “STYLE 11”. Is there any way to set it?
Or the only way to do so is by individually selecting the video post for all “video” posts ?
Thank you.
Hello nano2408,
You do not understand what I have explained you above. So, please notice that this feature is built using a Tab and this Tab can have more section, as an example: Fashion/Sport/Music/etc and for each section you will have to add another or same block which has to be filtered by your desired category, as you can see here -> http://screencast.com/t/LHD3Bqwb
For your second question, please notice that all of these symbols are from Visual Composer and that’s why these will appear without this plugin.
To understand better our theme, I request to read the theme’s documentation which could be found here -> https://forum.tagdiv.com/newspaper-theme-documentation/
Thanks for your understanding!
Hi.
As requested, here are two screenshots from the tech pages of a newspaper website
DailyMail.co.uk with side boxout
DailyMail.co.uk with large boxout
As you can see in these examples the boxes each have their own headline. They can be coloured. And they can be positioned on the side of the page or a full width box and include images within.
In tech, and in all other articles they are great for sharing extra supplementary information. They also make the page easier to read and attractive.
Is there is an easy way to do this with the theme, or is it a feature that could be developed? It would be amazing as it is a core design feature of magazines, and by extension, magazine & newspaper websites.
Thank you! 🙂
Hi,
you did not understand what I want.
I want to insert another banner or inside the post,
for example: I wanted to use your custum code 1
you have understood???
Hello,
The theme uses a fixed layout and there cannot be anything beyond 696 pixels as that is the maximum content area with a sidebar enabled. I’m not sure where the 640 pixels are from. We actually inspected @torgut’s site and he had a padding added to the images and aligned them center. Thus wordpress will make the image grab the padding as well and thus the 640 pixels was displayed.
Our theme will fit the images to the size of the container. Our theme does not use any thumbnail for images inside the post content. It will show them in full size if it can or it will shrink them to fit the container.
Please contact us via email at contact@tagdiv.com and provide a link to your site and wp-admin and provide an example of exactly what image size you want to display and where.
Thank you!
Hello,
The demo ads are provided in the theme as an example of how ads should look like on your site. if you want to remove them, simply remove the ad codes from the theme ad spots here: http://screencast.com/t/TJjfADMEYm
Thank you!
Hello joncreek,
To achieve the same layout, you will have to add a width:100% for your logo image, as in this example ->
http://screencast.com/t/1KtVwuEx9
.td-header-style-10 .td-header-sp-logo img {
width: 100%;
}
Hope this helps!
Thanks.
HI
The code for article bottom ad is located in td_module_single_base.php file: http://screencast.com/t/5RXaMpJx
Thanks!
Hello,
Here is the code to hide the ad oin that specific post:
.postid-6521 .td-g-rec-id-content_inlineleft{
display:none!important;
}
You can add the code in the theme panel->custom css box
I could not see the coming soon sub-category problem. The articles and video categories have no “coming soon” Please provide an example so I can better understand how to help
Thank you!
Hello nano2408,
Please notice that this type of effect is a Big Grid 5 in a Tab. For example, please try to use the following code and place it in your Visual Composer Classic mode and check the results. The code is there -> http://pastebin.com/ZuTnaBYq All of our demos have an own design and I suggest you installing the demo if you want to have that layout.
Thanks for your understanding!
Hi ,
Few questions:
1. Can offset features be used if we have selected multiple categories ? For example : under two blocks we have selected “All categories” with “Latest” sorting. Will offset features work? Or offset will work only if we have have single as well as same category?
2. DO these offset features works only under single line( I don’t know the term for it, Single line means 1/3/3,1/3, or 1/3, 2/3 or 1 columns) or it will continue to take care of all posts from the start of the page to the end of the page if enabled?
3. Can we use offset features while keeping the “unique article features” for maximum surity to avoid duplicate posts.?
Examples of adding woff and webp are in my optimization thread in this forum from the docs menu > tutorials > best of forum