- ApiPractical example – How to add a new Block and Module
- Apitd_api_block::delete
- Apitd_api_block::update_key
- Apitd_api_block::update
- Apitd_api_block::add
- ApiAPI – Blocks – Introduction
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
- Apitd_api_thumb::add
- ApiAPI – Thumbnail – Introduction
- Apitd_api_category_top_posts_style::update_key
- Apitd_api_category_top_posts_style::update
- Apitd_api_category_top_posts_style::add
- ApiAPI – Category top section style – Introduction
- Apitd_api_module::update_key
- Apitd_api_module::update
- Apitd_api_module::add
- ApiAPI – Modules – Introduction
- ApiUsing the Theme API in plugins
- ApiThe Theme API
Hi,
Let’s take an author for example. He creates a post and publish it on the website. The author chooses the categories and tags he wants the post to have. The post will appear in the category pages and tag pages accordingly. The author can’t create actual pages or choose where the post is displayed.
The website admin or editor (only ones with access to pages) will create pages and place blocks, grids etc. These pages can display whatever content possible with the tagDiv composer and the articles they choose.
All the capabilities of wordpress user roles are mentioned in the WordPress codex mentioned above.
The menu can be accessed by admin only, he can modify/add/remove the menus. Only the admin can access the theme panel as well.
The Lifestyle item in the demo menu is a mega-menu, that works only with categories, it will not display pages
– https://forum.tagdiv.com/mega-menu/
Pages can be displayed in drop-down menus, or added directly in the main menu.
The theme capabilities in the matter of taxonomies are limited, most options and elements will work only with categories and tags
– https://forum.tagdiv.com/custom-post-type-support/
The custom post types and taxonomies will not have the same settings and options as default posts and categories.
Hi,
Please see image, I want to use a section like this but not pull in a category, but be allowed to add a banner in each of these blocks or a video in one of the blocks as I want to swap them for a different banner offers or promo video in the layout shown in image, how is best to do this? Also I want to stretch it to the edge of the content area as I’ve done in the image using Photoshop as an example. Thank you for any help, really appreciate it 🙂
https://www.screencast.com/t/qvAneyUVm0ji
All the best, take care
Chris
Hello,
What elements are “all” and “featured”? I cannot see them on our official demo
Do you maybe mean the ajax filters on blocks? https://forum.tagdiv.com/block-settings-guide/
Thank you!
Hi,
The theme stylesheet should contain all the CSS necessary for all elements. Removing block code from the theme files will not affect the stylesheet.
Most users minify the stylesheet for a smaller size, that would be the only proper way of reducing it.
Newspaper although similar in some way to the discontinued ionmag theme, does not share the same plugin system. All the elements are included by default, ionmag had a free version and a premium version. The difference was the premium plugins. Newspaper includes them all in one package.
In the end it depends on what pages contain, they can have multiple grids and blocks and be heavy on resources, or contain fewer elements.
So the same functionality by plugins as with ionmag would not be possible with Newspaper.
Check the forum, there are many speed optimization topics you can follow, provided by theme users.
Thanks
And thanks to the team for introducing the post loop to the homepage. Just what I had been waiting for. But if I may ask, is there a way where some page elements can appear on page one but be hidden on page 2 onwards? Or such a thing does not even exist? I put a flex bloc 5 and a post loop below it. But the flex block shows on the other pages of the loop.
My homepage does not display any blocks or content, just a header and a blank page, all customizations from theme panel does not appear on homepage, either.
Please tell us what to do. Our site name is: https://baohiemdoisong.vn
Hello Catalin,
I was looking here in the forum on this subject since I have had problems of ouverload of CPU with the Search Live.
I tried to apply the suggested configuration in tg_ajax.php, exactly as explained, but after that it break the Next Prev ajax on the Blocks pagnation and the ajax views counter for cached pages, as reported by our colleague ieanea above.
Is there a setting that disables ajax only for Live Search?
Thank you!
Hello,
I have added the following code to my custom CSS to get a blog grid to flip horizontally:
.flipgrid td_block_big_grid_1 .td-big-grid-post{ float:right!important; }
My site is: http://icelandin8days.com.
I set flipgrid as the extra class in that block.
It is currently not working properly. Please advise. Thank you!
Thanks a lot for the quick reply.
That was pretty much all clear. What I don’t see is, that a user can choose a specific page to submit the content to.
The pages shall be used to list the content of a destination.
Then the user as well chooses a category (sights, food, adventure). That’s easy, as it’s in the “add posts” widget.
But where can the user decide the main menu section?
It would make no sense to built everything with “categories”, as that would mean a huge mess of finding the right continent, country (worldwide) & then somewhere in between a topic (food, sights…).
Let’s take the News Paper demo as an example: https://demo.tagdiv.com/newspaper/
Let’s say “Lifestyle” is a page & the “Travel” & “Recipes” in the sub-menu as well. How can the user choose to submit content for the one or other?
Each block on the frontpage should show the continents & in the block sub-menu should be shown the different topics.
_____
I was thinking of working with tags, but it’s not working either.
The topics should be fixed. So users should not be able to add new ones. And when adding/choosing the topics, the user should have right away the complete overview of those.
Some topics might also got sub-topics like:
See/Do
– activities
– sights
– museums
Food
– street food
– restaurants
That’s why “categories” is useful for the topics.
Is it possible to have two separate widgets with categories? So that one would be for countries & the other for categories?
Or is it possible to use taxonomy with the News Paper theme to built this?
-
This reply was modified 8 years by
TravelDudes.
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.
I’d like to remove the “more from author” in the related articles block but cannot see an option for that – is it possible?
Thanks
So that is detected in pages where the thumbnail of the featured image should appear?
It is true that the post is linked to the thumbnail that represents it in blocks. In blocks only thumbnails are displayed
– https://www.screencast.com/t/nf3gwk9DwNId
That is not the full image resized, it is an actual thumbnail of the image created by the theme automatically. Inspect an image in a block on your website, they should be thumbnails.
If they are not, then please regenerate the thumbnails
– https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/
The full image will not be displayed in block modules.
Hi,
I don’t quite understand what the problem is. Blocks and grids will display the posts according to the filtering and sorting you set for each of them
– https://forum.tagdiv.com/block-settings-guide/
Posts can have only one author, users that have author roles can create and publish posts in your website. What do you mean by posts not being yours?
Do you have any caching? Clear the cache and also force refresh the page (Ctrl+Shift+R).
Hi,
Users can interact with the website according to their role capabilities
– https://codex.wordpress.org/Roles_and_Capabilities
Each user has it’s predefined capabilities, for example authors can log into the website and create posts, also assign the categories and tags needed for the post. Pages can be created by editor level users and above.
The posts will be displayed in blocks, grids etc. Each page can contain the post displaying elements that you want, filtered and sorted as you want
– https://forum.tagdiv.com/tagdiv-composer-tutorial/
– https://forum.tagdiv.com/block-settings-guide/
You can create as many pages as needed, each displaying different content as needed.
A category hierarchy can be created like you mention, with category parents and sub-categories. Categories will have their own pages as soon as created, they will display posts only from the respective category.
In the menus you can place categories, pages, posts etc
– https://www.screencast.com/t/JQvUSPoRfXY
If I missed or misunderstood something please let me know.
Thanks
Hi,
Where exactly does it say that? That looks like a simple block. Blocks are made of modules
– https://forum.tagdiv.com/theme-blocks-modules/
Each module has it’s own settings in the theme panel
– https://www.screencast.com/t/0s1qdLU7
Also by editing the page with the tagDiv composer, each block can be customized separately in terms of font (“Style” tab of the block settings)
– https://www.screencast.com/t/EzfgOKbKbJ
I believe all font aspects of a block can be customized in the composer.
Thanks
On Edge the title of the block Vous aimerez peut-être aussi… have a grey black background.
It will be logical that they look like the blocks of the Produits apparentés elements.
And on mouse hover, all become dark so it is not readable.

On Chrome

Chrome hover

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
Hello brucetm,
Notice that the demo overwrite some codes and that’s why the Block Header 1 is different than the default version of it. You should edit the theme core files, demo folder and make the following change like this -> https://www.screencast.com/t/amcHQWfu -> https://www.screencast.com/t/oZlZT8n0
Hope this helps!
Thanks for your understanding!
The issue: Is there a way that a user can choose a specific „page“ to add content to?
More specific:
I want to relaunch my (Drupal) travel website with the NewsPaper theme.
So the content is always built up on specific country pages and a community is submitting the content.
The idea is to use the main menu, probably with “pages”, to choose a destination (Europe, Spain).
Then each article should have to choose one or more topics (sights, food, activities) which would be shown through different blocks. My idea was to use the Categories for that.
For example, there is an article about “Top Sights in Barcelona”.
Europe (page) – Main menu
– Spain (page) – Main menu / child menu beneath Europe
– – Barcelona (page) – Main menu / child menu beneath Spain
– – – Article “Top Sights in Barcelona” (post) with the category (sights)
As Travel Dudes is a community, it’s important that submitting content is user friendly & very easy.
The user should be able to choose the destination (continent & country), but also in a different widget/box the topics (sights, activities, adventure) when they submit a post.
So there should be two different fields to submit that info:
– choose destination (continent / country)
– choose topic (sights, food…)
I can only see the categories widget. Is there a way that a user can choose a specific „page“ to add content to?
Fixed! Thank you 🙂
Which thumbs do you recommend for the Flex Block?
Greets,
Yannick
Hello!
I have after the upgrade to 9 version began to receive errors:
1. Error display the video that is inserted into the block- Column text .
2. Error codes in the – HTML block do not work
before the update everything worked fine
Hello Yannickthepostie,
I saw that you have some blocks which have blurry images inside the thumbs. You should try using the Flex Block or Full-Width Grids if you want a larger layout, clear all the caches and check the results.
Thanks for your understanding!
Hi,
That file is not supported to be modified in a child theme
– https://forum.tagdiv.com/the-child-theme-support-tutorial/
It is a critical file of the theme. Best you do not modify it in any way (or make a backup if you do), or there could be problems. Try to optimize the website by other means, instead of removing code from the theme files.
Why exactly do you want to delete the blocks and modules files? You can use any block type you want in pages, only those will be loaded. If you want to optimize more, maybe try and use fewer block types with same modules
– https://forum.tagdiv.com/theme-blocks-modules/
Reduce the number of blocks with pagination as well.
Also check the theme requirementsr guide for a proper functionality
– https://forum.tagdiv.com/requirements-for-newspaper/
Thanks
Hi @Catalin,
thanks for your kind reply. I already did this. The Voice demo is up and running.
The layout looks fine. Have a look at my project: https://healthupyourlife.com.
Unfortunately, the content blocks (light box must read, past stories etc.) do not behave like the content on the demo homepage. Within your demo of “village voice” the blocks act according to the headline. On my homepage the content is randomized.
What do I have to do to replicate the behavior of the homepage of “village voice” on my page?
Best regards Phil
I like the look of Template 8 with the background picture.
But it’s far from ideal that it uses the featured (thumbnail) picture as the background picture.
As that picture need to be very large for the background it is not a good choice for a thumbnail picture to display in one of the blocks on the front page.
Many of those large pictures takes up space and cause some speed issues on my site.
Is there a solution to this? To use a much smaller image as the featured image – and still keep the layout of Template 8?
Best wishes
Lars