- 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.
I installed the home decor demo. I’ve even edited pages such as the main page, category, but I can’t set the post template, like home decor demo. Which template number using for the post template? ı can not find like that..
I was able to fix my first issue by discovering the “object-fit” CSS, so what I wanted for post template 1 is achieved with the following code:
@media (min-width:141px){
.td-post-template-default .td-post-featured-image img {
width:100%!important;
height:337px;
object-fit: cover;
margin-left: auto;
margin-right: auto;
}
}
However, I don’t have a solution for why the featured image appearance isn’t standardized for posts as they appear on pages other than the posts loop.
I want to use post template 1, however when I use vertically oriented featured images for posts, they’re too large and leave white space to the right. An example of this:
https://i.imgur.com/25D8M7w.jpg
https://personacentral.com/persona-5-the-animation-volume-7-box-art-revealed/
By using the following code, I can make the width as I want to, but if I set the height, it scales the image down and squishes it, which I don’t want:
@media (min-width:141px){
.td-post-template-default .td-post-featured-image img {
width:100%!important;
height:337px;
margin-left: auto;
margin-right: auto;
}
}
Result:
https://i.imgur.com/zlUVmAc.jpg
How do I instead crop the featured image to a dimension like this one, instead of scaling it down like this?
Tag / Search / Category Pages
Additionally, I want vertically oriented featured images that appear in the above pages to look like the ones in the posts loop. An example of this is that I want this:
https://i.imgur.com/6WIlOH1.jpg
and not this:
Hi,
Unfortunately, please notice that there are two different sections at the footer and it cannot really arrange as you wish. For a better alignment, I suggest you use the TD Composer and create a footer page or import such a layout from Cloud Template Library which looks like this -> https://www.screencast.com/t/npRrrltxNjIo I guess that the optimal solution for alignment your footer element. Are you agree with me?
Thanks for your understanding!
Hi,
All of these sections can be changed with TD Composer from here -> https://www.screencast.com/t/UpzTb5ZY8 Here is talking about Custom Title for these blocks. Also, the Latest Articles section can be changed from the Page Template, from here -> https://www.screencast.com/t/xn87crIjZ At the section Homepage Latest Articles, you have access to change the Posts Loops Settings. For more information about this, please check the following useful guide from here -> https://forum.tagdiv.com/page-templates-2/
-> https://forum.tagdiv.com/tagdiv-composer-tutorial/
Thanks for your understanding!
Hey,
thanks for the reply.
Basically the shortcodes look like this (I am listing some examples here):
[insert page=’author-syed-balkhi’ display=’content’]
[insert page=’128′ display=’content’]
[insert page=’128′ display=’all’]
[insert page=’128′ display=’custom-author.php’]
where ‘author-syed-balkhi’ is the slug of the inserted content, 128 is the ID (optional, which one you want to use), and ‘display’ defines other options (what part of the content you want to insert, or use a template that handles which parts of the inserted post you want to display and how).
Here is a description of the usage if you need more information:
https://www.wpbeginner.com/plugins/how-to-insert-wordpress-page-content-to-another-page-or-post/
-
This reply was modified 7 years by
tszt2.
Hello again,
I already read the a lot of documents but it will not look the same with desktop theme and I cannot change it. I already downloaded the catch plug in and it looks like a default template so I deleted it. Now, if I don’t use it,what could I miss? Does if effect the page speed? Thank you. My web page is http://www.teknovv.com
Hi,
In order to do that you’ll need to use the tagDiv Composer and edit the page, or is is a template from post you’ll need to use a single post template from tagdiv Cloud Library and edit it.
-> https://www.screencast.com/t/ka3xMMlhPt
-> https://www.screencast.com/t/jw3efqYSKE
Thank you!
Hi there,
I am facing constant ads issues with single templates. Adsense Inline ads(Responsive code) placed inside single page templates expands beyond column size and overlaps with the sidebar.
As Ads setting can’t be managed from Theme panel for could panel, so it’s hard to manage “ADVANCE USAGE” settings.
website: https://loudfact.com
Waiting for your response.
Regards,
Emily
Hi,
For a background image on header if you have the newspaper 9.5 -> https://www.screencast.com/t/i93laJXg if not or if you are using a default header please check the header background from theme panel -> https://www.screencast.com/t/TCZ9kpaq5QJ
For search you can use a search page from tagDiv Cloud Library and set it in theme panel as a template -> https://www.screencast.com/t/aa5dPpxd or use the default designs -> https://www.screencast.com/t/UpYNkneg
Thank you!
Hi,
In order to have only some widgets or to change the order, you’ll need to check in Appearance >Widgets -> https://www.screencast.com/t/57XFuuyV and drag and drop the widget in that order you want, for delete -> https://www.screencast.com/t/P16OE65j
For latest articles you’ll need to change the page template
Also if you want to change the sidebars from homepage/page you’ll need to use the tagDiv Composer
-> https://www.screencast.com/t/AYmGWLtl5j
Thank you for your undersigning!
Hi,
1)By default, please notice that’s the order of them. So, if you need to make some changes over this section, you need to edit the loop single according to your post template used by you and make the following modification. As an example, if you are using the post template style 8, you need to edit the loop-single-8.php like this -> https://www.screencast.com/t/lQqVWBYvDv and the result is here -> https://www.screencast.com/t/P1KbqoAbwO
2)Yes, it’s possible if you will use such a custom CSS code for that. If you want to tune that section, you need to create your own custom CSS code, after using the Inspector Browser, according to our useful guide from here -> https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/ As a hint, you can try using the code below and place it in Theme panel -> Custom CSS area.
.td-tags a {
color:red;
background:blue;
}
The result is here -> https://www.screencast.com/t/jQNDceBb9
3)If you want to move that section at the top of the page, you should edit the above core file and move the code which I have pointed you above. All of these custom modification can be added to a child theme if you do not want to be overwritten for a next theme update. For more information about how you can use Child Theme please check our useful guide form here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/
Hope this helps!
Thanks for your understanding!
Hi,
Please send us an email at contact@tagdiv.com with your log-in information (wp-admin) so we can further investigate it closer your setup page. Provide there the link of this topic so we can quickly identify you. Would be helpful if you will provide more details about how exactly you have created this template.
Thanks for your message!
Hi,
1. For blank template, just use the Pagebuilder+ Empty page -> https://forum.tagdiv.com/page-templates-2/
If you have the last version of the Newspaper (v9.5) then the empty page was removed, but you can sue it; If you require it, you can download it from here – http://cdn.tagdiv.com/wp-content/uploads/2019/02/page-empty.zip
Place it in the main theme folder, upload it by FTP for example
– http://prntscr.com/mo17zp
Then select it for the pages you want. The footer will be removed and the header can be disabled
– http://prntscr.com/mo17bw
2. For inserting php code in page you’ll need to use some plugins -> https://www.youtube.com/watch?v=-CYe0q1K45I
Thank you!
I’m sorry I was referring to adding blocks inside an actual post. I’ve used the cloud templates to add blocks in single templates previously however they are applied to all post pages that I assign that specific template to.
What I want to do is add a block lets say of all events and photos that are categorized to that particular venue. I don’t want these blocks to show on all posts only on that particular post about the venue.
So if I have 10 venue posts within each post I want to add events, photos, map affiliated only to that particular venue.
Hello, I can not in any way remove the word “newspaper” when I scroll down the page and the menu at the top narrows. (I used the “Header Template 12” template). Thank you so much for the support
Calin: That’s what I was looking for so I can have it set up and customize it! I had set up a page and tried to link it, but I didn’t realize I needed to do it under “cloud templates.” Thanks!
Edward: That explains why things changed! I installed the Yoast plugin not too long ago and you were right that the author archives were disabled. I’ve changed that now. Thanks so much!
Daniel
Hi –
That does not work. I’m trying to insert a shortcode from Toolset. The code works great in the existing widget, but when added via the method above it does not display
Any known issues with interaction between Toolset and your new cloud templates?
For reference, this is the tag I’m using [wpv-view name=”post-page-tease”]
So I’ve set up custom category templates so that I can control the order in which our posts appear on them.
I’ve done this successfully twice with the results visible here:
https://www.computertalk.com/category/2018-issues/september-october-2018/
and here:
https://www.computertalk.com/category/2018-issues/november-december-2018/
and I thought I’d done the same for this category:
https://www.computertalk.com/category/2019-issues/january-february-2019/
It works as a preview, but when I navigate to the live URL I get a blank white page without any of the template code when I inspect the source.
What am I doing wrong?
Hi TagDiv Team!
Today I added another list menu to my mega menu. It shows up when loading the webpage but when I try to edit any page that loads that menu I get a strange error “Error at zones: 5(models) : 6(dom). The model does not match the content” (have a look at the images below). I circled the menu I added which causes the problem. I tried rebuilding the mega menu, removing the header from the template, renaming the menu in wordpress – but none of these did work and the error persists. Do you know what might cause that problem?
Thanks for your help,
Andreas


Hello,
I have some questions regarding page templates.
1. Is there a blank page template that I can use? So I can just insert my needed Code in there
2. Is there a way to insert php-code into a page? I tried with normal editor but that didn’t work.
Thank you for your answer in advance!
Hi,
I check your website and you do not have any posts and any page for authors, if you want you can import from tagDiv Cloud Library some pages and templates ->https://www.screencast.com/t/kfqH26MsS you can set the templates in theme panel -> https://www.screencast.com/t/uyqvhJtFQH
Thank you for your understanding!
Alright but can you tell me what I am doing wrong then with my page ? Because I used a page template with a h1 (like recommended) but I still have the h1 in the logo… I don’t understand what is wrong about my page…
I don’t need the h1 in the logo.. just in the content of my page.
Thanks a lot
Hi Calin,
Thanks for coming back to me. Unfortunately I still need assistance.
1) Please review the button in the header here: https://wnihp.com.au/.
2) Are you adding the margin after the header or on the pages/post templates? I think it’s completely unreasonable that I should have to add margin on all page or post templates. And I don’t seem to be able to add it to the header without just making the header deeper. Can you please review the same site as above and advise.
If you require screen shots and diagrams, please advise where to send them.
Please – this site is live and I need to resolve this in your current shift.
Thanks kindly.
Lisa
Hi,
Please try this custom css
-> https://www.screencast.com/t/i8dvX8wwFt
.td-next-prev-wrap a:hover, .td-load-more-wrap a:hover, .td-post-small-box a:hover, .page-nav .current, .page-nav:first-child > div, .td_category_template_8 .td-category-header .td-category a.td-current-sub-category, .td_category_template_4 .td-category-siblings .td-category a:hover, #bbpress-forums .bbp-pagination .current, .post .td_quote_box, .page .td_quote_box, a.vc_btn-black:hover, .td_block_template_5 .td-block-title > *, .td_outlined_btn {
background-color: lightgray;
}
Also feel free to change the color from light-gray.
Hope this will help you!
Thanks.