- 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
Sorry, I have checked that the local time is correct several times and flushed the cache but everyday the posts stop showing up around 6:00 (00:00 hours UTC time) when selecting “Random Posts Today”. By the way, I am referring to the widget blocks of the sidebar.
Hi Are there any documentation for the widgets that uses the various blocks? For example in each of the blocks there is a setting called sort order, and within it there is a selection called featured, how does that work in terms of sorting featured posts?
I actually manually select certain post to apear in the sidebar, but I also want to keep my sort order I specified in “post ID” filter in the widget, but what should I chose in the sort order?
i try but is not display. i went theme panel > ads and i add this html code <iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/NM0bZdZod2E” frameborder=”0″ allowfullscreen></iframe> to custom 1 than i went to header style- 1 than i add the < ?php echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_1"]‘); ?> here the url of the site http://www.guineehitmusique.com is not display the add i try google add too but not dispaly
Hi Andrei,
Thanks for sending me the above code, I have modified it to how I need.
The only other changes that I need to make are in this screenshot:
http://postimg.org/image/fi92wtnj9/
As you can see, I want to change these two things:
1) RED ARROWS: I need the block titles to float all the way to the margin left as I have done with “review title” (this was done on Photoshop).
2) BLUE ARROWS: I want to change the actual FONT of everything in blue. At the moment they are set to OPEN SANS. Where can I change this so I can choose a different font?
Thanks for all your help so far.
thank you so much!
its working!
but there one part, where its not showing:
the ajax search in the menu bar
maybe you can help me with this…
i guess you have to change something here
wp-content\themes\Newspaper\includes\wp_booster\td_data_source.php
in the block:
static function &get_wp_query_search($search_string) {
$args = array(
‘s’ => $search_string,
‘post_type’ => array(‘post’),
‘posts_per_page’ => 4,
‘post_status’ => ‘publish’
);
$td_query = new WP_Query($args);
return $td_query;
}
Salut,
- Nu cred că m-am exprimat corect. Nu doresc să elimin acele widget-uri, ci doresc să le fac să apară unul lângă celălalt sau măcar să le dau aceeași dimensiune, deoarece cel Google este mult prea mare
- Am introdus codul acela și acum arată OK bannerul respectiv. Totuși, nu mai pot fi accesate butoanele stânga/dreapta din partea dreaptă a lui. De asemenea, precizez că am următorul cod în css http://www.screencast.com/t/4qKcSbVOF1U , iar în Temă>Parts>Header>Style 2 am
<div class="td-container test">, container-ul „test” fiind adăugat la indicațiile unuia dintre colegii tăi, deoarece, fără el, tickerul nu era afișat corect. Se mai pot face optimizări?
<?php echo do_shortcode('[td_block_trending_now header_color="#dd3333" category_id="22" limit="5"]');?>
</div> - Dacă e foarte complica, nu mă interesează deoarece nu este ceva într-atât de important. Știu că în trecut primisem un cod cu loop de la unul dintre colegi și îmi afișa reclama după x articole, însă odată cu Newspaper 6 acesta nu doar că nu a mai funcționat, ba chiar a provocat și unele probleme. Eventual, dacă mai primiți soliciătri și din partea altora, treceți pe lista de funcții noi pentru că n-ar fi rău să existe opțiunea de a adăuga reclame în categorii/etichete din setările temei
- Am urmat pașii, însă nu mai îmi apare conținutul pe acest stil > apare totul până la breadcrumb. Menționez că am făcut modificările așa cum ai precizat, atât în loop 1, cât și în td_module_single_base.php, unde am copiat codul de pe pastebin. Luați vă rog în calcul, pe viitor, îmbunătățirea stilului 1 (să nu mai afișeze atât reclama article top, cât și cea dedicată stilului, să afișeze reclama dedicată stilului deasupra conținutului, iar imaginea în stânga sau viceversa).
Mulțumesc!
Hi TagDiv Team!
The problem is really easy to see, check my site please: http://desarrollotrazos.ucse.edu.ar/index.php/articulos-con-referato/
As you can see, under the articles there’s a LOAD MORE button but when you click it the block images just doesn’t load.
AFAIK it should be working that… did i miss something? could you guys tell me how can i get it work?
Hello,
Social Counter Design:
How to change the Social Counter Design (width & color) and is there any possibility to hide the total number twitter followers and facebook likes?
Blocks Padding:
I want to reduce the padding/Gap between two blocks for example between menu bar and under block / between two blocks on homepage?
Best Regards
Adnan
Hi
Try this css in theme panel > custom code > custom css: http://screencast.com/t/qYSa1a8yygv
.td-footer-container .td_block_7 img{
border: 2px solid red;
}
The indicated expression can be changed from theme panel > translations: http://screencast.com/t/PHCBtMxUzr – http://screencast.com/t/lsOMBvl5
Let me know how it goes.
Thanks!
Hi
Replace the above css with this one: http://screencast.com/t/44TTHHROJZ8
.td-review-summary-content{
font-size: 15px;
}
.td-review .block-title {
background-color: white;
color: black;
float: right;
font-size: 12px;
font-style: italic;
}
.td-review-summary .block-title{
position: relative;
}
.td-review-summary-content{
clear: both;
}
This code it’s just as example and can be customized so that you get the desired result.
Thinks!
Hello fakamaka,
If you want to have the custom title and colours for some desired elements, you can use Text with Title element from Visual Composer without text and you should leave just the Title, like this -> http://screencast.com/t/5Q9zTjMW and then you have to use a bit of CSS code to decrease the extra white spaces. The result you should see here -> http://screencast.com/t/vzu09EOmc
The code is ->
.td_block_text_with_title{
padding-bottom: 0;
}
.td_block_text_with_title .block-title {
margin-bottom:2px;
}
Hope this helps!
Thanks.
Hello.
Is there a possibility to have label like on blocks (Custom title and colours etc.for this block) over custom html or custom widget?
Best regards. Pawel
Hi,
In order to change the post titles on block 12 you need to use this css:
.td_block_12 .td-module-title a{
color:red!important;
}
This will work on any block (almost) if you change the block number to the one you intent to change the color to.
Thanks.
Hi gain and thank you.
I done this at first. But after this, if i change only the limit, then i must have, my tinking if the post reach the limit. Also if we put the limit lets say at “5000” then it will create 5000/3=1666 lines, from which will fill only the number from posts which are at this time (now) attached at this category, lets say 10. So the result will be a very big page displaying only 10 posts.
So with my indervation i have the limit at the number of posts the category “mens lifestyle” has. So if i have 30 posts in category “mens lifestyle”, then the page will create only 30/3=10 lines and will display the page in the right height to display only the 30 posts from category “mens lifestyle”.
So the dificulty for me now is if i have multiple pages, for diferent category every page, in someway to can have the category id, and after this to have the limmit at the number of posts which are asigned at this category.
As the big grid 5 is a class, i assume that every page which have inside a big grid 5, will have an object of this big grid 5 class. And as the big grid 5, have at settings the category filtering, then that object will have in its attributes the category id.
So can you help be how to retrieve this id, in this file wp-content/themes/Newspaper/includes/shortcodes/td_block_big_grid_5.php (which i assume that is the class for the big grid 5 object)?
thank you
Hi,
I’m not sure if it’s block titles you want to change on block 12 or the block title. In your screenshot, the post titles a re black and the block title is red. I assume you are referring to the block title. This can be edited from the block settings here: http://screencast.com/t/pYpmeobIXB
Thanks.
Hi,
I understand now what you want to do, but if you simply change the limit for the big grid 5 element, what’s stopping you from filtering specific categories to it? It’s not like the block will remain stuck with just one category in it’s filter. You can create as many instances of the element as you want and filter it differently from block settings. Simply change the limit like so: http://screencast.com/t/rl0GWM5b and now you can have multiple posts in the big grid, but it will not lose the filters. You can create a page and filter category A, then create another page and filter category B and so on. You can filter categories from the block settings: http://screencast.com/t/gjj0zkEuLxh This way you can have multiple pages with big grid 5 and different categories filtered in the blocks.
Thanks.
Salut!
1)The footer widgets are found here: http://screencast.com/t/E8V4SkYU9A6 If youhave not modified the theme files, then you can remove your widgets from there.
2)you can remove the space using this css code:
.td_block_trending_now.td_block_wrap{
padding-bottom:0!important;
}
.test{
margin-bottom: 0!important;
}
.td-main-page-wrap{
padding-top:20px!important
}
(as a side-note: you have a container in there with a class called ‘test’ that also created white space)
3)To display ads between posts on a specific category page are required lots of customizations and also many tests in order to achieve the desired result. Basically you need to edit the loop for that specific category page such that to display a specific ad-spot after a given number of posts.
All this customizations falls beyond the support can offer you so if you’re not aware of the steps you need to take in this regard please consider hiring a freelancer to do this for you as we can’t offer custom services at the moment.
4)If you want to remove the ad on post style 1, you can do it from here: http://screencast.com/t/RRXPmQTF
For the top ad, it will be a bit trickier as the top ad displays on all post templates so you need to ad a few conditions to the code where the ad is being created. Please use this code: http://pastebin.com/b5ZWGEhf
and replace this part here: http://screencast.com/t/uiYhFyE0rF
This will disable the article top ad for post style 1 and now you can ad a custom ad in the top of the file with a do_shortcode function:
And add it in the file like so: http://screencast.com/t/sKAM9mtVmj
Now if you do not have an article top ad, the text will fill the white space besides the featured image.
Thanks.
ok thanks so much Bogdan…
how about for Block 12, how can i change the title to red color as well…
like as u can see in the LATEST UPDATE block above.
thanks once again!~
Sorry for missunderstanding, maybe is my fault.
i want some pages to have one big grid 5, which will saw all the posts from one category in one big grid 5 (all posts in lines with three posts at every lne, like big grid 5).
with your answer in a prebuying queston:
2. The Big Grid blocks have a limit for posts in the code so you can change it there. Lets take your example Big Grid 5, here you can change the limit – http://screencast.com/t/XmOZHeiWG8F and the result – http://screencast.com/t/EX7UYmjZbK Please note that the Big Grids were designed to handle only a specific number of articles and for some of them you may need additional customizations(big grid 5 seems to work fine even you set it to display more posts). So if you have also basic html/css experience should not be an issue.
I modfied a little the file wp-content/themes/Newspaper/includes/shortcodes/td_block_big_grid_5.php
<?php
/**
*
* Class td_block_big_grid_5
*/
class td_block_big_grid_5 extends td_block {
//const POST_LIMIT = 20;
function render($atts, $content = null){
//Gia na parw to plithos twn posts sthn katigoria
$postsInCat = get_term_by('slug','men-s-lifestyle','category');
$postsInCat = $postsInCat->count;
echo $categories[0]->term_id;
// for big grids, extract the td_grid_style
extract(shortcode_atts(
array(
'td_grid_style' => 'td-grid-style-1'
), $atts));
//$atts['limit'] = self::POST_LIMIT;
$atts['limit'] = $postsInCat;
parent::render($atts); // sets the live atts, $this->atts, $this->block_uid, $this->td_query (it runs the query)
$buffy = '';
$buffy .= '<div class="' . $this->get_block_classes(array($td_grid_style, 'td-hover-1')) . '">';
$buffy .= '<div id=' . $this->block_uid . ' class="td_block_inner">';
$buffy .= $this->inner($this->td_query->posts); //inner content of the block
$buffy .= '<div class="clearfix"></div>';
$buffy .= '</div>';
$buffy .= '</div> <!-- ./block -->';
return $buffy;
}
function inner($posts) {
$postsInCat = get_term_by('slug','men-s-lifestyle','category');
$postsInCat = $postsInCat->count;
$buffy = '';
$td_block_layout = new td_block_layout();
if (!empty($posts)) {
$buffy .= '<div class="td-big-grid-wrapper">';
$post_count = 0;
foreach ($posts as $post) {
$td_module_mx12 = new td_module_mx12($post);
$buffy .= $td_module_mx12->render($post_count);
$post_count++;
}
//if ($post_count < self::POST_LIMIT) {
if ($post_count < $postsInCat) {
//for ($i = $post_count; $i < self::POST_LIMIT; $i++) {
for ($i = $post_count; $i < $postsInCat; $i++) {
$td_module_mx_empty = new td_module_mx_empty();
$buffy .= $td_module_mx_empty->render($i);
}
}
$buffy .= '</div>';
}
$buffy .= $td_block_layout->close_all_tags();
return $buffy;
}
}
But there is a need to make more pages like this. In the one for category “Men’s Lifestyle” is working perfect.
But if i have at the menu three menus “a,”b and c” (which are coming from three diferent pages), and in every page i have a big grid 5 which in settings have at category filter, at page “a” the category “a”, at page “b” the category “b” and at page “c” the category “c”, there is no way to change the code and some how to take the category which we have set at settings in the big grid 5?
so in this code:
$postsInCat = get_term_by('slug','men-s-lifestyle','category');
$postsInCat = $postsInCat->count;
the :”men-s-lifestyle” to come from code, or to change it at $postsInCat = get_term_by('id',20,'category');"
and the number (id) 20 to can take it with code before.?
I hope to understand what i mean now.
The example page i created wth the above modificaton , you can see it here: http://testgeolits.myipservers.gr/Olaballa/?page_id=136
Hi,
From your screenshot, I think you are trying to change the block title from the grid. That is not a page title but rather the post titles from a particular block. These cannot be changed with the theme settings, you will have to use css to do it.
For example on big grids: http://screencast.com/t/zeJsLaWcXFF9
.td-big-grid-post .entry-title a{
color:red!important
}
You can add the code in the theme panel- custom css box.
Thanks.
Hi Andrei,
Thank you for the code above.
For the headings, this is perfect. How can I float the titles so they align left? I will be making the review block title transparent.
Also, I would like to know how to change the actual font typeface. I can’t find this option in the panel?
Hi
You can use one of theme’s ad-spots to display the ad. First insert the html ad’s code in one of custom ad-spots from theme panel > ads then use do_shortcode() function to display a banner ad on top of the page. Just edit the file corresponding with the header style used and add this code like here: http://screencast.com/t/itasx4W4T – http://screencast.com/t/FSgnXBREg3
I’ve used custom ad 1 for this example but you can use any custom ad, just adapt the shortcode. For example if you use custom ad 5 the shortcode will be: td_block_ad_box spot_id="custom_ad_5"
Thanks!
Hi
Try this css in theme panel > custom code > custom css: http://screencast.com/t/Cjg6PN4I
.td-review-summary-content{
font-size: 15px;
}
.td-review .block-title {
background-color: white;
color: black
}
Let me know how it goes and if this is not what you mean please provide more specific details about what your trying to do, also a screen pointing the desired result will help, so I can inspect this closer and get back to you with the proper code.
Thanks!
Hi
Try this css in theme panel > custom code > custom css to remove the category tags from big grid: http://screencast.com/t/Ho8FUsz4sjx
.td-big-grid-post .td-post-category{
display: none;
}
To remove the category tag from slider from slider just deactivate it from theme panel > block settings > category tags on modules/blocks: http://screencast.com/t/VcTBnCDshf4
Thanks!
Hi,
Unfortunately neither of us can understand what it is you want to achieve. As I understand it, you want a page with multiple big grid 5 elements that show the same category. This is easily done from the block settings themselves. Create a page and add as many big grids as you want and filter them with that particular category and either use an offset or activate unique articles. The re is no other ID than the one I pointed in the reply above.
The category in the files is grabbed with this function : https://developer.wordpress.org/reference/functions/get_category/
The code you seek is NOT in td_block_big_grid_5, but rather in the module file newspaper/includes/modules/td_module_mx12.php
http://screencast.com/t/eXSPNfQbLx
The get_category function is simply called here, but it is located here:
http://screencast.com/t/mKxbqUfFb2mV
So as you can see it gets more complicated. It’s much easier to simply use the theme settings where you can and avoid changing the theme files as much as possible.
Thanks.