- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsOffset Feature
- TutorialsWhat is Ajax preloading?
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?
Hi, asked and answered. Much like ecommerce has special needs, so does an advertising management system. So, like there is WooCommerce for ecommerce, there are also “systems” to manage users/ads, ad types, expirations, etc.
e.g.,
https://premium.wpmudev.org/project/classifieds/
https://wordpress.org/plugins/another-wordpress-classifieds-plugin/
PLUGIN REPO
https://wordpress.org/plugins/search.php?type=term&q=classified+ad
((I don’t work here . . . )
Hope that helps! 🙂
-
This reply was modified 10 years by
simchris.
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;
}
how to add custom registration field?
for example: i want to add user phone number on registration form & update it in user_meta
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
Perfect! It worked!
One more relative question – How can I center the logo in the floating menu? For example when you scroll up on the website, the logo in the floating menu has too much space above it. How can I move the logo down a little? I want it to be centered (vertically) with the rest of the menu items. [ revgrapher.com ]
Thanks in advance!
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!
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
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
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 the ad below the logo like here: http://screencast.com/t/p9KCCPun
<div class="new-ad">
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); ?>
</div>
Add this css in theme panel > custom code > custom css:
.new-ad{
clear: both;
}
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"
The result should be like here: http://screencast.com/t/HYBdDZM0W0h
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hi
You can use is_front_page() wp function to check when the homepage it’s displayed. Using this function can be made a condition which will display the ad only for homepage, here is an example: http://screencast.com/t/D4k4V3IX
Hope this helps.
Thanks!
How can to make a space before the logo header that i can i add a bannee here example https://www.dropbox.com/s/odvkwcw00vrzhju/Screen%20Shot%202016-03-31%20at%2012.01.04%20AM.png?dl=0
how to add custom registration field on registration form?
for example: i want to add user phone number on registration form & update it in user_meta
Hello Tagdiv
How do i add this code ( &rel=0 ) to stop the related video to newsmag theme via the appearance – Editor , Edit theme, Newsmag! them where to go from here?
The screenshot did not help, please give other option
Thanks
I currently hid the third level subcategory “Mexican” from the MegaMenu drop down but the mobile version still shows it. How can I hide it from mobile?
Example: Food & beverage->Food Reviews->Mexican
Hi there,
I am using Newsmag Travel News template. I would like to remove category label on my home page Big Grid, Block and Slide.
Please see this picture https://onedrive.live.com/redir?resid=E922AC5D85FC9D72!128315&authkey=!AKGtko4cCtDY–0&ithint=folder%2c
Thank you for your spport.
Hi!
Quotation marks are not saved in the Gallery Title.
For example input Title:
Cinderella Charles Perrault, 1919
it’s all right:

Input Title with quotation marks:
"Cinderella" Charles Perrault, 1919
Title is not shown:

Note that Google News is going through a re-indexing right now and will show bizarro results from some sites as they “respider” your content.
I know of several sites where things like the category tag above the headline was showing as part of headline on the results in GN; but wasn’t happening last month, or last year. Or, the author byline was the headline! Etc.
They are also picking up a lot of things like the pages where there is a “related” story at bottom or side, in lieu of the ‘actual’ page where the news is !
So – upshot it looks like they may be trying to phase out the old “scraper bot” or maybe the XML sitemap system is down, and it has “fallen back” to using the full page scraper.
We have also been seeing images being skipped for no good reason.
It’s not just you, but also not theme specific.
Upshot: GN ‘should’ be pulling from your Google News Sitemap — and if the data is messed up there then it will cause issue. If it’s NOT, then it means they are bypassing that and going with the pesky old scraperbot which tries to guess where headline is, even if it’s shown as the headline in the page source (duh!).
Not sure that helps. But we’ve been in GN since it was in beta 12 years ago, so have suffered most of the zigs and zags. I am guessing they are trying to figure out something to integrate AMP in some way, or maybe just they’re having some other transitional thing.
-
This reply was modified 10 years by
simchris.
Hi,
Recently I purchased this theme, could you please let me know how to hide Author name on the posts which admin posts, and show Author name on all other contributors post. For example admin will control all the ‘news’ posts which doesn’t need to show the author info, but for ‘Lifestyl’, ‘Health’, ‘Travel’ etc another guy is handling and he need to show his name on all the post which he posts.
Sorry for the complicated question, hope you understood what I need to do.
Thanks you
Hello Alok_Mishra25,
If you want to move the review box above your post content, you have to alter the code from the file which affects the post template used by you. For example, if you are using post template style 2, you have to alter the code from loop-single-2.php like this -> http://screencast.com/t/kYTK2h74
Thank you for the message!
Hey, my site has been approved for Google News (yay!) but the snippets that come up are wrong, they include the share features in the snippet, has anyone had this issue and know how to fix it?
Here’s the results in Google News: https://www.google.co.uk/search?q=google+news+eurowire&oq=google+news+eurowire&aqs=chrome..69i57j69i60l2j69i64.4063j0j7&sourceid=chrome&ie=UTF-8#q=google+news+eurowire&tbm=nws
The main site: http://eurowire.com/
Hi,
i have 100 authors in my website. i am using newspaper theme. i want to show X author last 30 days 30000 wiev.
I want to sort of the top 10 authors in special page. This ranking should be monthly. This ranking should be start over every month.
for example:
X author in May wiev 10000
X author in Aprik wiev 8000
Shortly i want to show top 10 most viewed authors on month.
design is very simple:
author image Author name
Author Bio
————————————-
author image Author name
Author Bio
————————————
author image Author name
Author Bio
————————————
how can i do this?
Hello hoops,
Our theme uses a lot of predefined thumbnails in blocks and modules. If you check the Theme panel->Block settings area you can see the list with all dimensions of the thumbs wich is used in the theme and which elements -> blocks/modules uses -> http://screencast.com/t/tQuimSer9 If you want to exclude the cropping system wich you have to use the right dimension for your images.
Our theme uses the system of cropping from center to top. The theme uses thumbs to reduce the page size and speed up page loading time. From each image uploaded are generated thumbs for each thumb size used by the theme. Basically, when a post it’s displayed on the page in a block, the featured image displayed is not the one which you uploaded in the media file, it’s a thumb cropped from the original image at the precise dimension. To change the picture orientation most likely you will need a different cropping system. We use a WordPress function – add_image_size() – you can read about it here – https://codex.wordpress.org/Function_Reference/add_image_size – and here – http://www.davidtan.org/wordpress-hard-crop-vs-soft-crop-difference-comparison-example/
Our theme crop (cut) thumbnails in some cases to avoid creating a lot of thumbnails in order to reduce to load more spaces on the server.
If you don’t have the possibility to upload large images you could use a combination of plugins to upscale the thumbs – Thumbnail Upscale and Force Regenerate. For more information about these kinds of plugins, please consult their documentation here -> https://wordpress.org/plugins/thumbnail-upscale/ -> https://wordpress.org/plugins/regenerate-thumbnails/ Also, please ensure that the functionalities of these plugins are not affected by the other untested plugins that could create interference through the theme. Please notice that these types of plugins are not tested with our theme and we cannot provide support for the theme. We recommend them because a lot of our customers uses and we are satisfied about their functionality.
If you want to implement another cropping system for your theme and you are not aware of the steps in this regard, please consider hiring a freelancer/developer to do this for you because we cannot provide custom work at the moment, sorry! Usually, we recommend developers from studio.envato.com.
Hope this helps and let us know how it goes!
Thank you for the message!