- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- ApiAPI – Single Template – Introduction
- ApiPractical example – How to add a new Block and Module
- ApiAPI – Category top section style – Introduction
- Apitd_api_module::update
- Apitd_api_module::add
- ApiAPI – Modules – Introduction
- Apitd_api_block::update
- Apitd_api_block::add
- ApiAPI – Blocks – Introduction
- ApiUsing the Theme API in plugins
Hello,
Unfortunately the theme has no such options/ads You will have to either use a plugin that could have this feature, or hard-code the ads in. You can use simple html to add content into the theme files and css to position the ads and hide them on other viewports. For this you will have to edit quite a few theme files so your ads will appear everywhere on the site.(post templates, category templates, page templates, 404 page, search page…etc.)
Thank you!
As you can create a custom template for a page?
Hello shailenvandeyar,
If you want to disable the latest articles you have to use another page template, like this -> http://screencast.com/t/goYDSZwg and the other block I suppose that is about the sidebar. This feature you can set it from Theme panel. For more information about our Sidebar, please consult our documentation here -> https://forum.tagdiv.com/smart-sidebar-2/ and for page templates, please consult here -> https://forum.tagdiv.com/page-templates-2/
Hope this helps!
Thanks.
Hi
I assume that you’re using page-builder+title as a page template for the indicated page. To remove the title you can change the page template from Visual Composer: http://screencast.com/t/0BYrn8GIZZ0
If this is not what you mean please provide more details and an url where I can inspect it closer.
Thanks!
Hello,
You can create sidebars in a few different ways: https://forum.tagdiv.com/sidebars-tutorial/
Then you can set the specific sidebar for every place in the theme panel. On categories and on specific templates: http://screencast.com/t/505yjwdqY – http://screencast.com/t/6yEzvjGSzN
Then you only need to make sure that your posts or pages have the ‘default’ setting so they will not override your sidebars: http://screencast.com/t/wyV8czdnS1fl
Hope this helps.
Thanks you!
Heh. They gave me a little “red/gold crown” for helping out 😉
I usually pop in here for a little bit while waking up, or while waiting for something to FTP to server, and got sick of watching the “progress window” .. so little bit of a time waster / karma points / or whatever. (Right now I’m uploading bunch of mods to the CMS I’m working on for our corporate site trying to integrate a YOURLS shortcode system into ‘printing’ the code into the social share buttons “on template” …
I disappear for long periods, but since I have multiple sites, and have been doing webdev for 21 years and WordPress for 11-12 years now, I’m usually at the “front” of the line in delving into new stuff like mod_pagespeed, http/2, AMP, or whatever. I guess I was also one of the folks who helped make the “shim” happen for disabling visual composer that Radu did, since one horrible series of VC versions crashed our server. Been around here with them longer than most, I guess.
Anyway – sometimes I have a “highly experienced” comment based on having to deal with a problem for “years” that many here haven’t had to suffer. Of course, some people get mad when I disagree with their comments (whining?) — but not too many of those, thankfully.
So, anyway — gingerbread cookies accepted in my virtual tip jar!
Back to the salt mine!
First off to say… best money I have ever spent. I have been setting up projects with WP templates for years and finally see that it is worth paying.
A couple questions from someone novice to this theme for website http://www.livingtosmile.com:
1. I don’t understand categories and after a couple hours of trying, all of my posts just appear in one long single column on the homepage. How do I snap the posts into grids by category?
2. I activated the slider, but I do not see it on my site?
Thanks!
Best bet is to only use the AMP plugin from Automattic as it’s the one being developed for all the WP VIP customers (e.g., TIME) and working with Google more closely than random plugin developers can do. It also adds built in support for those using JetPack, and has a simple template system and ability to change fonts, etc.
Highly recommended, and check the AMP plugin support threads for “edge” solutions as they happen.
Any other plugin you’re using, you’ll need to address the plugin developer for help.
( My company not currently available for work, as we are rebuilding our corporate CMS with a massively hacked version of WordPress right now …. as well as optimizing AMP for our news network sites …. overloaded to put it politely and working on the weekend *again* [sigh] )
Everybody learning to use AMP right now (we started with BETA last November hence why I’m a little ahead of most folks on it!). Seriouusly consider sticking with what might be called the “official” WP AMP plugin. The other stuff, including PageFrog, buggy as hell (see support threads for problems).
“It’s not a job, it’s an adventure.”
Read the docs on the AMP plugin as good first step.
AMP only loads content in the actual content box. Anything else “outside” the post, you have to add by editing the AMP plugin template. This solution makes it easier for people with different needs, templates, custom post types, etc., to enable what they want — which varies from site to site.
AMP is not required, but will get some bump in mobile search with the little AMP lightning bolt next to SERPS listings and also appear in the news carousel, where non-AMP versions will not.
YOAST SEO and Glue addon are useful for dropping in additional things to align the AMP version with the main version of post, default image, etc.
It’s all still a work in progress obviously. First step is actually having AMP pages so Google can see you’re moving to AMP, then they will “see” that and add AMP spidering to your Search Console for review.
Theme does fully support AMP, but any customizations you need have to be made to the actual AMP template provided with the AMP plugin.
So, best bet is to try inserting the video into the template itself either from custom field, or pull the field from the video post type?
Then check validation tool from Google … be careful of some funky stuff with iframes, everything MUST be https if loaded from external location, and there cannot be any inline styles like align tags on paragraphs vs using a class.
Not sure that answered your question, but luckily it’s easy to mod the AMP template. 🙂
==========================
See my tutorial thread on AMP.
https://forum.tagdiv.com/topic/tutorial-getting-started-with-accelerated-mobile-pages-amp/
Theme supports AMP via the plugin made by the same people who make WordPress.
Using YOAST SEO, AMP plugin, and Yoast AMP Glue, our sites are working very very well with AMP.
Hi tagDiv team,
Could you please let me know how to enter an adsense code to the tag.php file.
the adsense code needs to be at the end of the page and above the pagination on the page.
I have tried, but when entering any code after <?php it kills the theme.
</div>
<?php
$td_tag_description = tag_description();
if (!empty($td_tag_description)) {
echo '<div class="entry-content">';
echo $td_tag_description;
echo '</div>';
}
locate_template('loop.php', true);
echo td_page_generator::get_pagination();
?>
</div>
Many Thanks
Hi,
I’m playing around with Google AMP, and I know you guys aren’t fully supporting this yet, but I was wondering if you could help me get the “td_video_suppport” function working.
Web Example: http://gossiponthis.com/2016/03/09/lil-mama-dragged-twitter-remixing-rihanna-work/ — The youtube video appears at the top because we have formatted this post as a “video” and inserted a youtube link under the “Featured Video” section in the post editor.
AMP Example: http://gossiponthis.com/2016/03/09/lil-mama-dragged-twitter-remixing-rihanna-work/amp/ — Where the image is should be the YouTube video. Or, maybe we could just insert the video embed directly above the post content, and leave the featured image on top.
Regardless, would it be possible for someone to put this together? I imagine it wouldn’t take too much considering the functions are already in the template, correct?
Thanks,
– Dustin
Well, that is just the div information — how is that supposed to load onto your page? Using a plugin ? Are you putting the javascript elsewhere on the page/template? Check the javascript for your site to make sure in right place and properly formatted, and actually loading on the page with that ID and class in order to load the element.
That code alone can’t possibly load anything.
Also note trying to load a leaderboard ad (728px wide) into a sidebar probably not advisable so always good to use a responsive unit site-wide if they offer it.
Hi James,
Let me try to explain a different way.
The read more tag will only work on module 15. Our theme uses modules and blocks. Blocks are simple containers for 1 or more modules. The module is the basic structure of the theme elements that display posts on a page or category archive, …etc. You can see how blocks are created using modules here: http://screencast.com/t/NpZhgQaafW5j
There is only one module where the more tag will work and that is module 15. Any other module will ignore the more tag. Unfortunately module 15 cannot be used on pages. Only on category archives and wordpress templates where you can use modules directly without the use of content blocks: http://screencast.com/t/LyqkFkgnC
On your homepage you cannot have module 15 unfortunately, but you can controll the excerpts in different ways. You can either select the length for them for a particular module from here: http://screencast.com/t/zz485MYMThM or you can assign a custom excerpt for every post in post edit like the screenshot above: http://screencast.com/t/hwZcmrCykl (you will have to type in the excerpt)
I hope this helps.
Thanks.
Best to do a clean install of theme theme and plugins on your working site in order to have it working properly. If you have something broken based on however you migrated stuff, obviously stuff might not work.
The default templates are in the theme panel under the normal location — see theme docs >> right side of page for how to install demos.
If demos missing then you busted something on your install !
Wish I had a one click solution, but sadly no.
Posts on static front page all link back to front page, not posts themselves. All off them, doesn’t matter if they are in a big grid, column or template layout. help
Hi
1. The code which render the ad-spots it’s located in td_block_ad_box.php: http://screencast.com/t/PqHOTJvI
2. I assume that that you want to display different ad-spots according with the post type displayed. To achieve that you will need a condition which check what post type it’s displayed and depending by result display a specific ad. Here is an example for header ad: http://screencast.com/t/4e9sKBons This is just a basic example about how can you check what post type it’s displayed and manipulate the ads according with the result.
You can create new ad-spots following the solution offered in this topic: https://forum.tagdiv.com/topic/how-to-add-more-custom-ad-spots/ and use them in your post types.
Using do_shortcode function and some proper conditions you can display ads according by the custom post type displayed. For more details about the function’s usage check these links: https://forum.tagdiv.com/topic/different-ad-tags-for-the-category-templates-vs-the-homepage/
https://forum.tagdiv.com/topic/sub-page-no-standard-top/ – https://forum.tagdiv.com/topic/header-ad-on-top-of-menu/
I hope this help but if you need additional informations please provide more specific details about what you’re trying to do and maybe I can help.
Thanks!
Can’t seem to get more templates to show up when I select Page builder + latest articles + pagination. all I get is one option, help!
Leave featured images = on. You need them for thumbnails, OG tags, and new posts with images not placed.
Go to template settings for posts, set ‘default’ to the template with no photo (look at the little thumbnail graphics of different template layouts – one has no photo).
With new posts, on the post page, choose a custom template which does have a photo, which will pull the featured image.
This was what I did, since we had 10 years of content with images placed “on the page” already to not get duplicate images.
Try it 🙂
The featured images are not showing on the single post page. I have selected the default post template in the panel and clicked the “show featured images” to on. How do I get the featured images to show up?
http://www.brianspaid.com/
Thanks!
We put ours at bottom of the single template being used for our posts as default, and then the one other template being used for older content (where photo was already in the post). We only track posts, hence our reasoning there.
Note for tracking /AMP pages, we’re still testing the single pixel image tracker instead.
If you’re setting up PIWIK you should know what I’m talking about 🙂
Hi,
I don’t mean to drag this on, but I just want to clarify one point. I’m not bothered about what’s in the code, but rather what it says in the UI when editing a page. It says, “Note: The settings from this box only work if you do not use visual composer on this template. The template detects if visual composer is used and it removes the title and sidebars if that’s the case.”
However, that didn’t seem to be the case, which is what sent me to go looking in the code. As I said, for a person who’s just starting out, I think there’s enough stuff to figure out without the confusion over this.
hi,
Custom post type posts not show in category page but i see post in taxonomy page, filter page and menu.
i dont find category page loop chance i try this replace this code did not work well enough
// Old Code
<?php locate_template(‘loop.php’, true);?>
// New Code
<?php
// WP_Query arguments
$args = array (
‘post_type’ => array( ‘post’, ‘galeri’),
‘post_status’ => array( ‘publish’),
‘cat’ => $cur_cat_id,
‘posts_per_page’ => ’10’,
);
// The Query
$query = new WP_Query( $args );
// The Loop
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
echo ‘<div class=”yenikategori”>
<div class=”td-block-span6″>
<div class=”td_module_1 td_module_wrap td-animation-stack”>
<div class=”td-module-image”>
<div class=”td-module-thumb”>’,
‘‘,
get_the_post_thumbnail( $post_id, array( 300, 160) ),
‘
</div>’;
‘cat_slug.'” class=”td-post-category”>’.$category[0]->cat_name.’</div>’;
echo ‘ <h3 class=”entry-title td-module-title”>’;
echo ‘ ‘.get_the_title( $id ).’
</h3>’;
echo ‘<div class=”td-module-meta-info”>
<div class=”td-post-date”>’;
echo ‘<time class=”entry-date updated td-module-date” >’.get_the_date().'</time>’;
echo ‘</div>
</div>
</div>
</div>
</div>
</div>’;
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();
echo ‘</div>’;
?>
Hello everyone,
I installed the video demo and using visual composer I implemented Home Page Video Template.
It is not fetching posts from Categories.
I am using wpmovielibrary plugin and my all posts are in this plugin.
For e.g http://projectfreetvshow.com/movie/sister-hell-2015/
I didn’t make any normal wordpress blog posts.
Please help me to display categories for movies posts.
Thank You
In the header you give me this code to past http://pastebin.com/KKdusNXM
but in the footer i don’t get no code i just follow the instruction screenshot http://screencast.com/t/9O3A21aRpve9 – http://screencast.com/t/QePMMbva7m i add only this code (line 1) <php if(page_(‘8999″)) and (line 30) { ?> <php } ?> in the (td_footer_template_1php) and the footer_php. like i saw in the screenshot