- NewspaperFlex Block Builder and Flex Loop Builder
- NewspaperHow to use the Flex Blocks cache option
- NewspaperHow to edit modules for Flex Block X
- NewspaperHow to insert a block inside the content of a post
- NewspaperFlex Block Settings Guide
- NewspaperMeta Info on Modules and Blocks
- NewspaperTheme modules and blocks
- NewspaperThumbnails – Fix strange looking images on blocks
- NewspaperBlock settings tutorial
- NewspaperCategory Tag on Modules/blocks
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- NewspaperSearch setup for custom post type
- NewspapertagDiv Opt-In Builder – Emails
- NewspaperBookmark – Save For Later
- NewspaperModules Builder in Newspaper Theme
- NewspaperFilters and sorting for taxonomies
- NewspaperUser review system
- NewspaperWooCommerce: Happy “Add to Favorites!”
- NewspaperLockers
- NewspaperLeads
Hi,
I’m trying to add an image every 5th post in a visual composer block (Block 9). Where is the loop that controls the posts that are displayed in that block?
I’m using the page-homepage-blank.php template, and the loop in that file doesn’t seem to be what i’m looking for.
I also tried td_module_8.php, but adding a counter in there didn’t seem to do the trick.
Is there somewhere else I shold be looking?
I’m not asking for you to do this for me, just point me in the right direction.
Thanks!
I don’t know a lot about Joomla but it doesn’t matter much which is superior, matters which one lets you make something superior. There’s more than the car, there’s also the driver and that’s why you are here trying to learn how to drive wordpress. I’m not defending wordpress over joomla, I just don’t want to say that something is worst when in reality I don’t even know it that well.
About images and thumbnails, yes they can get messy. If you don’t want image resizing (thumb generation) just go to options and set the sizes of thumbnails to 0x0 (zero), voilá, no more image generation. This has the downside of making your visitors download the original images all the time, even if all they are seeing is a thumbnail of them. Making thumbnails will create an image of 2KB to show a 100×65 thumbnail but people are free to serve a 70KB 700×357 image that will be displayed 100×65 anyway, downsized only pixel-wise and not KB-wise.
One thing though: You’ll see 3 thumbnail sizes in WP options but that doesn’t mean that your WP makes only 3 thumb regens, if some plugin or theme registers a new size, that new size will be created and you won’t see it in the options. Woocommerce “installs” 3 thumb sizes regenerations for example, and bam! suddenly you have 10000+ images in your media folder because every upload will be multiplied 6 or more times!
In that regard, this theme could get a bit of optimization. This theme is very beautiful but has lots of blocks, sliders, galleries and what not. So this theme registers a boatload of thumb sizes regens to fit all those blocks. After a while I figured out which blocks and sliders I prefer to use and those I don’t and so I commented out all those thumb regens I don’t use. This should be done, if possible, before running a plugin like thumbnail regeneration or all thumb sizes registered will be regenerated.
PS: support is always answering questions at the forum (during work time ofc, shown top right) but you can try e-mail, they are quick to respond, I wasn’t even their client yet and they answered pretty quick.
-
This reply was modified 11 years by
nf_prt.
You need to regenerate thumbnails for your site once theme is installed to generate all the various sizes for the blocks/modules. You should not use the demo data for a live or real website, only for testing or client demo (speaking as a 20 year webdev myself).
You can of course simply upload images via FTP if you don’t plan to use them as ‘featured’ images — for ‘featured’ images you generally need to upload those via the media manager or use a third party solution/plugin (e.g., bulk uploader to media manager).
Or combo of FTP upload with plugin to move to media manager, e.g.,
http://premium.wpmudev.org/blog/bulk-upload-files-to-wordpress-media-library-using-ftp/
For questions about how to use WORDPRESS — which is not part of the theme — you should of course check the millions of pages of help on the web via Google, and of course the WordPress CODEX .. often you can do searches like “image upload wordpress codex” to find help quickly.
You can change the default upload directory, and you can turn off the upload by /month/day/ options easily.
Obviously you should expect the TagDiv support folk to educate you on how the basics of WordPress actually works — only elements related to using the theme. Image uploading is part of WordPress and not a “theme” function, per se.
I don’t work here – so just some feedback while you wait for official reply 🙂
Hello folks.
I’m also having issues with trying to save theme settings. I’m using the latest version of both WordPress and Newsmag themes. I’ve disabled all plug-ins except for Wordfence, WPBakery Visual Composer,Ultimate Addons for Visual Composer, tagDiv Visual Composer Shim and tagDiv Speed Booster.
When in the theme settings page in the admin panel, I’m able to modify most of the settings without any issue. However, when I try to click on the Block predefined style section links to modify them, the ajax spinning icon just hangs and doesn’t pop open the menu. When I pull open the dev console in Chrome, I noticed this:
Uncaught SyntaxError: Unexpected token < admin.php:1
Things that I’ve tried:
Cleared both the server cache and the browser cache.
I’ve spoken with my host, HostGator and asked them to check the admin-ajax.php and confirm that it wasn’t being blocked, which they said it wasn’t. They also stated that the maximum memory limit is already set to 256, and cannot be changed by the end-user on a shared hosting account.
Reference: http://support.hostgator.com/articles/cpanel/php-settings-that-cannot-be-changed
memory_limit = 256M (MAXIMUM)
Per Chris’s link above, I also went into the wp-config.php file and added the following line of code:
/** Increased memory allotment to prevent Ajax Errors. https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP */
define( 'WP_MAX_MEMORY_LIMIT', '256M' );
(The official WordPress.org article Chris showed said you had to add it in prior to settings.)
Please note, this has to be put before wp-settings.php inclusion.
You can see it in-line where I included it right after the absolute path section, and before the wp-settings.php section, here:
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Increased memory allotment to prevent Ajax Errors. https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP */
define( 'WP_MAX_MEMORY_LIMIT', '256M' );
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
Perhaps this is related, but when I’m on the front end, and try to use the left and right arrows to scroll through content in the various section blocks, the ajax loading icon just spins, and the console spits out the following error:
SyntaxError: Unexpected token < madlymanly.com/:1
Any thoughts as to what is causing the syntax error message in the console? Thank you in advance for the help!
I’m trying to add a MODULE or BLOCK to my theme, I’m following the API documentation and now I see that it says it works for theme Newspaper Version 5.
I bought the latest version last week and I see that it says it’s version 4.6.3
Is this a new release that should come out soon?
i want tagdiv create new block like news.zing.vn
photo
Hi,
You can find header templates in parts > header – http://screencast.com/t/bbM68e3A You can create a condition depending in template that you use and add a condition to display “header ad” on your homepage and else used do_shortcode to display a custom ad(paste your code in Theme Panel > Ads). You can find out more details about conditional tags here – https://codex.wordpress.org/Conditional_Tags and use this code for your custom ad:
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi all,
Does anyone know how i can edit the latest articles block at the bottom of the homepage. I cant find it on the actual homepage editor in wordpress, it’s not a widget either. ALl i want to do is control which categories show in this ‘latest articles’ section.
url is http://www.theparentbook.com
Hi,
You can translate it using Translation section – http://screencast.com/t/Hjzjk1gDD and you can change the background color using custom css in Theme Panel > Custom Css – http://screencast.com/t/7LdsTahIdIFh
.td_read_more {
background-color: red !important;
}
Also if you want to hide it you can use custom css code. For example to hide the button for block 9 on homepage – http://screencast.com/t/VdLdmXrmeQ
.home .td_block9 .td_read_more {
display: none;
}
Thanks!
Hi,
Please take a look at the post template code – http://screencast.com/t/9XNlfPau as you can see the featured image is displayed before the post content and you will need custom work for this, the content function is in the td_module_single_base.php – http://screencast.com/t/KEQT0x8vBfF
The easiest solution is to paste your code in a custom ad from Theme Panel > Ads and use do_shortcode function in the post template above the featured image code – http://screencast.com/t/wTdBJhfG0y
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
Result – http://screencast.com/t/f42xB0OpktYR
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
-
This reply was modified 11 years by
Alin [tagDiv].
-
This reply was modified 11 years by
Alin [tagDiv].
Thanks Alin, not a banner. It is a block for mobile Descktop and I want to be displayed on all pages. I use the same method?
Este es mi sitio:
http://laradiodetotoral.com.ar/portal/
Hi Alin, thanks for getting back,
I can see the theme doesn’t do this out of the box, and I can obviously change the color sitewide, or block wide, with css as I have now: http://fundforumlive.com.gridhosted.co.uk/
I’m really looking for some guidance as to how this can be achieved, not just a … we don’t do that.
It’s done on the post page, so it is doable.
I’m also looking to add the tags, styled as per the current post page sidebar widget on my dev site above to the thumbs.
Any help would be much appreciated.
Hi,
Unfortunately the theme doesn’t have an option for category tags to be colored on modules/blocks, this is applied only for posts pages like you figured out. You can change the category background and color on modules using custom css but it will be the same color for all of your categories.
If you use this custom css you will change the color for categories on all modules(set a general color) – http://screencast.com/t/I1rAN1gGo4J
.td-post-category {
background-color: rgb(192, 80, 80);
color: rgb(51, 51, 178);
}
Or you can do it only on specific blocks – check this topic as reference – https://forum.tagdiv.com/topic/change-category-tag-color/#post-51465
Hope this helps!
Hi,
You can try to add margin bottom there. You can try this custom css in Theme Panel > Custom Css – http://screencast.com/t/RpKuRz7Dzwt
.block-mega-child-cats {
margin-bottom: 20px;
}
Thanks!
Hi, great theme, thanks, just wondered if you could please help me with a megamenu modification? I’ve managed to remove the ‘All’ category button from the megamenu dropdown by editing the code in td_block_mega_menu.php, but how can I edit the code so the dropdown automatically shows the first sub-category selected and it’s posts?
Sorry … hit return and somehow deleted my message.
Meant to say — you can try using fewer dbase queries by having fewer blocks on homepage, try having fewer queries in sidebar, possibly not use the “suggested flyout” and also not use the megamenu. The more “go grab stuff” items you have the more it slows down dbase.
ALSO: be sure to increase your default memory with both php.ini / host panel *and* in your wp-config.php file (WP defaults to 40MB unless you actually edit your wp-config.php file to increase; it needs to be at least 64MB with 128MB recommended).
I am working on speeding up my site but my host is saying this is slowing down the site:
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (6,7,8,2355,4974,4975,4976,4977) ) AND wp_posts.post_type = ‘post’ AND ((wp_posts.post_status = ‘publish’)) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 5
Source:
/nas/wp/www/cluster-40360/websitename/wp-content/themes/themename/includes/wp_booster/td_data_source.php:284
Backtrace:
require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/themename/page.php’), get_header, locate_template, load_template, require_once(‘/themes/themename/header.php’), td_api_header_style::_helper_show_header, load_template, require_once(‘/themes/themename/parts/header/header-style-9.php’), locate_template, load_template, require_once(‘/themes/themename/parts/header/header-menu.php’), wp_nav_menu, apply_filters(‘wp_nav_menu_objects’), call_user_func_array, td_menu->hook_wp_nav_menu_objects, td_block_mega_menu->render, td_block->render, td_data_source::get_wp_query, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
and
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (6,7,8,2355,4974,4975,4976,4977) ) AND wp_posts.post_type = ‘post’ AND ((wp_posts.post_status = ‘publish’)) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 5
Source:
/nas/wp/www/cluster-40360/websitename/wp-content/themes/themename/includes/wp_booster/td_data_source.php:284
Backtrace:
require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/themename/page.php’), get_header, locate_template, load_template, require_once(‘/themes/themename/header.php’), td_api_header_style::_helper_show_header, load_template, require_once(‘/themes/themename/parts/header/header-style-9.php’), locate_template, load_template, require_once(‘/themes/themename/parts/header/header-menu.php’), wp_nav_menu, apply_filters(‘wp_nav_menu_objects’), call_user_func_array, td_menu->hook_wp_nav_menu_objects, td_block_mega_menu->render, td_block->render, td_data_source::get_wp_query, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
Suggestions?
Hi,
Your image width must be at least 745x483 as you can see on our demo – http://screencast.com/t/Ohpp7LDCNPwx to fill the whole container. If your featured image is smaller, please note that WordPress doesn’t enlarge images and you will need to use plugin like Thumbnail Upscale to enlarge thumbnails: https://wordpress.org/plugins/thumbnail-upscale/ For upscale use a combination of plugins Thumbnail Upscale + Force Regenerate.
Or you can enlarge it via custom css in Theme Panel > Custom Css: http://screencast.com/t/JfylXNZ08G
.td_block_big_grid .td-big-grid-post-0 .entry-thumb {
width: 100%;
}
Thanks!
Hi,
You can add some margin right to the author using custom css – http://screencast.com/t/TCc3qgoqkW
.meta-info .td-block-author {
margin-right: 2px;
}
Thanks!
Thanks for your help guys.
I decided to build the Authors Page using block to include easily social media, description and a bigger photos.
http://www.techprincess.it/chi-siamo-2/
@Alin thanks to you I solve the avatar problem 🙂
Hello!
I want to change the setting of the big slider on the homepage: show only the main news in the slider. But I can’t find the change settings of the big slider in the template “Homepage + bg – article list”. I see only block without big slide setting. Please, help me.

King regards,
allpetro.ru
Hi,
Sorry for the delay! We had a national holiday yesterday and had the day off.
I’ve tested this and managed to recreate your issue when using an image banner, you can try this custom css in theme panel > custom css section: http://screencast.com/t/0Tbrlaz3L
.single .td-a-rec-id-content_bottom img {
width: auto;
text-align: center;
display: inline-block;
}
Let me now if this still happens and we will fix this as soon as possible!
Thanks
Hi,
My site is frelsitv.com
How can I change the background color of the Row . . . https://www.dropbox.com/s/mrgnmzrb3ji4k1x/blockBackgroundColor.jpg?dl=0 . . .
Have followed your instructions on setting up the Facebook page widget. Works great on the posts but not on my front page. Have posted exact same code in both the widget for posts and the text box for front page.
It even shows on the visual composer until I push “update” and then just the text is there. Have a look. http://brandinginasia.com/
On the front page its on the side under “Ads of the Day” big block.
Thanks 🙂
Bobby
Hi,
Yes, doing you’ve mentioned above is the right way:
1. Rename or delete current newsmag (main theme) folder
2. Upload new version
3. Update social counter and composer
4. Don’t touch child theme
The child theme should only be updated if there are changes mentioned in theme’s changelog. We have added this to our child theme documentation: http://screencast.com/t/2oOPsulTGHPN and modifications made to files that have also changed within update will have to be made again and yes you can upload directly the latest version of the theme.
Thanks