- 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 am creating a webpage using Newspaper Theme and I am trying to add a specific element – for example Big Grid 8 – beneath the header but upon the content of a subpage. While I can do it using TD Composer, I can’t figure out how to make it to be added to each subpage like for example blog posts without manual adding it in TD Composer.
Is there any way to do it without modifying the template’s code?
@stemalo this is for posts as @Simion put it:
The subtitle can be positioned anywhere in the single post page. Drag and drop it in the location that you want
– https://www.screencast.com/t/BQWfdagWzlZl
That is easily done with the cloud library plugin and tagDiv composer, post template can be design in many ways
– https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
More beautiful templates will be added in coming updates, for posts as well.
Thanks
Hello Guys,
I have a following problem with Newspaper theme v.9. After updating the cart, it duplicates. The problem doesn’t appear when Cart page uses “Pagebuilder + Empty page” template, but then I don’t have menus and footers. Also, there is no problem after disabling TagDiv composer.
See attached image of the problem:

https://www.dropbox.com/s/uw7jh1ycyaiocxu/chrome_2018-08-12_19-02-32.png?dl=0
Hello!
I want to put a horizontal adsense banner under the menu (Between the menu and the content).
I can go to: Theme Panel-> Post Settings Default Post template and I choose Style 12 or 13 but I want the structure as default and also, in all the website (categories, main page, posts …)
How can I put advertising under the menu on the all site?
Thank you.
this error message is showing in my blog post.
(/set the template id, used to get the template specific settings – this was the old home.php template $template_id = ‘home’; //prepare the loop variables global $loop_module_id, $loop_sidebar_position; $loop_module_id = td_util::get_option(‘tds_’ . $template_id . ‘_page_layout’, 15); //module 1 is default $loop_sidebar_position = td_util::get_option(‘tds_’ . $template_id . ‘_sidebar_pos’); //sidebar right is default (empty) // sidebar position used to align the breadcrumb on sidebar left + sidebar first on mobile issue $td_sidebar_position = ”; if($loop_sidebar_position == ‘sidebar_left’) { $td_sidebar_position = ‘td-sidebar-left’; } ?>)
What i do.
Hi… I currently used Newspaper 9 dan Tagdiv Cloud library,
1). I use single post template 14 for my post view. But, some post with Smart list not work (it’s look like usual article) and More Article Box disapper after changing my template.
2). I also use Review Template 3, but lost my rich snippet on Google page. Before I use article template, my review rich snippet displayed no Google search, but not today after changing to Review template 3.
It’s looks like post template from Tagdiv Cloud not work well with usual settings on theme panel.
Thanks
SOLUTION: Puzzled solved.
The issue was TD Composer. Once that is enabled, it prevents the normal assigning of templates and sidebars to individual pages. The pages that already had the customised sidebar were done before I installed TD Composer.
I temporarily disable TD Composer (which caused my home page to go kaput) assigned the template and sidebar I wanted and then activated TD Composer again.
Now this worked okay because it is in development, but on a live site, this just may not be possible. Do you have a solution?
Thanks
Terry
I managed to paint myself into a corner and I don’t know how I got there 🙁
I have created a number of pages which have a Navigation sidebar. I can’t figure out how I got that Navigation sidebar to display.
When I created the pages, I used the Default Template which does not allow me to select a sidebar. I also did not use TD Composer. I just typed in the content.
It’s a really odd question … but do you know how I managed to get the sidebar on these pages with the Default Template?
I updated my theme a few moments ago , and my header displayed the following errors
Errors in header:
wp_booster error:
td_api_base::mark_used_on_page : a component with the ID: tdm_top_bar_template_1 is not set.
/home/content/p3pnexwpnas17_data02/44/41912344/html/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp_booster error:
td_api_base::get_key : a component with the ID: tdm_top_bar_template_1 Key: file is not set.
/home/content/p3pnexwpnas17_data02/44/41912344/html/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
The path of the template id: tdm_top_bar_template_1 not found.
/home/content/p3pnexwpnas17_data02/44/41912344/html/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
as well my social media icons broke displaying the error
[td_block_social_counter style=”style5 td-social-boxed” facebook=”*******” twitter=”*******” instagram=”*******”]
Im not a fan of the new social media icons equipped in tagdiv , only the instagram , the facebook and instagram buttons are super tiny and offer no mirroring features like the instagram tagdiv , basically i’m looking for a uniform look , not these small icon options.
my website using newsmag template. Before I use newsmag template, it’s okey. But after I use newsmag template, it generate automatically 177 404 page not found. How do I get rid of it? FYI: it will generate automatically 404 page if the post contain a link. For example: I have a post contain a facebook link, so it will generate http://www.mywebsite.com/title-of-article/www.facebook.com
What the fuck is this?
What i want to say is that i have the same Problem as dhvanesh. After clicking Cloud Templates in wp menu it opens a Page with an overview of the existing Templates but i can’t see a button or a Function to creat a new one or select a template from the cloud library. I updated the whole theme via ftp
-
This reply was modified 8 years by
printerio.
Hi Simion,
I updated to version 9.0 with no problems, however 9.0.1 has caused widespread errors with all pages and posts created on tagDiv composer (pages) and cloud templates (posts).
stuart
Hi,
What exactly are you editing, a page or a cloud template? Does that happen only for that page/template, or for others?
Let us know more details if possible, for a better understanding.
Thanks
Hi,
– Flex blocks are available only with the tagDiv composer. Through this composer and cloud library plugin, post templates can be created from scratch or predefined templates can be imported (these can be modified as well).
– Without the tagDiv composer and cloud library plugin, only the default predefined post templates can be used.
– Standard HTML tables should display properly in the post or page content. I believe there are also plugins which can be used to create tables, maybe test a few plugins as well.
– Maps can be embedded, here is a guide (there are more online)
– https://www.wpbeginner.com/wp-tutorials/how-to-add-google-maps-in-wordpress/
– For the moment there are no table or map elements provided by the theme. Who knows, maybe at some point there will be.
Thanks
Hi,
Some post templates display the caption if the featured image has one. But for a featured video a caption cannot be set.
There is also a post subtitle field, which will appear in the post page
– https://www.screencast.com/t/2XK5ml8O
– https://www.screencast.com/t/5xoMBUZZMa7y
Other than that there would be no option I can think of.
Hello,
Sorry but the new cloud library templates were not tested in a multi-site environment
Please try the cloud template in a non multi-site and see if you still get the errors mentioned.
it could simply be a plugin conflict as I see a mention of a plugin called wp-explorer that could be providing the error.
please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Thank you!
Hi
i have the follow error on my page
what can i do?
wp_booster error:
td_api_base::mark_used_on_page : a component with the ID: tdm_sub_footer_template_1 is not set.
/var/www/vhosts/k-u-s.soccer/httpdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
Display backtrace
wp_booster error:
td_api_base::get_key : a component with the ID: tdm_sub_footer_template_1 Key: file is not set.
/var/www/vhosts/k-u-s.soccer/httpdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
Display backtrace
wp_booster error:
The path of the template id: tdm_sub_footer_template_1 not found.
/var/www/vhosts/k-u-s.soccer/httpdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
Display backtrace
After updating thema to 9.0 with error shown below.
www.https://silvaniopescaesportiva.com.br
wp_booster error:
td_api_base::mark_used_on_page : a component with the ID: tdm_sub_footer_template_1 is not set.
/home/u710106247/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
Display backtrace
The problem is that style.css include style for all modules and blocks even if I use only one block type. The file style.css is 1.1MB (900K minified): very big! Is possible to dynamically generate the css only for the used block or template? The theme ionMag have additional block and modules in external plugin and for this reason the style.css file is only 450K (340KB minified). In newspaper theme the file td_config.php is 900KB and takes 0.2 seconds to execute (on my VPS). My question: is possible to make the theme “modular” so I can decide which modules or blocks to enable in order to reduce the size of every page of the site?
Alternatively, it would be sufficient to have a minimal theme with only one block/template/module type and add other type, if necessary, in the child theme with the wp_booster API.
Is possible to have a “minimal” version of the newspaper theme?
Thank in advance.
Excuse me for my bad English.
Those settings are for the post titles in the post page
– https://www.screencast.com/t/DCvlQ6NvPcDQ
For example in a post that uses post template 3 the font settings for the post title are these
– https://www.screencast.com/t/BUzNxp9OUMwQ
The modules have different settings as I mentioned above. Sorry for the unintended confusion. Let me know if you have more questions.
Hi,
I see now what you mean. The sidebar setting in the theme panel will work properly on bbpress pages, seems buddypress also shows the default sidebar. But to change it and it’s position there are no specific settings.
I also made some tests with pages created with the composer and buddypress shortcodes, then I set those pages as buddypress pages
– https://www.screencast.com/t/PxdSEXPjw
– https://buddydev.com/docs/buddypress-shortcodes/buddypress-members-list-shortcode/
The shortcodes work as soon as the custom page is set in the buddypress settings, but the sidebar position is still on the right no matter how I position it in the composer
– https://www.screencast.com/t/G9AgGcIBD
– https://www.screencast.com/t/FB4qjz5pSl4
Some CSS might work in that case, to make all buddypress sidebars stay to the left
– https://www.screencast.com/t/D9DvH0CmghhB
.buddypress .td-pb-span8.td-main-content {
float:right;
}
Since buddypress pages will show the default sidebar, you could set a different custom sidebar for bbpress
– https://www.screencast.com/t/auAQzqdx
So buddypress pages will show the default sidebar (no settings to change it), and bbpress will show the sidebar set in the theme panel.
I don’t exactly know why all of this happens. Specifically for buddypress there are no theme settings, the template settings are created for bbpress. I will make a note of this and pass it along. Sorry for the inconvenience.
Thanks
Hello ianternet,
I’m sorry to hear from your that our Cloud Library is useless for you, sorry! Please notice that Cloud Template is more powerful which allows you to customize your website using the TD Composer (for category pages, post pages, author template, etc) Please check here -> https://forum.tagdiv.com/tagdiv-composer-tutorial/
Regarding on sharing button, notice that you should manually add them by yourself because you will create the template -> https://www.screencast.com/t/ODQRxtxbd and the same for Ads -> https://www.screencast.com/t/rtcf22ZqsXF
Please check the following useful guide from here -> https://forum.tagdiv.com/tagdiv-cloud-library-plugin/ for more details about this plugin.
Thanks for your understanding!
Ok. Maybe you misunderstood my question.
If i.e. this post (https://demo.tagdiv.com/newspaper/td-post-2015-awards-all-of-the-best-and-worst-moments-from-the-show/) is linked to from a block on the front page – then the picture that will be loaded on the fornt page is huge (1920 x 1269) while only a small image 360 x 220 is necessary.
This causes issue with speed and performance.
So how can we load a smaller image in the block-display on the front page – and still keep the larger image as the background in the post template itself?
Best wishes
Lars
Hi there,
I will try to explain myselft correctly.
The option you mentioned on “template settings” on newspaper settings is for bbpress themplates (the field name mentions bbpress only) as you can see on your image.
I was trying to ask you if there is a way we can set up template layouts for budypress groups page. I mean, using the sidebar instead of a full width layout for example.
We did some tests and found out that the “template settings” that is being used on budypress groups is the “page template”. If we change that template layout it will change budypress groups page but also every page on the website since we are changing “page template”.
Isn’t there an option to change budypress template only? What we want is to set up a left sidebar for budypress groups page only.
many thanks!
OK,
You want to change the specific template, not the general loop.php file. Here is an example for the pages using the pagebuilder+ latest articles
https://www.screencast.com/t/GnN0dpMFIO
You have to use a do_shortcodes function.
There is a case for each sidebar position so you have to place the code inside the main content container for the case you use or each of the cases if needed.
Result: https://www.screencast.com/t/kUKxHEbebnQ
Thank you!