- 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,
1. Go on that page and scrool down to Page Template Settings in General and set on no sidebar in Sidebar position like this ( https://www.screencast.com/t/pXSGH8FbVpB );
2. You can add this plugin for justify text, or you can change the view to text and add manually the style justify like this https://www.screencast.com/t/ts0qR9tu
3. In order to change the number of post from your homepage please go in Settings > Reading, set a static page and change the number for Blog pages show at most ( https://www.screencast.com/t/7flggvua ).
Thank you.
Hi,
You could design category templates with the tagDiv composer and cloud library plugin, place different ads in each of them (page content)
– https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
If you want to display different ads in the header itself, it will require some modifications
– https://forum.tagdiv.com/topic/custom-ads-to-header-ads-section/
Or you could use a plugin such as Adrotate, I believe this has settings for something like that. More about it here
– http://www.wpbeginner.com/plugins/how-to-manage-ads-in-wordpress-with-adrotate-plugin/
– https://ajdg.solutions/manuals/adrotate-manuals/
Thanks
Hello angelcosta,
Please notice that the sidebar section of bbpress comes from our theme and has a fixed width and we do not recommend to increase it because you can easily break the theme layout. All the sidebar settings for bbpress can be managed from here -> https://www.screencast.com/t/jrbtRacW Also, if you want to make some changes over the bbpress template, you should edit the bbpress.php core file from here -> https://www.screencast.com/t/fBwIrDZRA0T Regarding on breadcrumbs, I do not exactly understand your request. This section is automatically displayed at the bbpress page, as you can see here -> https://www.screencast.com/t/gsFqS1mVOCR6
Thanks for your understanding!
Hi.
After I updated theme to version 9 I cant use Jetpack (or NextScripts: Social Networks Auto-Poster) plugin. I get error 500 on page, or some content on page is missing.
I tried to disable all plugings, tried to switch to default template and back again and so on.
Help please.
Am I understanding this correctly that the cloud library of templates, I can deploy any type of page template to my theme…and basically “mix and match” page elements from one theme to another?
for example: I like the footer of “Say What” but I like the front page of “Raw and Wild”?
(of course I know I could just build these with TD composer from scratch, but aint nobody got time for that).
I am migrating a big website from another theme to Newspaper. On the other theme we used the Video format because we had Video podcasts that were hosted on Youku and Youtube and then embedded in each Post, so the format of that other Theme worked well for what we needed to do. So when we moved over, all looks good except the Featured Image at the top is missing.
Most importantly, we like the video icon that is placed on the featured image — it works well on all the archive pages, but only on the Single does it not appear and the Featured image also does not appear.
I’m using the Default post template so that corresponds to the loop-single.php so the code below appears to be responsible for displaying the featured image. But It doesn’t appear to reference the Post Format type?
<?php
// override the default featured image by the templates (single.php and home.php/index.php - blog loop)
if (!empty(td_global::$load_featured_img_from_template)) {
echo $td_mod_single->get_image(td_global::$load_featured_img_from_template);
} else {
echo $td_mod_single->get_image('td_696x0');
}
?>
Yes this file exist in main theme folder. Also there is a folder with the same name.
Code below in the file ; please copy the code and check line 61
<?php
/* —————————————————————————-
the page template
*/
td_global::$current_template = ‘woocommerce’;
get_header();
// test fork radu test 1
//set the template id, used to get the template specific settings
$template_id = ‘woo’;
$loop_sidebar_position = td_util::get_option(‘tds_’ . $template_id . ‘_sidebar_pos’); //sidebar right is default (empty)
//read the custom single post settings – this setting overids all of them
$td_page = get_post_meta($post->ID, ‘td_page’, true);
if (!empty($td_page[‘td_sidebar_position’])) {
$loop_sidebar_position = $td_page[‘td_sidebar_position’];
}
switch ($loop_sidebar_position) {
case ‘sidebar_left’:
echo td_page_generator::wrap_start();
?>
<div class=”span4 column_container” role=”complementary” itemscope=”itemscope” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/WPSideBar”>
<?php get_sidebar(); ?>
</div>
<div class=”span8 column_container td-no-pagination” role=”main” itemscope=”itemscope” itemprop=”mainContentOfPage” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/CreativeWork”>
<?php
woocommerce_breadcrumb();
woocommerce_content();
?>
</div>
<?php
echo td_page_generator::wrap_end();
break;
case ‘no_sidebar’:
echo td_page_generator::wrap_start();
?>
<div class=”span12 column_container td-no-pagination” role=”main” itemscope=”itemscope” itemprop=”mainContentOfPage” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/CreativeWork”>
<?php
woocommerce_breadcrumb();
woocommerce_content();
?>
</div>
<?php
echo td_page_generator::wrap_end();
break;
default:
echo td_page_generator::wrap_start();
?>
<div class=”span8 column_container td-no-pagination” role=”main” itemscope=”itemscope” itemprop=”mainContentOfPage” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/CreativeWork”>
<?php
woocommerce_breadcrumb();
woocommerce_content();
?>
</div>
<div class=”span4 column_container” role=”complementary” itemscope=”itemscope” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/WPSideBar”>
<?php get_sidebar(); ?>
</div>
<?php
echo td_page_generator::wrap_end();
break;
}
get_footer();
?>
Well the title says it all : we like very much your cloud template add on to redesign pages and post templates. Please add the Facebook like button and last modified date. Many thanks
Thanks for your response! I followed your recommendation and now I use cloud category templates. That works fine but there are some small issues:
(1) Breadcrumbs: When I go to a category (or subcategory) page, I do not want the link in the breadcrumbs to be clicked. For example https://domain.com/category1 should show breadcrumbs of startpage and category1, but only the startpage should contain a link.
(2) I edited the cloud category templates with a lot of html content (similar to a long post or page). For each category of my website, I have created a unique cloud category template. The category description, however, is completely empty. That has no negative impact on the seo, right? Because as a result the category pages the visitor sees are full of content.
(3) I don’t know if that’s a Newsletter issue or if I have to contact the support of the plugin… I use a pricing table plugin which works great on posts, pages and cloud category templates. But when I watch the category page that I linked to the cloud category template, the table is scattered all over the page.
Hope you can help me.
Regards
Florian
Hi Simion,
Thank you for your extensive reply. About WP Discuz, it should be fairly easy to integrate as it works perfectly with the default templates that come with the theme.
I have one other question. I’m using the Font Awesome 4 Menus plugin as described in your manuals. It works great at the homepage and at the category pages, but one icon is (in this case cutlery for the food menu item) doesn’t work at a single post page:
https://www.retecool.com/vretecool-babi-ketjap-met-bami-goreng-van-de-aldi/
While it does work at the homepage and category page. Any idea?
Cheers,
Hubert
wp_booster error:
td_api_base::mark_used_on_page : a component with the ID: tdm_sub_footer_template_1 is not set.
/home/twcsthao/public_html/twchannels.com/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.
/home/twcsthao/public_html/twchannels.com/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.
/home/twcsthao/public_html/twchannels.com/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
Display backtrace
Hi,
1/2 There are font settings for post page elements, in the theme panel
– https://www.screencast.com/t/qMJrx1zs
These settings are general, once you customize them there all your existing and future posts will use them.
3. If you should use cloud post templates and customize the font settings there, these will override the settings in the theme panel.
You can customize the fonts in the composer, for the elements you want
– https://www.screencast.com/t/h6lJkQQrfoys
More about the cloud library plugin here
– https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
This plugin will allow you to design your own post templates, there are also many templates designed by us which can be imported (and modified if needed).
Let us know if you have more questions.
Thanks
Hi,
In order to do that please check witch category template you have set ( https://www.screencast.com/t/axN9zawmfpd ), in my case is category template 3, you need to go in wp-content\themes\Newspaper\include\category_templates and select from there the category you have set ( be notice that you can have individual category template set on some category ) , once you get there, on the line with :
<h1 class=”entry-title td-page-title”><?php echo parent::get_title(); ?></h1> insert your word (from file: https://www.screencast.com/t/KEB4pUxmGw from wp dashboard editor https://www.screencast.com/t/cajbeA4j )
See results: https://www.screencast.com/t/edEd1NsPTd
If you are using a category template from cloud template, then you need to edit the template from plugins cloud library.
Thanks.
Hello,
I am trying to add custom single post template, how can I add it to one of the defined styles, it’s not showing up for me to choose from?
https://i.postimg.cc/cJT2JbVN/Screen_Shot_2018-10-03_at_8.13.55_AM.png
https://i.postimg.cc/ZRRgvLSv/Screen_Shot_2018-10-03_at_8.16.59_AM.png
This is the page of instructions that I’ve followed: https://forum.tagdiv.com/custom-post-type-support/
Hi,
Category grid is specially made for category template ( you can use cloud template import a category template and there you’ll have category grid , you can read more about cloud templates here); in page those category grid is similar whit big grid ( https://www.screencast.com/t/7sd899cE )
Thanks.
I would like to be able to control the view of the article in the category display but I can’t find in Tag Div Composer the Category Grid 1? I found this as example in the template but can’t find it when trying to replicate the page creation myself in the modules available.
I would need to have the control on the element on the page like title, image size, author etc..
Thank you
Hi,
Only posts can have reviews, posts with reviews will appear like this in modules
– https://www.screencast.com/t/CWvaIOAC2
Post templates can be created just like pages now however, with the cloud library plugin and the tagDiv composer
– https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
All the review implementation (including structured data) is created only for posts, so there would be no way of displaying actual reviews in a page in the theme.
Sorry for any inconvenience.
Thanks
Hi,
You fine the author templates in Newspaper> Theme panel > Template settings > Author template; but if I understand correctly you’ll like to make some changes in author template page, to do that I recommend you to use cloud template, there you’ll find what you need, and you can edit it, or create a new template; to do that please activate tagDiv Cloud Library, see here our documentation about it: https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
Thank you.
Hi to all the team and congratulations for your themes!
I’m developing in local server and i’m trying to import a template (Block 39-Video-Content) to a specific portion of a page but the process freezes to “Installing – Please Wait”.
I want the template to be imported in my home page in the last raw with format 2/3+1/3.
Could you please help?
Pericles
Hello,
Unfortunetly this is not CF issue but our server cache cant work with the plugin.
Is there any other way to change homepage template? We dont like how theme looks in default responsive template but we like desktop template.
Thanks
Hi
I use Newspaper v9.0.1 for a regional newspaper, the template is wonderful and I am very happy to use it.
I have a problem with the new posts that are updated during the day and the homepage, both in the desktop version and the mobile version. If the user is a regular visitor and he wants to see the new post of today, the homepage shows yesterday’s post, the user has to refresh the page (F5) to see the new post, this is not normal.
In the mobile version the same issue happens.
This is an image capture when I visited today from my computer and my cell phone website https://www.eldiariodeguayana.com.ve
https://snag.gy/PxLToZ.jpg
https://snag.gy/K15kzl.jpg
It does not show the new post without refreshing the page.
Several users complain about this issue
If I open a new incognito window in my browser from my computer or mobile and visit https://www.eldiariodeguayana.com.ve, if I can see the new post without pressing F5
How can I solve this issue?
Thank you
Hello, In the tag template, I would like to display the most commented posts at the top. Currently, it shows the listing by the published date (DESC). However, I want to display the posts in the descending order starting with the most commented post first.
Please let me know how to achieve this?
Thanks.
Hello aaprofi,
You should create a custom template for Category pages where you can customize it as you wish. An example, you can use an Image Box and add through it a custom link which goes you to a subcategory you want. (just a suggestion). Please check the following documentation from here -> https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
Thanks for your understanding!
Hello mertensr,
Did you have tried to create your desired homepage using the Cloud Templates Library? Using this functionality, the theme allows you to use the TD Composer which gave you a lot of functionalities and elements which can be added to your template. Also, notice that the theme core files for post template can be found here -> https://www.screencast.com/t/XfiUVKkEuE78 and for the page, the template can be found here -> https://www.screencast.com/t/ZjlMlDjb6Gu
Thanks for the message!
Hey Catalin,
thanks for your reply. Im AWARE that these are 2 different things. And as i wrote its working for me. The only thing i want from you guys is a php code snipped which i can put into my new page-template to show the author box + item scope meta tags on the page w that template.
I dont care if its not pefect codewise or if i cant use your backand funktions on that particular page-template that i have copy+pasted from the post-template-7. it looks as i want it on the front end and google can flawlessly read it – enough for me.
What i dont want is to build or check other templates whith editior … it would just take me hours to get a result thats allready there in your post-template-7.
<?php
/* Template Name: Page+Mainimage */
locate_template('includes/wp_booster/td_single_template_vars.php', true);
get_header();
global $loop_sidebar_position, $td_sidebar_position, $post;
$td_mod_single = new td_module_single($post);
$td_post_featured_image = td_util::get_featured_image_src($post->ID, 'full');
if (!empty($td_post_featured_image)) {
td_js_buffer::add_to_footer(
'jQuery(window).ready(function() {' . "\r\n" .
'(function(){' . "\r\n" .
'var td_backstr_item = new tdBackstr.item();' . "\r\n" .
'td_backstr_item.wrapper_image_jquery_obj = jQuery( "#td-full-screen-header-image" );' . "\r\n" .
'td_backstr_item.image_jquery_obj = td_backstr_item.wrapper_image_jquery_obj.find( \'img:first\' );' . "\r\n" .
'tdBackstr.add_item( td_backstr_item );' . "\r\n" .
"jQuery('.td-read-down a').click(function(event){" . "\r\n" .
"event.preventDefault();" . "\r\n" .
"var header_wrap = jQuery( '.td-full-screen-header-image-wrap:first' )" . "\r\n" .
"if ( 1 === header_wrap.length ) {" . "\r\n" .
"tdUtil.scrollToPosition(header_wrap.height() + header_wrap.offset().top, 1200);" . "\r\n" .
"}" . "\r\n" .
"});" . "\r\n" .
'})();' . "\r\n" .
'});'
);
}
?>
<article id="post-<?php echo $td_mod_single->post->ID;?>" class="<?php echo join(' ', get_post_class('td-post-template-7'));?> td-container-wrap" <?php echo $td_mod_single->get_item_scope();?>>
<div class="td-full-screen-header-image-wrap">
<div class="td-container td-post-header">
<div class="td-crumb-container"><?php echo td_page_generator::get_single_breadcrumbs($td_mod_single->title); ?></div>
<div class="td-post-header-holder">
<div class="td-parallax-header">
<header class="td-post-title">
<?php echo $td_mod_single->get_category(); ?>
<?php echo $td_mod_single->get_title();?>
<?php if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) { ?>
<p class="td-post-sub-title"><?php echo $td_mod_single->td_post_theme_settings['td_subtitle']; ?></p>
<?php } ?>
<div class="td-module-meta-info">
<?php echo $td_mod_single->get_author();?>
<?php echo the_modified_date('j. F Y', '<div class="the-modified-date" itemprop="dateModified">Update: ','</div>'); ?>
<?php echo $td_mod_single->get_views();?>
<?php echo $td_mod_single->get_comments();?>
</div>
</header>
<div class="td-read-down"><i class="td-icon-read-down"></i></div>
</div>
</div>
</div>
<div id="td-full-screen-header-image" class="td-image-gradient-style7">
">
</div>
</div>
<div class="td-container">
<div class="td-pb-row">
<?php
//the default template
switch ($loop_sidebar_position) {
default:
?>
<div class="td-pb-span8 td-main-content" role="main">
<div class="td-ss-main-content">
<?php
locate_template('loop-single-7.php', true);
comments_template('', true);
?>
<footer>
<?php echo $td_mod_single->get_post_pagination();?>
<?php echo $td_mod_single->get_review();?>
<div class="td-post-source-tags">
<?php echo $td_mod_single->get_source_and_via();?>
<?php echo $td_mod_single->get_the_tags();?>
</div>
----------------------------------- this part does not get displayed :I ----------------------
<?php echo $td_mod_single->get_social_sharing_bottom();?>
<?php echo $td_mod_single->get_next_prev_posts();?>
<?php echo $td_mod_single->get_author_box();?>
<?php echo $td_mod_single->get_item_scope_meta();?>
----------------------------------- this part does not get displayed :I ----------------------
</footer>
</div>
</div>
<div class="td-pb-span4 td-main-sidebar" role="complementary">
<div class="td-ss-main-sidebar">
<?php get_sidebar(); ?>
</div>
</div>
<?php
break;
case 'sidebar_left':
?>
<div class="td-pb-span8 td-main-content <?php echo $td_sidebar_position; ?>-content" role="main">
<div class="td-ss-main-content">
<?php
locate_template('loop-single-7.php', true);
comments_template('', true);
?>
</div>
</div>
<div class="td-pb-span4 td-main-sidebar" role="complementary">
<div class="td-ss-main-sidebar">
<?php get_sidebar(); ?>
</div>
</div>
<?php
break;
case 'no_sidebar':
?>
<div class="td-pb-span12 td-main-content" role="main">
<div class="td-ss-main-content">
<?php
locate_template('loop-single-7.php', true);
comments_template('', true);
?>
</div>
</div>
<?php
break;
}
?>
</div> <!-- /.td-pb-row -->
</div> <!-- /.td-container -->
</article> <!-- /.post -->
<?php
get_footer();