- 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,
I could give you a code solution to force the modules to display differently. But please note that this is not how the theme elements should be used. That slide is not the default big grid slide available in the theme.
Also note that all blocks, grids, slides etc are predefined, have preset design values. Altering these could break theme and cause them to not display properly.
In this case a code like this could produce the result you want
– https://www.screencast.com/t/vaoeadeM
@media (max-width: 767px) {
.td_block_big_grid_2 .td-small-thumb .td-module-thumb {
height: 200px!important;
}
.td-big-grid-slide {
height: 600px!important;
}}
Enter it in Theme panel->Custom CSS section.
Thanks
When using the smart lists 1-5 (which have no specific ad block defined in the theme panel) is there a options-panel way to include an adblock? Ideally, it would be the exact same (if not the same) block as the ones used for regular article.
For example; We’d like the “Above Article” adblock to be displayed above smart lists 1-5 which don’t seem to possess any native advertising such as the other smart list styles.
We’d love to know if this is an easy option.
I have an error
Not unique table/alias: ‘wp_postmeta’ with query
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) INNER JOIN wp_postmeta ON (wp_posts.ID = wp_postmeta.post_id) WHERE 1=1 AND (
wp_postmeta.meta_key = ‘post_views_count’
) AND wp_posts.post_type = ‘post’ AND ((wp_posts.post_status = ‘publish’)) GROUP BY wp_posts.ID ORDER BY wp_postmeta.meta_value+0 DESC LIMIT 0, 3 yêu cầu bởi require(‘E:\Sites\cth.edu.vn\wp-blog-header.php’), require_once(‘\Sites\cth.edu.vn\wp-includes\template-loader.php’), include(‘\Sites\cth.edu.vn\wp-content\themes\Newspaper\search.php’), get_footer, locate_template, load_template, require_once(‘\Sites\cth.edu.vn\wp-content\themes\Newspaper\footer.php’), td_api_footer_template::_helper_show_footer, load_template, require_once(‘\Sites\cth.edu.vn\wp-content\themes\Newspaper\parts\footer\td_footer_template_1.php’), td_block_7->render, td_block->render, td_data_source::get_wp_query, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
Help me resolve this error!!
Thank!
There is a method to modify the theme cropping if needed, like this
– https://forum.tagdiv.com/api-thumbnail-introduction/
– https://forum.tagdiv.com/td_api_thumbupdate/
Modify the thumbnails you wish and regenerate them after
– https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/
This will regenerate existent thumbnail, all further thumbnails will be created according to the modification.
Thanks
If you install a demo without content then only theme panel settings and custom design will be imported.
In this case you could use the homepage shortcodes the demo uses
– https://www.screencast.com/t/sPUDNCVa23
Enter that code in a new page and then configure the blocks and grids as you wish
– https://www.screencast.com/t/X5hOrh3Ly
– https://forum.tagdiv.com/tagdiv-composer-tutorial/
– https://forum.tagdiv.com/block-settings-guide/
Thanks
How do I tighten the gaps – way to much white space in between each post. Thank you. The page is https://infomeddnews.com
Hi,
This issue is on our list, it will be fixed in the next theme update. It is happening when the respective block is placed in one column only, like a sidebar. Sorry for this inconvenience.
As a quick fix in the meantime, you could modify the font size with a code like this
– https://www.screencast.com/t/zvPVuE0SqsM
.td_block_21.td-column-1 .entry-title {
font-size: 10px;
}
Thanks
Is there anyway I can change it in the functions.php file or something like that? Pictures need to be a central part of my site and this cropping is not really fitting. Other block’s don’t work in my design.
I did install the business demo but it didn’t create all the same blocks etc for the home page.
When you install a demo without the content should it create the blocks, rows and columns on the home page automatically?
Hi,
Unfortunately I have no idea how that plugin works, or why it is not working properly. The default behaviour is to create and publish posts, also to set a featured image or video for each post
– https://forum.tagdiv.com/featured-image-or-video/
Only then the theme will create the necessary thumbnails that will be displayed on blocks and modules
– https://forum.tagdiv.com/theme-thumbs/
I don’t know where exactly where you want to insert the embed tags, these can be used to embed content in the post for example
– https://codex.wordpress.org/Embeds
Thanks
Hello guys
your theme (newspaper) is awesome and I’m very happy I’ve purchased it. But I have a problem with the composer.
Usually I use qtranslateX for my sites and I’ve noticed that after activating qtranslate, the composer is not fully working anymore. I can’t save or delete a block.
so when i’m trying to drag a block into the red rectangle or clicking on the delete icon, nothing happens. even when I click on the X to close the composer, nothing happens.
the error in the console seems to be: “TypeError: e is undefined” in load-scripts.php:609:1538
now, i understand that the theme is compatible with WPML but I use qtranslate only for translating post titles and content (which works fine btw), so what i’d like is to get this error removed when qtranslate is enabled.
is this possible? can you guys do that?
thanks,
kind regards
Hi,
The author name and comment count displayed on blocks/modules can only be disabled for the whole website, in the theme panel
– https://www.screencast.com/t/n2wOMmHfGS
I see you are using a custom code to remove them, it works for the comments but the author name is not hidden because of a mistake in the code
– https://www.screencast.com/t/ar2SiyGwFTJ
– https://www.screencast.com/t/kn8A04iqJR
Thanks
Dear tagDiv,
I have just purchased the “Newspaper” theme and I have tried to install it via wordpress, as you guys have stated in the online instructions.
I received the following message: “Security Alert. The file you are uploading was rejected by the server. It probably contains viruses or trojans that can damage your website. Do not attempt to upload it again as your IP address may be blocked.”
I then tried the other method which was to upload the newspaper.zip file via FTP. I did so, but when I logged into my wordpress site again, it does not show up under themes therefore there isn’t any way for me to activate it.
Could you please assist?
Thank you.
Why cant we do that in the block/text settings?
This is the ad code Simion. It’s added to single.php file. So when I copy this CSS code in the theme panel, is it also gonna be saved and come back after an update?
Code<div class="adh">
<div class="wpb_raw_code wpb_content_element wpb_raw_html">
<div class="td-g-rec">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Ad boven titel -->
<ins class="adsbygoogle"
style="display:inline-block;width:320px;height:100px"
data-ad-client="ca-pub-6504940155773250"
data-ad-slot="9561713763"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
</div>
Hello eemskrant,
I have inspected your website and I saw that your hover to your block titles is white. If you want to change this effect, you should use the code below and place it in Theme panel -> Custom CSS area.
.td_module_wrap:hover .entry-title a{
color:black;
}
Thanks for the message!
Hello ujo91,
Try to edit the td_module.php core files like this -> http://www.screencast.com/t/b99NP2Mu for changing the H tags for modules/blocks. If is not what you mean, please provide more details and example of the problem so I will be able to provide a more accurate response.
Thanks.
Good Morning,
I want to reduce the size of the font in a block 21.
This block 21 is in the sidebar of the HP (https://i.imgur.com/k1AOtxK.png).
I had a look at this page https://forum.tagdiv.com/theme-blocks-modules/ where I see that block 21 = module 16
So I went into Theme panel > Theme fonts > Modules and blocks – article title
At the line Module 16, I change the size (tried 5 and also tried 15) but nothing changes on my block 21
Am I missing something…?
Hello,
I just updated the newspaper theme from an older version 7.4 to the latest one, I created a new folder for that with a different name (newspaper1) and uploaded the new theme there, then activated. All good expect when I checked the website on my mobile I got this error right below the main menu and blocks are not showing :
Fatal error: Call to undefined method vc_row::set_font_settings() in /home4/u5k5z9h5/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php on line 36
Desktop version works fine.
I tried to disactivate the tag div composer plugin but the error is still there.
Thanks
Greetings,
I am using block 1 and I am entering category IDs 65,66,68 into the Multiple categories filter but there are no changes. It is still only showing all of the categories and not the specific ones I entered. The instructions say set the Category filter to default which seems to be -all categories-. Can you help me resolve this issue?
Thank you!
Hello,
On each individual block you can select the title background color. That also becomes the hover color for the links. Here is an example: https://www.screencast.com/t/dyyZeeWY
Thank you!
Hi,
There is a bottom margin below each paragraph, this has a value of 26px
– https://www.screencast.com/t/ls9q6uaeCyn
It could be changed with some CSS if needed, a theme option dedicated for this is not available.
This code will modify the margin in every location a paragraph is used
.td-page-content p, .td-post-content p, .wpb_text_column p, .td_block_text_with_title p, .woocommerce #tab-description p, .mce-content-body p {
margin-bottom: 20px;
}
Modify the code with the margin value you want and then enter it in Theme panel->Custom CSS section.
Thanks
Hi,
Please check the theme documentation, every block setting is mentioned in this guide
– https://forum.tagdiv.com/block-settings-guide/
– https://forum.tagdiv.com/tagdiv-composer-tutorial/
You can change block titles, ajax menu, filter the posts and sort them as you wish.
Thanks
Hi,
That is how the theme will crop the images when creating the necessary thumbnails
– https://forum.tagdiv.com/featured-image/
– https://forum.tagdiv.com/thumbnails-vs-featured-image-size/
The center-top cropping is considered the best in general, that is why it was decided to use it. This functionality cannot be changed by a theme setting. Each module is different, you could experiment with other blocks and grids, the results may be different
– https://forum.tagdiv.com/theme-thumbs/
Thanks
Hello,
You will have to use another block if you need featured images. The recent posts element does not have images by default. You can use a theme block instead and use the block settings to filter the content: https://forum.tagdiv.com/block-settings-guide/
Thank you!