- 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
Glad you could sort things as you wanted. A different menu on mobile is possible, with the mobile theme, by default. Other than this, it would only be possible with theme file modifications.
I could try to give you a solution to load a different menu on mobile when the mobile theme is not activated, but it should be noted that the modifications will be lost after an update. Some of the theme files cannot be modified through a child theme.
The mobile theme is meant to be used if you want to display a lighter and different version of the website for mobile devices. Each page has to be created once for desktop, and once for mobile, through the mobile editor
– https://forum.tagdiv.com/the-mobile-theme/
It has predefined templates for category pages, posts etc regardless of what it’s set for desktop. Also it does not have many settings, at the moment.
Please let me know if I missed something.
Thanks
Hi,
Some footer templates come with predefined content, others are blank. The predefined content cannot be customized
– https://forum.tagdiv.com/footer-templates/
You can select an empty template and add the widgets you want, configured the way you want
– https://www.screencast.com/t/5Mu5tNpTkWL
Also a newly introduced feature is to place a page in the footer, instead of a template
– https://www.screencast.com/t/0ImWuvWN
Thanks
Hello,
In order to not have a h1 tag, you will have to use the page builder + page title template: https://forum.tagdiv.com/page-templates-2/ This way the h1 on the logo will no longer be present.
Thank you!
When I open a Add New Post page, there are no visual templates available – I keep seeing in tutorials there are general post settings on the bottom, but they are not showing on my post page. Please advise.
Hi,
1. That would be the padding top and bottom the theme ads for the page content
– https://www.screencast.com/t/TOWokeMYFOcI
You could remove that if needed, with a code like this
– https://www.screencast.com/t/Ivz6NFtO1jW
.td-main-page-wrap {
padding-top: 0;
}
.td-main-content-wrap {
padding-bottom: 0;
}
2. The social icons element will display the icons horizontally, one after the other
– https://www.screencast.com/t/hGiKcbN2
There are a few design styles available in the style tab, but not to align them differently.
5. The footer on this website is not a page, it is created custom. In the theme you can either use footer templates
– https://forum.tagdiv.com/footer-templates/
Or design and set a footer page containing any element you want, since this is possible now.
Thanks
After updating to Newspaper 8.6, my header menu is cut to half size. When I switch back to the old version, all is good again. I’m using header template 3. Please check my dev page here: Demo. Thanks!
Hello,
I made it this way, here is my code if someone needs it:
<?php
class td_category_template_1 extends td_category_template {
function render() {
?>
<!– subcategory –>
<div class=”td-category-header td-container-wrap”>
<div class=”td-container”>
<div class=”td-pb-row”>
<div class=”td-pb-span12″>
<div class=”td-crumb-container”><?php echo parent::get_breadcrumbs(); ?></div>
<h1 class=”entry-title td-page-title”><?php echo parent::get_title(); ?></h1>
<?php global $paged; ?>
<?php if ($paged == 0) echo parent::get_description(); ?>
</div>
</div>
<?php echo parent::get_pull_down(); ?>
</div>
</div>
<?php
}
}
That happens because the header is full width, it is displayed on top of the hamburger menu and logo – https://www.screencast.com/t/12PGmTQ9f
I could give you a code to reduce the menu width to a fixed value
– https://www.screencast.com/t/zwuUfDywJ
.page-template-page-pagebuilder-overlay .td-header-wrap {
width: 57%;
margin: auto;
}
But this solution may cause other problems, or responsive issues. Maybe you can move the hamburger menu and logo lower, so they are not covered by the menu. The menu has a height of 80px, if you could lower then below that that would be a more proper solution.
Hello Ryansmccain,
The best way, in this case, is to edit the theme core file according to your post templates used by you and with do_shortcode method you should add your desired text on the bottom of your articles. As a hint, if you are using the post template style 1, you should edit the loop-single-1.php and add the code to your desired text at the bottom of the page, like this -> https://www.screencast.com/t/jJz3psh7
For more information about how you should create your shortcode, please check the following topic from here -> https://forum.tagdiv.com/topic/box-custom-htlm/
Thanks for your understanding!
How do I disable showing the number of comments and the author name for post on my homepage? I’ve disabled them in the post settings within the template settings but they’re still showing up.
See here.. http://Interestinganswers.com
Hi,
I don’t quite understand what that the end result would be. Using it on a category page with category template 1 provides this result
– https://www.screencast.com/t/2cOKdWskkUhR
The code sets the width for the category header and description containers to 100%, it seems to work if that is what you want to do.
Thanks
Hello technobuckets,
I guess that you are using the Page Builder with Latest Articles. If you want to change it to another one you should do this from page settings, according to our documentation from here -> https://forum.tagdiv.com/newsmag-page-templates/
Thanks for the message!
Well, the official AMP plugin from Automattic (the people who make WordPress) works very well, and there is a ‘glue’ plugin for use to connect that to Yoast SEO. I’ve been using the AMP plugin since it launched couple of years back, with zero hassles. Latest update supports pages, if needed; and has separate page or post templates which can easily be edited.
Note AMP only works if you have enough traffic to warrant it and if the pages all validate in Chrome with the AMP plugin activated. It’s NOT a full-on replacement for a responsive or mobile framework — it’s an “additional” element which only works on supported devices and if Google “blesses” the posts to add to CDN, and then will be shown in SERPS with AMP icon – and also in your Google Site Manager account (or whatever they are calling it this year).
So, worth doing – but it’s not a be-all, end-all solution for mobile at this time — simply an additional option. Frankly a normal responsive site with fast mobile speed, https, and http/2 is also as important.
( I don’t work here; just long time TagDiv user, webdev dinosaur, and WP user sicne v1)
Theme has nothing to do with RSS feeds.
There is long standing documentation on the web to add a ‘function’ either via theme or plugin, to inject the featured image into the attachment based on featured image.
Also – note that if you have no featured image “inside” the post meta, there will be no image in the RSS feed.
You can easily view your RSS feed code in Chrome to “see” what is actually there. Feedburner does show images as long as the image is in the post meta and not “outside” the body — for example, some templates where the main image is in a background div, or outside the post meta — obviously is not in the post meta for the RSS feed.
It’s well known, but perhaps new to most, that you can simply create your own RSS feed by making a new post template and then publish that feed to syndicate (we do that here).
So, you might make customfeed.php as a page template, make empty page with that name, select the template; then you end up with mysite.xxx/customfeed/ as the feed.
By making a custom RSS feed, you can include the ‘large’ thumbnail for the featured image within the top of the post meta in the FEED template, so that there is always the image in the feed.
Some info
http://www.wpbeginner.com/wp-tutorials/how-to-create-custom-rss-feeds-in-wordpress/
I don’t work here — just some feedback. Theme doesn’t control the default WP RSS feeds — was the upshot; the RSS is part of WordPress, and simply pulls post meta and nothing else.
Hello!
In all category page template sidebar starts below category description. I want to display sidebar from top of page. In Newspaper 8 version I add below mentioned CSS code in theme panel to change it:
.td_category_template_1 .td-category-header, .td_category_template_1 .td-category-header .td-container, .td_category_template_1 .td-category-description {
width: 100%;
}
.td_category_template_1 .td-main-sidebar {
padding-top: 48px;
The code was working fine with version 8 but unfortunately it is not working after upgradation to version 8.6.
Please advise how can I do this?
Thanks,
With regards,
Osnak
Hello how do I make the video post page look like yours/this?
Also is there forum support with this template, would you recommend installing buddypress?
In order for the ratings to appear in the post page, the code provided by the plugin must be entered in the post template file
– https://forum.tagdiv.com/topic/plugin-wp-postratings/
Each post template has a corresponding file, check the screenshot provided in the topic.
Hi there,
On my homepage, down towards the middle section and the bottom, my articles are organized into the categories that came with my template which I don’t want on my website (science, fitness.) How do I remove these template categories?
Thank you,
Jeff
I was talking about the same problem in two posts in this forum, excuse me (titled “WPBakery Page Builder”).
I’m sure I was not using Visual composer or WPBakery for posts. This was only for homepage. Now I developed a new homepage working with TagDiv Visual Composer and this is now the homepage.
I disabled WPBakery Page Builder.
But this don’t fixed my problem.
My problem is with Newspaper default template for Posts, because the width of content text is fullwidth instead of the measure of the template.
I hope this is clearer and can help me.
I did find 2 ways to do this. I have over 50 people posting and they don’t always follow the instructions. Eliminating the wrong choices helps.
Change the /images/panel/single_templates/single_template_#.png to an image that says “Do not use”. Of course, someone will want to try it anyway.
I also commented out the code that calls the template onto the editing page in td_config.php under the single template list area.
Hi,
If you choose page builder + title, then the title will be displayed on top of the page. Use the default page template if you don’t want it to show.
The breadcrumbs can be removed in the theme panel if needed for all the website
– https://forum.tagdiv.com/breadcrumbs/
The breadcrumbs will not be displayed on the homepage, there is no need for that. They are generated here in each template
– https://www.screencast.com/t/PXqU9m23sk
Page builder with latest articles will always show the latest articles section in the bottom of the page. This can be removed by choosing a different page template.
The overlay menu page template will display the menu over the page content, like this
– https://www.screencast.com/t/Tiwv4a9NnH
The year could be displayed with this code
– https://www.accessc.com/articles/copyright-year-update.html
– https://www.screencast.com/t/xqlnRb0fM
– https://www.screencast.com/t/yNSvBKIhWdn
Try changing the colors in the theme panel
– https://www.screencast.com/t/s8Cj92MGRv
The demo has custom design, so if at the moment of creating it there was no theme panel option for that color, it was set with CSS
– https://www.screencast.com/t/38DQ0ZhPSEjG
Remove the design from the demo stylesheet and the theme panel option should apply.
Thanks
That should work properly, note that the shop page has to be configured before setting it as shop page. Create a new page for example, set the page template you want, and also the elements you want in it’s content. Then set it as shop page in the woocommerce settings.
Once set as shop page you cannot edit it with the composer again, or make any other changes to the page template.
Instead of the text with title you could use the title element, since there is no need for the actual text
– https://www.screencast.com/t/Og3IhjheMYVQ
Blocks can display products, nut products cannot be filtered by product category
– https://www.screencast.com/t/93xkDko1OE
Use shortcodes instead for better control – https://www.screencast.com/t/86kaVjDyP
Thanks
What is your recommendation for to use with posts?
The site has been working very well with WPBakery. Really I have only the homepage as page and all my posts are built with Default site post template Style 3.
I think I don’t use VC for posts.
The post I send in example is built with style 3:
http://chilecientifico.com/las-regiones-se-toman-congreso-futuro/
Maybe I have to rectify. The posts are built with Default site post template.
Is the influence of Visual Composer anyway important?
Please your help.
Hi,
The post template cannot be controlled through the featured category. The primary category setting will affect the elements mentioned in this guide
– https://forum.tagdiv.com/primary-category/
So this will affect the category tag of the post, article sidebar and background. If you want those posts to have no featured image in the post page, each post will have to be set to post template 5, or the featured image can be disabled in the theme panel generally
– https://www.screencast.com/t/14wO6S0Qr
Thanks
Hello,
If the category description is the one you are looking ro remove from different category pages, you will have to edit the category template files and wrap them in a condition to only show up on the main page: https://www.screencast.com/t/HevMlIvA
Thank you!