- 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
Hi,
The theme container width is 1068px. A general width setting to chnage this does not exist. There are options to stretch the rows containing the content, for example in pages
– https://www.screencast.com/t/II6LCBDb5w
With the help of the cloud library plugin you can now use the tagDiv composer to design post templates as well
– https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
So you can import/modify cloud templates or create them from blank. The same stretch settings will be available.
Thanks
The empty space is the result of hiding the sidebar. The remaining content will not automatically adapt to fill the newly created space.
Tablet is considered between these widths – https://www.screencast.com/t/NTYFSAe3
I could give you a code to remove the sidebar in those cases. Something like this maybe
– http://prntscr.com/kqv72g
Enter it here – https://www.screencast.com/t/wgi9pJqnoFn
@media (min-width: 768px) and (max-width: 1140px) {
.postid-1988 .post .td-pb-span4.td-main-sidebar {
display: none;
}
.postid-1988 .post .td-pb-span8.td-main-content {
width: 100%;
}
}
It will work only on that post, if you decide it works as you want and want it or all posts, remove the class with the ID from the code
– https://www.screencast.com/t/Ffg4t0g8
Seems you managed to remove that space – http://prntscr.com/kqv9j3
That is the padding top of the page, it creates some room between the header and content of the page. In your case you could use the menu overlay page template. This will position the header over the slider.
These are some demos which use the menu overlay page template
– https://demo.tagdiv.com/newspaper_law_firm/
– https://demo.tagdiv.com/newspaper_nature/
Hello,
Sorry but the authors box cannot show posts. it shows the author name and a few data about the author.
You can however change the content on the author page though. Use the cloud library plugin to change the content shown on the author template. Import a new author template and then use the tagdiv composer to add the content you want to show on that page. Then apply the author template in the theme panel under template settings.
Thank you!
I have just bought and installed Newspaper. I have gone to cloud and got the homepage-demo template.
In wp settings I made that the homepage, but none of my content is there? just the words ‘Homepage – Default Demo’
can see at baldhiker.com
Also if I try other way and create a page…. whole page goes blank if I try to press TagDiv Composer
In site settings the URLS are both same and correct as I have seen advised in forum
Hi,
So I believe you are referring to these – https://www.screencast.com/t/8ohvXT7adP
Those are supposed to be there. However not all the footer templates display the same content, choose a different template
– https://forum.tagdiv.com/footer-templates/
Or design a page and use that in the footer, instated of a template
– https://www.screencast.com/t/7NJCJyutBA
Thanks
Hi,
In pages built with the tagDiv composer you can stretch rows. There are some predefined widths or full width
– https://www.screencast.com/t/1wEhULjMyPyJ
That will allow for a wider layout.
For posts this could be done by using the cloud library plugin together with the tagDiv composer to design the post templates
– https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
The rows in the post can be stretched the same way
– https://www.screencast.com/t/ELvWaxPIQbR
If you have more questions please let me know.
Thanks
Hi,
That would not be possible, unless maybe with custom CSS. But it would depend where this sidebar is, in a page, post etc.
Hiding it would be possible, but also it will require some adapting for the remaining content with no sidebar. I could give it try, provide a link to where you want to do this. Mention if it should work only for that page.
A general setting to remove a sidebar by the device used to view the website does not exist.
In a page for example elements, rows, columns, can be hidden per viewport
– https://www.screencast.com/t/Cgew8aYUpP
– https://www.screencast.com/t/yDtjHwIK2
This works in pages or cloud templates built with the composer.
Thanks
I got the way to edit them, however, your screenshot shows an edit on TagDiv Composer and a specific page.
I want to do this for single posts’ view. My homepage includes no breadcrumbs.
Please advise on how to edit the single posts’ template for its breadcrumbs.
Hello,
I have an important question : is it possible to put the featured image, the title and the review in a block ?
Exemples : https://puu.sh/Bp8c7.png
https://puu.sh/Bp8cu.png
https://puu.sh/Bp8cM.png
When i try, the title is too high for the image and the review is at the bottom of the page
I can’t find a solution or an adequate template for it, is it possible to edit a post with TD Composer ? I don’t find this solution, have you got a CSS that can help me, thanks a lot, this design is very important to me !! 🙂
Hi
If you are already in the composer editing a template, the section will be imported on your page. You cannot import whole pages though but sections can be imported on the page while editing it.
Thanks.
Hi,
Seems that none of the post pages display breadcrumbs. That post seems to be part of this category
– https://climbingtechtips.com/category/gym-top-rope-climbing/
But I can’t find the post there however.
This page will show breadcrumbs – https://climbingtechtips.com/instructional-climbing-videos-2/gym-top-rope-climbing/
The template page with title is used and also there are parent/child connections between the pages.
That page will be in no relation to the post you mention, between posts and pages there is no relation. The connection will be between the category page and the post belonging to it.
It is unusual that the post pages don’t display breadcrumbs. Did you maybe make any modifications to the post template files mainly the single php files?
– https://www.screencast.com/t/uw0pqvzjrS
Could be the result of a plugin conflict as well, try leaving only theme plugins active and check again. Breadcrumbs should display at all times for posts once enabled.
hello,
in order to control the content shown on category pages, you will need to use the cloud library plugin to be able to edit the category template in the page builder.
As for featured articles please read this guide: https://forum.tagdiv.com/featured-posts-2/
If you do not have the featured category anymore you could have deleted it by mistake. You can simply create a category named: “Featured” and with a slug named “featured” so you can add posts to it to mark them as featured posts.
Thank you!
I need a help. using 9 version I have custom content I try to build a new block module with using td-api-plugin.
Please have a look the link
http://suman.gr/devne/suman/
its showing block but its out side of the block at the top left of the page. It might show bottom.. what parameter missing.. need to call any other function.. This might be huge help for me.
Best regards
Simos
Here is my custom code under module >> td_module_77.php
<?php
$exclude = array();
/* OPED */
$oped_tag_post_args = array(
‘no_found_rows’ => true,
‘numberposts’ => -1,
‘post_type’ => ‘post’,
‘post_status’ => ‘publish’,
‘order’ => ‘DESC’,
‘orderby’ => ‘date’,
‘ignore_sticky_posts’ => false,
‘tag_slug__in’ => ‘oped’
);
$oped_tag_posts = get_posts($oped_tag_post_args);
foreach ($oped_tag_posts as $post) { $exclude[] = $post->ID; }
?>
<div class=”row” style = “padding:0 10px;” id =””>
<?php $limit = 6; if ($oped_tag_posts) : foreach (array_slice($oped_tag_posts, 0, $limit) as $post) : setup_postdata($post); ?>
<div class=”col-sm-2 col-md-2″ style = “max-width:200px;min-width:180px;margin:0 auto;min-height: 400px;”>
<?php
$post->box_class = ‘medium’;
$post->show_author_thumb = true;
get_template_part(‘partials/post-item7’, ‘box’);
?>
</div>
<?php endforeach; array_splice($oped_tag_posts, 0, $limit); endif; ?>
</div>
<?php
class td_module_77 extends td_module {
function __construct($post) {
//run the parrent constructor
parent::__construct($post);
}
function render() {
ob_start();
?>
<?php return ob_get_clean();
}
}
Hi, I’ve got the same problem as Thomas. The error message is:
“Error at rows: 1(models) : 0(dom). The model does not match the content”
I have switched off all the plugins, removed and created this page and pieces of content like 5 o 6 times and it ony happens to me when I publish the blog page (and I fix like my blog page), it automatically changes to the theme template.
I changed this page around two weeks ago and now I was trying to fix it.
Help please!
Update : if I choose ‘Single Post Template 4’, it’s working. But if I choose ‘Products Page Wine’, it’s not saving.
It’s ok : wrong path for media files. (we’ve change the server there is 3 days)
But now, when I choose, import and save a template, it did not appear in the menu “All Templates”. I’ve check the logs but nothing in it. Only a “200” on the page “POST /wp-json/td-composer/save_post?uuid=608cff89-a32f-33f2-53ac-da363ffa6966 HTTP/1.0”
this is a common error when installing or updating a theme; stupidly WP uses ‘index.php’ as a default template file, vs ‘default.php’ and so at some point Google or a hacker will try to index that location when something else is not loading inside the folder due to the way WP works with the htaccess writing. If you get an error going to that page, that is normal, as it should NOT load in the browser.
If you get the errors all the time, something may be wrong. If you get “1” error once in a while. Just mark as fixed and move on.
Google should also be smart enough to not try to load index.php files inside of a folder called /wp-content/themes/foo/index.php
which only shows how “out of touch with reality” that testing and system check tool really is. However, again, this only happens sometimes when something is being updated.
Using a “maintenance mode” plugin can help with this when doing any kind of WP or system updates.
Sorted now. Template changes on the post page didn’t appear to be working but it was a cache issue ….. once cache is cleared, all was good !
Just to add that I have tried changing the page template to default but it didn’t lose the “Latest Articles” loop. I really want to keep this template but just don’t want the loop.
I have set up my site based on the downloadable “Default” template and have modified the home page to fit with my site and all is 99% good.
The bit that I can’t work out is how to get rid of the bottom section of the home page which is made up of the “post loop” of all the posts on the site plus a sidebar. I can lose the sidebar easily enough but I can’t switch off the post loop.
I have all my posts accessible on category pages accessed from the menu …. I don’t want them all on the home page aswell. How do I lose that section ?
My TagDiv Composer isn’t working at all. It’s activated but won’t edit. When I click it to edit it sends me here https://www.truthflame.com/magazine/wp-admin/post.php?post_id=100&td_action=tdc&tdbTemplateType=page
and the page says“This page isn’t working
http://www.truthflame.com didn’t send any data.
ERR_EMPTY_RESPONSE”
Only solution is to inline above the fold content in the head.
We use a service called Critical CSS to look at a page then generate the most needed elements, then put in the head before the closing /HEAD element in template.
Worth a look: https://criticalcss.com/
(I don’t work here)
Hi
1) I didn’t ask how to create social sharing… I asked how to get rid of the sidebar on buddypress pages. In theory I should just choose to have fullwidth template (on the page settings) and it should work- but it doesn’t. And I said, that you can login (using fb or g+) and got to “profile” page to see what I mean. I already implemented social sharing 😉
Screenshot-> https://imgur.com/a/qNNeo58
2) also I solved this one.
Seb
I will come back later to this. It’s easy to do this adding some code to the used template, but I don’t know more how to do this.
Now I’ve a thing which is much more important for me: how can I hide the featured image on smart list? If I publish a smart list I want of course have this on homepage, and, also of course, with an image. But when the user opens the smart list I don’t want to have this featured image above the smart list. That’s ugly and useless. How to solve this?