- 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
All theme’s blocks are based on a fixed layout and changing the rows margins/paddings will affect bloc’s display on page. Here is an example: http://screencast.com/t/8VybHiDygd – http://screencast.com/t/aPcZomPxDay
To change the thumb size used by big grid 2 are required some customizations in theme’s core files. First you need to define a new thumb size in td_config.php file: http://screencast.com/t/KJ4X4c28Qbr You can use theme API for that: https://forum.tagdiv.com/td_api_thumbadd/
Next step is to edit td_module_mx7.php and change the actual size from get_image function with your custom size: http://screencast.com/t/JPdmmbRk5r7I
Note that this is a complex task which require many customizations and good coding skills in order to be achieved. If you’re not aware of the steps you need to take in this regard please consider hiring a developer to do this for you as we can’t offer customizations services at the moment.
Thanks!
Hi,
You have to make an assessment o the size of every image and container you use on your site. The theme does crop images and create thumbnails, but it cannot enlarge images. For example, in your big grid on the homepage, the big container has dimensions of: http://screencast.com/t/6vmVnKein5 but your image is not big enough to fill it: http://screencast.com/t/UA2GuiIpTmL
Please make sure you have all thumbnails that you use active in the theme panel -> block settings -> thumbnails section
Regarding the cropping system please read these topics:
https://forum.tagdiv.com/thumbnails-vs-featured-image-size/
https://forum.tagdiv.com/theme-thumbs/
https://forum.tagdiv.com/featured-image/
Hope this helps.
Thank you!
Hello in my home page http://wordpress.diarionoticias.info/ I cannot edit blocks below from the video block. Where can I edits the block between the video and the footer.
When I add a post it defaults to posted by admin. I Want to show the name of the author, how can I accomplish this?
http://wordpress.diarionoticias.info/2016/04/10/reactivan-policias-el-operativo-bom/
I changed the background and text color of the trending now ticker. When I mouse hoover the background changes color. How can I stop that?
Hi, I have a problem with block 13 at the first page. The white element under the post topic had disappeared(Problem with Chrome&Safari). So the featured photo can be seen a bit. I don’t know how attached screenshot in this forum.
Can you check my website below,
http://inubon.com/
The problem is the article of a gift shop.(The same line as Facebook like box)
Thank you in advance.(Sorry for my English)
Hi, Home page back end shows only Big gris elements, the rest are hidden. Why?
How do I send you a screenshot?
1. I posted pseudo code, not actual php. You’ll have to Google for the correct syntax. Here’s a code snippet from TechRanker.net theme’s header.php:
<?php if( is_home() || is_front_page() ) echo '<h1>'; else echo '<h2>'; ?>
2. I don’t have the Newspaper theme files handy but here’s a suggestion. Find the files for the blocks you plan to use and search those files for <H3>, <H4>, etc. Then use something similar to the code above to perform your conditional logic.
If you can figure out how to add these changes to a child theme instead of editing the actual theme files, that would be preferred. Otherwise, you will have to reapply these changes every time the theme is updated.
3. On pages, posts, and other content pages, <H2> should only be used by YOU the content writer, not the theme.
On the home page, archive pages, and other non content pages, <H2> can be used by the theme itself.
For my first question i tried the Code in css custom area
.td_block_4 .td-module-meta-info{
display:none;
}
But i have no idea about the solution of second question, please help!
Hello,
i am using block 4 on home page. For this i want to HIDE
1. All meta information like author, date, comments etc.
2. Hide the text of post under the title
Would you please tell me how to accomplish above tasks with block 4?
Many Regards
Adnan
On this post:
https://godhelpusall.com/brexit-bilderberg-one-world-government-bbc-bias
The <H2> tag is now being used in the sidebar. The <H2> tag tells Google what your post is about. Right now, you are telling Google that all of your posts are about this:
<H2>: Social Media Connections
<H2>: Trending Alternative News
<H2>: In Other News
<H2>: Follow Us
This is SEO suicide. The <H2> tag should not be used by ANY theme on posts, pages, or other content pages. It’s ok for a theme to use <H2> on the home page, archive pages, or other non-content pages.
Instead of changing all <H4> to <H2>, you need some conditional logic like this pseudo code below:
IF IsHomePage or IsArchivePage THEN <H2> ELSE <H3>;
(<H3> in the sidebar works for me)
I forget how Newspaper works exactly but alternatively, if you use block templates or modules exclusively for the home page and archive pages (and not on posts and pages), you can change the header tag on only those block templates or modules. On posts and pages, use blocks that use <H4> or preferably <H3>.
I used the Big grid 3 and the Block 3 in the Homepage (latest articles). And the latest articles shows in the Big grid 3 and in the Block 3.
How could I unify the latest articles in the Grid and in the Block?

Hi all,
If anyone is interested I managed to get round the H1, H2 on the homepage and category archives issue quite quickly and with a relatively simple solution.
Homepage:
Modify td_block_template_1.php file found in includes folder.
Modify h4 in this code:
$buffy .= ‘<h4 class=”block-title”>’;
if (!empty($custom_url)) {
$buffy .= ‘‘ . esc_html($custom_title) . ‘‘;
} else {
$buffy .= ‘<span>’ . esc_html($custom_title) . ‘</span>’;
}
$buffy .= ‘</h4>’;
To read ‘h2’
This changed the block titles on the homepage from h4 to h2
Category Archives:
Download and install CategoryTinymce plugin via your WordPress install.
Then edit your categories which will now have a fully functional editor similar to creating a post article.
You can then add all the h2 headings, images and customisations you want.
Note: Outcome will be determined by which category template you are using within the theme.
Look at this site to see:
Homepage Example: https://godhelpusall.com
Category Example: Finance News
Hope this helps a little.
Kevin
-
This reply was modified 10 years by
Kevin.
The solution to the problem is to put the line of code from this link on top of the htaccess file. Literally put it on top, not inside the other lines of code, but just on top.
Not the whole thing or else it will screw up your webpage. Just this part: Header add Access-Control-Allow-Origin “*”
Make sure you copy from StackExchange so it copy and pastes correctly, because the htacess file is one of the most delicate parts of operation.
The solution to the problem is to put the line of code from this link on top of the htaccess file. Literally put it on top, not inside the other lines of code, but just on top.
Not the whole thing or else it will screw up your webpage. Just this part: Header add Access-Control-Allow-Origin “*”
Make sure you copy from StackExchange so it copy and pastes correctly, because the htacess file is one of the most delicate parts of operation.
-
This reply was modified 10 years by
branch1.
Please is it possible to show just the date on block for the first leading post while the remaning ones dont have, also is there a way i can target a specific block 9, because i have more than one on my site
If have swiched from the Newsmag Theme to the Newspaper theme. Now i dont see the big grid in the VC builder. If had the old VC removed and uplpaded the one with the newspaper theme. How do i get de blocks with the newspaper theme
Hi,
I have activated the function “unique articles” in my homepage, but I want some block as editorial or featured articles to exclude them from unique. This is possible?
Thank you and best regards,
DeA
I’m having a major meltdown with my website. It all started last night when Ninja Forms suddenly broke the whole site. Now after i’ve recovered from a working backup i’m getting this wp booster error. Any ideas what to do next?
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_1 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_2 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_3 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_4 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_5 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_6 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_7 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_8 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_9 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_10 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_11 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_12 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_13 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_14 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_15 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_16 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_17 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_18 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_19 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_20 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_21 is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_ad_box is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_authors is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_popular_categories is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_slide is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block_text_with_title is not set.
/xxx/xxx/xxx/xxx/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
Catalin;
Just a note to let you know this code works like a charm!
Best part about this code is that it only disables the slider for phones and not tablets. (max-width:767px) There’s plenty of room on a tablet, but being able to disable this for phones is HUGE!
I really wanted to keep the slider (its got massive cool factor) – but it was blocking the content being read on my phone.
A little digging here, and BAM! Problem solved and cool factor in tact!
Many thanks!
After a bit more digging, I figured out it couldn’t call the various thumbs from the server.
I did figure out a solution and moving forward, all graphics and picks will be able to fit inside the 4:3 container for the smaller graphics. I’ve done some modifications to current images using a new Photoshop template and it appears to work well.
Given enough time, I can have all the graphics moving forward fit the various containers without issue. In the meantime the pages I create will have to be rather selective – making sure the blocks don’t crop off the older images I have that will come up from time to time. I do have enough blocks to work with to make it work for now.
Appreciate the insight and help.
Personally – I’m LOVING this new theme and all it can do. The wife on the other hand is not all that happy with the amount of time I’m spending “playing on the computer”. (She’ll get over it when I take her out to dinner tonight.)
Rock On!
Note we had this issue with client using another theme for an ecommerce setup, and the layout blocks for the home page used “ad” in them and so the shop home page had no products when viewed in browser with ad blocker.
For that particular project last year, I had to do a search/replace using Dreamweaver (any programmer text editor can do this too) to do a full search/replace of the entire theme folder.
e.g.,
home-adblock-one
had to do full search/replace
to change to something like
home-showcase-one
Then it worked. Bit of a pain. But it worked in this case since on that project the elements on front page of store were NOT ads.
Of course, with “real” ads, the adblocker will look at where the ad unit is coming from, the name of the image, the folder it loads from (eg., /ads/myadone.jpg would be an ad), etc. — so the CSS class alone might not solve issues with ad block stoppage.
Just food for thought.
Questions #6 & #7
and this one you left unanswered:
+ customizing the top featured posts
I tried different grids, but those preset one’s doesnt really fit me
I really like the initial 6 blocks, but 6 is actually too much
What should I specify in custom row setting so I have only 3 on top with a main large one on the left and two smaller one’s on top of each other on the right? (see screenshot)
Where should I add the ad code adrotate ?
<? Php echo adrotate_group ( 1); ? >
I tried adding the custom ad control panel tagdiv and did not work. It does not work if I insert directly from a block of pure html . I could tell you how to insert ? Thank you!
Hello,
There is no option in the theme to remove the gradient, but it can be done with a css trick.
It can be removed with this custom css:
.td_block_big_grid_2.td-grid-style-1.td-hover-1 .td-module-thumb a:last-child:before{
display:none!important;
}
you might also want to follow this guide if you updated from newspaper 4: https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/
Thank you.
Hi,
1) It will not be difficult to replicate the design of that particular site as it’s very similar to our themes.
You can pick a similar header style from the theme panel. Here is a list of headers you can use:
https://forum.tagdiv.com/newsmag-header-styles/
Then you can change the menu color to red: http://screencast.com/t/SsHD68vpVc
The content layout can easily be replicated with our content blocks you can use in visual composer. Here is a tutorial on how to use it: https://forum.tagdiv.com/newsmag-how-to-use-visual-composer/
The sidebars can also be replicated in visual composer.
Unfortunately the left widget cannot be done as our theme has no such option, but you can maybe find a plugin for it.
2)The best way to learn how to set up the bbpress forums is by reading their official guide here: https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/
3)For seo optimization we recommend the seo yoast plugin. They also have a comprehensive guide on how to set it up: https://yoast.com/wordpress-seo/
https://yoast.com/adding-a-description-to-your-categories/
Hope this helps.
Thank you!
Hi,
I’m not aware about the FacetWP functionality and what ca I say is that also the tagdiv blocks are shortcodes but they are interpreted by the theme so you can set the filter options and other settings. I cannot see an easy workaround for this, as not all the shortcodes are interpreted by the theme and also apply the designed theme layout on theme without custom modifications. Unfortunately I cannot provide you a solution for this, what you could try is to take a look to the code and see how a theme block is designed and try to apply this for your plugin’s shortcodes. Also you can get someone to help you as we cannot provide custom services at this time and plugin implementation is not covered by the theme support – https://forum.tagdiv.com/support-policy-2/
Also maybe the api documentation can help, if you want you can check it here – https://forum.tagdiv.com/the-theme-api/
Thanks!