- NewspaperFlex Block Builder and Flex Loop Builder
- NewspaperHow to use the Flex Blocks cache option
- NewspaperHow to edit modules for Flex Block X
- NewspaperFlex Block Settings Guide
- NewspaperBig Grid Flex Settings
- NewspaperSingle Post Excerpt
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- NewspaperSearch setup for custom post type
- NewspaperBookmark – Save For Later
- NewspaperModules Builder in Newspaper Theme
- NewspaperFilters and sorting for taxonomies
- NewspaperHow to insert a block inside the content of a post
- NewspaperCustom Post Type Support
- NewspaperMeta Info on Modules and Blocks
- TutorialsFrom WPBakery to tagDiv Composer
- NewspapertagDiv Composer Tutorial
- NewsmagSocial counter styles on Newsmag
- NewspaperSocial Counter Styles on Newspaper
- TutorialsOffset Feature
- NewspaperCloudflare (CDN)
Hi Calin
I have restructured my ACF custom fields and have looked into your suggestion. As an example if I place the following code into the previous modules I mentioned, i.e. module 8 or 9, this sits appends an external URL (stored in a custom field) to the relevent post title –
<h3 class=”entry-title td-module-title”>post->ID); ?>” rel=”bookmark” title=”<?php echo get_the_title( $this->post->ID );//$title; ?>”><?php echo get_the_title( $this->post->ID ); //$title; ?></h3>
However, I can seem to get this to work with Flex Block 1.
Any help appreciated as always.
Best
G
Hi Simion,
I’m using the 2/3 + 1/3 row layout and the block in question is flex block 1. Really frustrating since everything looks correct, as far as I can tell, but it still doesn’t publish as the Composer looks. The big grid flex 1 is also having a similar issue. Is it something with the flex blocks? I selected them because of certain features they have which aren’t included with normal blocks.
Thanks,
Josh
Hi,
It could happen, depending on the row layout used and blocks used. For example predefined blocks (1->25) should be used only with these row layouts – http://prntscr.com/odyypj
Placing them in a different trow layout may cause them to not display properly in the final result (even if they look fine when placing them in the composer).
Flex blocks can be used in all the row layouts, this is one of their advantages.
Please let me know if you have more questions.
Thanks
Hi,
Yes, our theme have this feature, please check our documentation for thumbs, Flex Block Settings Guide and Block settings.
Also I think that this tutorial about tagDiv Composer will be useful.
Thank you!
Hello,
I have just installed this template and everything is ok except the home. I have imported a default homepage with several elements (flex blocks, social blocks and everything) and when I am on tagdiv composer everything is ok, but when I load the homepage, for example Flex Block 3 is getting full stretch and there is no space for social counter widget on the right.
The template loads both style.css (parent and child theme) but something is getting wrong.
Could you help me please to solve it?
Thank you
Hi,
Please note that each of our blocks uses a module. In the case of Block 13, is used the module 14 which has a certain style. So, if you want to use the Flex Block, it is needed to customize it from the panel settings in TD Composer. As an example, I have created one for you which looks similar to Block 13. You will need to add the code from here -> https://pastebin.com/jbQEE1FJ and paste it inside a new page, in the code editor. After you have made this step, you can switch to view the page in Visual Mode and you will see the result, like this -> https://www.screencast.com/t/46HPAr9rvp
Hope this helps!
Thank you!
Hello,
I need your help please!
Im creating a row->column> and I´m adding two or three columns to add the articles I write.
I like the structure of block 13, the meta info group several information. But when I choose this block is hard to configure, the block is always aligned left. I would like to the meta info configuration of block 13 in the flexbox 1. Is there a way in newsmag control panel or I need to change the code?
Image link
Thank you very much
Hi garyjones,
The new plugin differ just a little from the old one, but what you what achieve? maybe this can be achieve using the flex blocks that have more option for customize.
Why You Should Try the New Flexible Big Grids with Newspaper Theme
tagDiv Composer: Big Grid Flex elements
Thank you!
Hi,
If you want to have ea different layout on mobile version, you can use the mobile theme plugin, but this will not achieve what you need.
What you can do is to use flex blocks on responsive version of the theme -> https://www.screencast.com/t/OzVL0rhkNg -> https://www.screencast.com/t/2kQdy6NBZNY
Thank you!
Hi,
I do not know if this is possible, but if it is, then is possible only with custom work, you’ll need to make some function to get the pagination content from the archive page and set it in flex block element, also those change will be lost after you’ll make a theme update.
Thank you for your understanding!
Hi,
If you are using a Flex Block you can change the “Load more” button color from Style -> https://www.screencast.com/t/u7I0gPSJ4hP
Or using custom css for the predefined blocks -> https://www.screencast.com/t/bsgHwxLpV
.td-load-more-wrap a{
background-color: red;
color: white;
}
The code need to be set in the Theme Panel>Custom code> Custom css
Thank you!
Hi.
Our single posts do not look like the single post template.
Screenshot of Flex on home page: https://www.dropbox.com/s/9fgn49mxuvifysm/Screenshot%202019-07-08%2017.39.36.png?dl=0 (looks good)
Screenshot of what single post looks like now: https://www.dropbox.com/s/gygsgngwr1c1wdt/Screenshot%202019-07-08%2017.39.46.png?dl=0 (looks bad)
Screenshot of what the single post should look like (when hitting button ‘edit template’ on top of page: https://www.dropbox.com/s/ldk1llgakgco4qs/Screenshot%202019-07-08%2017.40.08.png?dl=0
Can you please assist?
Thanks.
Hi there.
On website: https://okobserverorg.wpmudev.host/ We’re needing to stack the archives pagination buttons below the flex box pagination buttons so users won’t have to scroll through months of posts.
Screenshot 1 showing archives pagination: https://www.dropbox.com/s/dlj66jeqi1v6h38/Screenshot%202019-07-08%2016.16.53.png?dl=0
Screenshot 2 showing flex box pagination: https://www.dropbox.com/s/min19100psu2z7y/Screenshot%202019-07-08%2016.17.10.png?dl=0
Thanks!
Hi,
I have Newspaper 9.7.2 installed and have tried to follow this, https://forum.tagdiv.com/practical-example-how-to-add-a-new-block-and-module/ to create a new version of block 9 in which I have custom code (for the purposes of the learning exercise i have called it block and module 77 as per the exercise).
The php for the shortcode is,
<?php
class td_block_77 extends td_block {
static function cssMedia( $res_ctx ) {
// fonts
$res_ctx->load_font_settings( ‘f_header’ );
$res_ctx->load_font_settings( ‘f_ajax’ );
$res_ctx->load_font_settings( ‘f_more’ );
// module 77 fonts
$res_ctx->load_font_settings( ‘m77f_title’ );
$res_ctx->load_font_settings( ‘m77f_cat’ );
$res_ctx->load_font_settings( ‘m77f_meta’ );
}
public function get_custom_css() {
// $unique_block_class – the unique class that is on the block. use this to target the specific instance via css
$unique_block_class = $this->block_uid . ‘_rand’;
$compiled_css = ”;
$raw_css =
“<style>
/* @f_header */
.$unique_block_class .td-block-title a,
.$unique_block_class .td-block-title span {
@f_header
}
/* @f_ajax */
.$unique_block_class .td-subcat-list a,
.$unique_block_class .td-subcat-dropdown span,
.$unique_block_class .td-subcat-dropdown a {
@f_ajax
}
/* @f_more */
.$unique_block_class .td-load-more-wrap a {
@f_more
}
/* @m77f_title */
.$unique_block_class .td_module_77 .entry-title {
@m77f_title
}
/* @m77f_cat */
.$unique_block_class .td_module_77 .td-post-category {
@m77f_cat
}
/* @m77f_meta */
.$unique_block_class .td_module_77 .td-module-meta-info,
.$unique_block_class .td_module_7 7.td-module-comments a {
@m77f_meta
}
</style>”;
$td_css_res_compiler = new td_css_res_compiler( $raw_css );
$td_css_res_compiler->load_settings( __CLASS__ . ‘::cssMedia’, $this->get_all_atts() );
$compiled_css .= $td_css_res_compiler->compile_css();
return $compiled_css;
}
function render($atts, $content = null) {
parent::render($atts); // sets the live atts, $this->atts, $this->block_uid, $this->td_query (it runs the query)
if (empty($td_column_number)) {
$td_column_number = td_global::vc_get_column_number(); // get the column width of the block from the page builder API
}
$buffy = ”; //output buffer
$buffy .= ‘<div class=”‘ . $this->get_block_classes() . ‘ td-column-‘ . $td_column_number . ‘ td_block_padding td_block_bot_line” ‘ . $this->get_block_html_atts() . ‘>’;
//get the block js
$buffy .= $this->get_block_css();
//get the js for this block
$buffy .= $this->get_block_js();
// block title wrap
$buffy .= ‘<div class=”td-block-title-wrap”>’;
$buffy .= $this->get_block_title(); //get the block title
$buffy .= $this->get_pull_down_filter(); //get the sub category filter for this block
$buffy .= ‘</div>’;
$buffy .= ‘<div id=’ . $this->block_uid . ‘ class=”td_block_inner”>’;
$buffy .= $this->inner($this->td_query->posts); //inner content of the block
$buffy .= ‘</div>’;
//get the ajax pagination for this block
$buffy .= $this->get_block_pagination();
$buffy .= ‘</div> <!– ./block –>’;
return $buffy;
}
function inner($posts, $td_column_number = ”) {
$buffy = ”;
$td_block_layout = new td_block_layout();
if (empty($td_column_number)) {
$td_column_number = td_global::vc_get_column_number(); // get the column width of the block from the page builder API
}
$td_post_count = 0; // the number of posts rendered
$td_current_column = 1; //the current column
if (!empty($posts)) {
foreach ($posts as $post) {
$td_module_77 = new td_module_77($post, $this->get_all_atts());
switch ($td_column_number) {
case ‘1’: //one column layout
$buffy .= $td_block_layout->open12(); //added in 010 theme – span 12 doesn’t use rows
$buffy .= $td_module_77->render($post);
$buffy .= $td_block_layout->close12();
break;
case ‘2’: //two column layout
$buffy .= $td_block_layout->open_row();
$buffy .= $td_block_layout->open6(); //added in 010 theme – span 12 doesn’t use rows
$buffy .= $td_module_77->render($post);
$buffy .= $td_block_layout->close6();
if ($td_current_column == 2) {
$buffy .= $td_block_layout->close_row();
}
break;
case ‘3’: //three column layout
$buffy .= $td_block_layout->open_row();
$buffy .= $td_block_layout->open4();
$buffy .= $td_module_777->render($post);
$buffy .= $td_block_layout->close4();
if ($td_current_column == 3) {
$buffy .= $td_block_layout->close_row();
}
break;
}
//current column
if ($td_current_column == $td_column_number) {
$td_current_column = 1;
} else {
$td_current_column++;
}
$td_post_count++;
}
}
$buffy .= $td_block_layout->close_all_tags();
return $buffy;
}
}
And the php for the module is,
<?php
class td_module_77 extends td_module {
function __construct($post, $module_atts = array()) {
//run the parrent constructor
parent::__construct($post, $module_atts);
}
function render() {
ob_start();
$title_length = $this->get_shortcode_att(‘m77_tl’);
$modified_date = $this->get_shortcode_att(‘show_modified_date’);
///print_r($this->post->ID);
$choosen_post_functionality = get_field( “choose_post_functionality”, $this->post->ID );
// For Element One
$title_lo = get_field( “title_lo”, $this->post->ID );
$title_link_lo = get_field( “title_link_lo”, $this->post->ID );
$media_name_lo = get_field( “media_name_lo”, $this->post->ID );
$media_link_lo = get_field( “media_link_lo”, $this->post->ID );
$publish_date_lo = get_field( “publish_date_lo”, $this->post->ID );
//$abstract_excerpt_lo = get_field( “abstract_excerpt_lo”, $this->post->ID );
$abstract_excerpt = get_post_field(‘post_content’, $this->post->ID);
// For Element Two
$title_lt = get_field( “title_lt”, $this->post->ID );
$title_link_lt = get_field( “title_link_lt”, $this->post->ID );
$author_name_lt = get_field( “author_name_lt”, $this->post->ID );
$media_name_lt = get_field( “media_name_lt”, $this->post->ID );
$publish_date_lt = get_field( “publish_date_lt”, $this->post->ID );
$citations_title_lt = get_field( “citations_title_lt”, $this->post->ID );
$citations_link_lt = get_field( “citations_link_lt”, $this->post->ID );
//$abstract_excerpt_lt = get_field( “abstract_excerpt_lt”, $this->post->ID );
?>
<div class=”<?php echo $this->get_module_classes();?>”>
<?php if($choosen_post_functionality == “ext_lo_one”) { ?>
<div class=”item-details”>
<?php //echo $this->get_title($title_length);?>
<h3 class=”entry-title td-module-title”>” rel=”bookmark” title=”<?php echo get_the_title( $this->post->ID );//$title_lo; ?>”><?php echo get_the_title( $this->post->ID ); //$title_lo; ?></h3>
<div class=”td-module-meta-info”>
<?php //if (td_util::get_option(‘tds_category_module_77’) == ‘yes’) { echo $this->get_category(); }?>
<?php //echo $this->get_author();?>
<div class=”media_date” style=”margin-top:5px;”>
<span class=”td-post-author-name”>“><?php echo $media_name_lo; ?> <span>-</span> </span>
<?php //echo $this->get_date($modified_date);?>
<span class=”td-post-date”><time class=”entry-date updated td-module-date”><?php echo $publish_date_lo; ?></time></span>
</div>
<div class=”td-post-content” style=” margin-top: 5px; padding: 0; “><?php echo $abstract_excerpt; //$abstract_excerpt_lo; ?> </div>
<?php //echo $this->get_comments();?>
</div>
</div>
<?php } elseif($choosen_post_functionality == “ext_lo_two”) { ?>
<div class=”item-details”>
<?php //echo $this->get_title($title_length);?>
<h3 class=”entry-title td-module-title”>” rel=”bookmark” title=”<?php echo get_the_title( $this->post->ID ); ?>”><?php echo get_the_title( $this->post->ID ); ?></h3>
<div class=”td-module-meta-info”>
<?php //if (td_util::get_option(‘tds_category_module_77’) == ‘yes’) { echo $this->get_category(); }?>
<?php //echo $this->get_author();?>
<div style=”margin-top: 5px;”>
<span class=”td-post-author-name”><?php echo $author_name_lt; ?> </span>
</div>
<div class=”media_date” style=”margin-top:5px;”>
<span class=”td-post-author-name”><?php echo $media_name_lt; ?> </span>
<?php //echo $this->get_date($modified_date);?>
<span class=”td-post-date”><time class=”entry-date updated td-module-date”><?php echo $publish_date_lt; ?></time></span>
</div>
<span style=” display: block; margin-top:5px;” class=”td-post-author-name”>“><?php echo $citations_title_lt; ?> </span>
<div class=”td-post-content” style=” margin-top:5px; padding: 0;”><?php echo $abstract_excerpt; ?> </div>
<?php //echo $this->get_comments();?>
</div>
</div>
<?php }else { ?>
<div class=”item-details”>
<?php echo $this->get_title($title_length);?>
<div class=”td-module-meta-info”>
<?php if (td_util::get_option(‘tds_category_module_77’) == ‘yes’) { echo $this->get_category(); }?>
<?php echo $this->get_author();?>
<?php echo $this->get_date($modified_date);?>
<?php echo $this->get_comments();?>
</div>
</div>
<?php } ?>
<?php echo $this->get_quotes_on_blocks();?>
</div>
<?php return ob_get_clean();
}
}
I have set up the folders as per the tutorial but am not sure where to pull the two CSS files needed that set out the style for Block 9.
NOTE: I also wish to create custom block versions for the Flex Blocks.
Please can you advise as to where these are located and if any additional considerations need to be made in view of the Envato-required changes.
Finally, another question. Given the change to follow Envato rules when I come to update to a new release version will this overwrite any custom blocks?
Thanks.
Best
Gary
Hi,
The theme uses thumbnails for the block and grid modules. These thumbnails are cropped center top, which is considered the best overall method
– https://forum.tagdiv.com/featured-image/
You could use a flex grid however, for example flex grid 5. These grids have settings that you can use to align the images vertically for all the three modules
– http://prntscr.com/oby45t
Let me know if you have more questions.
Thanks
Hi,
If the content that you want to set in 5/12 column is static you can add the column text and set in it the content you want
-> https://www.screencast.com/t/sY17o5tY also if you are suing some plugins that generate content you can set the shortcode in Column text in text section; or if you want to set a pot in that section you can use the flex block and set the numbers of post you want to show , filter, set the layout … -> https://tagdiv.com/tagdiv-composer-flex-block-elements/
Thank you!
Hello – I have created subtitles on my posts and I would like to display them on the home page – the title posts like this on flex blocks https://www.screencast.com/t/NwMpsv5c but I’d like to have the subtitle display below that. Please let me know if that’s possible?
Hello, our client showed us a screenshot of their Newspaper 7 theme (version 7.7c) website we created, where titles are displayed over the images, instead of under the images, using Flexblock 1.
website: https://schoonmaakjournaal.nl
We noticed that checking in Safari 9, there are no images at all to be seen.
Am I correct that this is an issue with older Safari versions?
Because using crossbrowsertesting.com to check on Safari 12, everything seems to be fine.
With what kind of safari releases is Newspaper 7 compatible?
Regards,
Martin.
Hello @Engager,
The “Posts loop” element will be filter automatic in function of the templates/pages, if you set it on homepage this will show all the categories and posts; if will be set in a category template and for example this will be set on a specific category, when you’ll check it only the the posts from that category will be display.
If you want to show a specific post/category you can use a flex block, or a block -> https://forum.tagdiv.com/block-settings-guide/
Thank you for your understanding!
Hi there~
Newspaper theme is so awesome!
But I have a problem!
It is sorting issue.
In tagdiv composer, I used Flex block1 and, I set bellow infomation
post type : page
Sort order : Alphabetical a->z
but it is not working normally.
bellow image is error cooured captured image.
This page is korean, and correct sorting sequency is “김남주 – 박초롱 – 손나은 – 윤보미 – 정은지”.

I have more cases like upper image.
Don’t you support korean in newspaper theme?
Please help me. I have to sort Alphabetically.
Hi,
If you are using the category template, you can sort the order of post from here -> https://www.screencast.com/t/rs7JsOot but you can not filter the posts loop, or category grid ; if you want to filter the post you’ll need to use some blocks or flex blocks, but those will not be filter the post from the current category, will be apply only the filters that you’ll set; also this option will not longer apply on cloud templates -> https://www.screencast.com/t/6SuiswCYzc5
Thank you!
Hi,
By a theme or block setting it is not possible. However I could give you a CSS code for it, for example – http://prntscr.com/o9w1so
This code will apply to the flex blocks in the homepage only, I could modify it if needed.
It can be entered in the theme panel custom CSS section
.home .td_flex_block_1 {
counter-reset: module;
}
.home .td_flex_block_1 .td_module_flex_1:after {
counter-increment: module;
content:counter(module);
position: absolute;
top: 0;
right: 20px;
color: white;
padding: 5px 10px;
background-color: rgba(25,27,26,0.5);
}
Let me know.
Thanks
Hello, team tagDiv.
I am customizing author, archive, search, category and tag templates. I chose an archive template from cloud library, the posts are displayed using post loop. But I want to change the design of how these posts look for which I decided to use flex box 1. Now the problem, flex box or any shortcode other than post loop isn’t working the way it’s supposed to be. Flex box show all the post there are on the website, there is no filter. Only post loop filters the post.
So please help me. I don’t want to ruin my website’s design by bringing in any consistency in the way it looks.
This is happening with my website.
1) I went into the theme panel. From the section “LAYOUT SETTINGS”, I clicked “TEMPLATE SETTINGS”.
2) I clicked on the tag template from the on of the sections under “WordPress Templates”.
3) I clicked on the link “cloud library” and imported a template. Everything is fine. Only the post under the selected tags were being displayed which was great.
4) I tried to edit this template. The posts in this template were being displayed with the help of post loop.
5) I tried to replace the post loop with flex box because it gives more options for customization.
6) I selected the flex box and what I see is that all the posts started showing. The posts were not filtered by tag.
I have only one post for the tag name “Tour” but when I click on this tag, instead of showing that one post only, it shows all the posts. And this only happens when I don’t use post loop
Hello !
In order to filter the category template you will have to edit the blocks using the tagDiv Composer as you can see here: https://www.screencast.com/t/EClwRePw Also for the flex block on the right you can do the same.
I hope this was helpfull !
Thank you !
I have an error with the block big grid flex 1, as shown in the image one of the boxes is blank like blocked and the title of the post comes out on top of that white box, the weird thing is that if I choose another category the box is fixed but I need to filter a category in specific but that error comes out, it is happened with another category too, you know why? I do not know what to do, I need it adjust but I do not know what to move.https://1drv.ms/u/s!AnkokusskyGrgYZm1E7IP5s9rraw_w?e=PhiVs5