- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsDefault Block Settings Guide
- TutorialsOffset Feature
Quick follow up:
I’ve managed to edit the code above to show the category I want and customized it appropriately. However, when I duplicate the code to make a second “block,” I only get a header with no posts. Is it written in such a way that it can’t be duplicated? Here is my modified code:
<div class="td-container td-pb-article-list td-main-content" role="main">
<?php if ( empty( $paged ) or $paged < 2 ) { ?>
<h4 class="block-title"><span>IndyCar</span></h4>
<?php }
// query used on Latest Articles section
$wp_query_args = array(
'ignore_sticky_posts' => 1,
'post_status' => 'publish',
'posts_per_page' => 5,
'paged' => $paged,
'category_name' => 'indycar'
);
query_posts($wp_query_args);
locate_template('loop.php', true);
wp_reset_query();
?>
</div>
<div class="td-container td-pb-article-list td-main-content" role="main">
<?php if ( empty( $paged ) or $paged < 2 ) { ?>
<h4 class="block-title"><span>Sports Car</span></h4>
<?php }
// query used on Latest Articles section
$wp_query_args = array(
'ignore_sticky_posts' => 1,
'post_status' => 'publish',
'posts_per_page' => 5,
'paged' => $paged,
'category_name' => 'sportscar'
);
query_posts($wp_query_args);
locate_template('loop.php', true);
wp_reset_query();
?>
</div>
Thank you.
Thank you so much for the response. I’d like to change the sorting of the grid to recent, so this helps. I’d also like to replace the recent list of articles under that with blocks for specific sections like those that are found on the main theme. Is there a way to edit the code to accomplish this as well?
Example:
<div class="td-container td-pb-article-list td-main-content" role="main">
<?php if ( empty( $paged ) or $paged < 2 ) { ?>
<h4 class="block-title"><span><?php echo $td_list_custom_title; ?></span></h4>
<?php }
$posts_per_page = get_query_var('posts_per_page') ? get_query_var('posts_per_page') : 10;
// query used on Latest Articles section
$wp_query_args = array(
'ignore_sticky_posts' => 1,
'post_status' => 'publish',
'posts_per_page' => $posts_per_page,
'paged' => $paged,
);
query_posts($wp_query_args);
locate_template('loop.php', true);
echo td_page_generator_mob::get_pagination();
wp_reset_query();
?>
</div>
Example: could I take the above code and limit the query to a single category? And, repeat the code several more times to create additional blocks?
Thanks again.
Hi
The featured image doesn’t appear when editing my page.
Also, the templates in the pages are not the same as it is set in the posts, isn’t suppose to be the same?
Thank you
Hello ndmanh2002,
Unfortunately, our theme does not have such a simple option that allows you to set Most Popular sorting for your category page but only if you pick from the filter button, sorry! Please notice that this is not a simple task and require to make a lot of additional customizations through code in order to achieve as you like. As a hint, you will have to alter the code from td_category_template.php core file, like this -> http://screencast.com/t/56uMHdHZM Also, if you are not aware of the steps in this regard, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!
Thanks for your understanding!
Hello jgreenwood,
I have checked your website and I saw that you are not using the Visual Composer for your custom page template. Also, please notice that the Smart Sidebar can be used only through Visual Composer. So, please try to adjust your page template to Visual Composer in order to achieve as you wish. As a hint, please notice that you will need to have these classes -> http://screencast.com/t/hlbmWtrPs in order to achieve best results. For more information about our smart sidebar, please check our documentation here -> https://forum.tagdiv.com/smart-sidebar-2/
Please notice that you are not aware of the steps in this regard, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!
Thanks for your understanding!
Hello,
If you would like to place an ad in the category pages, you need to edit the theme files and add a do_shortcode function like so: http://screencast.com/t/DYiP4BqzgV3V
You have to do this for every category template you use as each one has it’s own file.
Make sure you have an ad set in custom ad 1.
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
Thank you!
hi
just for information, the problem has been fixed, i have to enable option “smart sidebar” on the theme panel > template setting page
thank you
Hello, I have custom page template I create based on Newspaper theme single.php … but for some reason, sidebar on my template page does not do sticky smart sidebar action … I cannot figure out why, all code in template sidebar is the same … any ideas? I am missing css or something?? Here is page: http://www.vintageguitar.com/random-posts-test-page/
Thank you for help! — Joe
Hi,
i’ve an issue in backend while I use the Visual composer. Is a JS bug, in a console I found.
With this bug I can’t use the Visual composer in backend, cause the page crash.
Uncaught TypeError: $template.get is not a function – backend.min.js?ver=4.9:6
I’ve the last versione of theme / plugin
Thanks
We receive an error overtime we try to create a page or post template. Basically when we finish designing the page in Visual Composer we click on the Templates button, then click on My Templates. We type in a name for the template and click save template. We see the following message: “Error while saving template”
Hey guys, I also submitted a different help question on the forum yesterday. So basically, I have this sidebar that I want to use fully on desktop, but not on tablets or mobile phones. Can this be made possible? I like the left sidebar instead of the right, but, when I use it on my phone or tablet, the sidebar comes first and blocks out the article title and content right away. I you’d like an example of what I’m looking for, i want it to be similar to the one on lakersnation.com. Thanks for your time. In the meantime, I’ll disable a sidebar from my post/page template.
Hello broadstone,
Please notice that your regular page displays your posts with Block 18, as you can see here -> http://screencast.com/t/3LSxCvpTnpA and the Block 18 uses two type of module -> module 10 and module MX8. So, if you want to have the similar design for your category page, you will have to set your Article Display View to be Module 10, for your category page, like this -> http://screencast.com/t/ytPa9lfsQ and then your category page will display the same layout. For more information about category template, please check our documentation here -> https://forum.tagdiv.com/category-templates/ -> https://forum.tagdiv.com/how-category-settings-work/
Hope this helps!
If is not what you mean, please provide more details about your desired changes so I will be able to provide a more accurate response.
Thanks.
Hi
By default you can’t use Visual Composer on category page. Each category page can be customized from theme panel > categories: http://screencast.com/t/b39J3GUDMl There is a possibility to insert elements from Visual Composer on category page by editing the code. Fore more detail please check these topics where I’ve provided similar solution: https://forum.tagdiv.com/topic/show-category-slider-instead-of-big-grid-od-category-pages/ – https://forum.tagdiv.com/topic/custom-template-for-category/
I hope this helps.
Thanks!
How do I update the Newspaper theme?
I’ve been running Newspaper for a while.
Obviously, I have a lot of configuration and customization I don’t want to lose.
I want to update the theme to the latest (I think I am on V 6.3.2.
How can I safely update the theme without messing up my current site?
I see text in the Newspaper theme that says:
“To update from version 4 please run this update script. Note: please backup your site before updating!”
But if I click the “update script” it pops up a warning that tells me it will mess things up:
“Are you sure? Please backup your site before running the update script!
WARNING: THIS IMPORT SCRIPT WILL CHANGE YOUR SIDEBARS, WIDGETS, TEMPLATES ON PAGEs, TEMPLATES On POSTS AND SHORTCODES
WARNING: AFTER THE IMPORT SCRIPT RUNS IT CANNOT BE ROLLED BACK AND YOU CANNOT GO BACK TO VERSION 4 ONLY FROM A DATABASE BACKUP.”
Bottom line — I want to update Newspaper to the latest and greatest (including Visual Composer), but I want to keep my site intact.
JD
hello~
I’m sorry, but I can not speak English well..
I got this question
1.How did you move this video template to the main page Without text?
http://demo.tagdiv.com/newspaper/td-post-after-effects-guru-tracking-and-stabilizing-footage/
please!
Hello discoveringlisa,
Please notice that each our demo has their own style with different Visual Composer elements and Revolution Slider. If you have installed the baby blog, you will have to make a new page and customize it by your desire using these elements. Also, please notice that the Revolution Slider come bundled with our theme and it is not necessary to register to use the sliders. For more information about how you can use the Revolution Slider, please check their documentation here -> https://www.themepunch.com/revslider-doc/slider-revolution-documentation/ As you can see, this plugin is more complex and has a lot of feature through it. Please try to understand very good all these functionalities of this plugin and try to implement yourself all of these on your side because these involves customization services and we cannot provide custom work at the moment, sorry!
As you can see here -> http://screencast.com/t/zYCIOQ13kNF this is the backend for your baby blog -> it is used the pagebuilder+latest articles template with the default sidebar for the right. Also, the footer template is style 14, like this -> http://screencast.com/t/gtnMEV9J
For more information about our footer templates, please check our documentation here -> https://forum.tagdiv.com/footer-templates/
Thank you for your understanding!
Hi
You can use page-builder+latest to build your page. In Visual Composer add all desired elements like grids or blocks and at loop article part set the desired module to display latest article part: http://screencast.com/t/jTGnysihPz
For more detail about how to set a homepage please check our documentation: https://forum.tagdiv.com/newsmag-page-templates/ – https://forum.tagdiv.com/newsmag-homepage-how-to-build-and-set-it/ – https://forum.tagdiv.com/newsmag-how-to-use-visual-composer/
Let me know if you need further assistance on this.
Thanks!
Hi
The default template display page’s title when you’re not using Visual Composer on the page. When you’re using VC’s page-builder to ad block on the page the title is not displayed. For pages where you want the title to be displayed you can use page builder+title as that page template always display page’s title.
Also the above css hide page’s title for each page which uses page template + title. If you want to hide it only for a specific page replace .page-template-page-pagebuilder-title-php with .page-id-abc where abc it’s the numerical id of the page. To get page’s id follow this link: http://screencast.com/t/RHNZEYuPX
Thanks!
Hi,
I’d like to combine the elements I like from the various demos. How can I mix and match the various elements that I like to build a home page, page, or post template?
For example, I like the “td-grid-style-1” of the Newmag Default Demo but want to modify the Default home page to include the “td-pb-span8 td-main-content” style list of articles found in the Sports Demo Home page.
Would the modification need to occur in the child theme’s css file or rather one of the theme’s php files?
Thank you.
That worked somewhat. The H1 through H6 fonts now follow the settings in the theme panel for the Make It Easier page. And, it doesn’t have title on the page.
I have a Contact page, but now it won’t show its title, before it did. I have other pages with the “default” template and their titles appear. The Contact and the other pages appear to have the same set-up and template, but display differently.
The Contact page really needs to have a title. If I would add pages in the future, they would likely need titles too. With the new CSS you offered I pasted into the theme panel, I’m assuming new pages won’t have titles.
Is there a way to exclude the title for just a particular page? In this case, Make It Easier.
Hello
1)Please notice that the style for default demo template is made custom but please notice that you can replicate this style for your side if you will add the default template from your Visual Composer, like this -> http://screencast.com/t/mzS1sEznQt -> http://screencast.com/t/JgJGfTrxEM
2)For more information about the Instagram block, please check our documentation here -> https://forum.tagdiv.com/instagram-widget/ Please notice that this is a Visual Compose element and you can customize it from your backend editor from your front page.
Hope this helps!
Thank you for your understanding!
Hi,
My screenshot suggested adding a shortcode inside a page template file. What that means is addin a do_shortcode function like so:
<?php echo do_shortcode('YOUR SHORTCODE HERE');?>
This line of code goes inside one of the post template files. Every post style you chose in post settings has it’s own file I pointed in the above screenshot. you can add this line of code inside different parts of the file for different positioning results. If this is too complicated, then you need to hire a freelancer to help out as this represents customization and above that, rss plugins are not tested with our theme so I cannot provide a solution as it will be just ‘guess work’.
Thank you for your understanding!
Hi
This is the default functionality when Visual Composer it’s used on page template default. You can use page-builder+title and hide page’s title using this css in theme panel > custom code > custom css: http://screencast.com/t/Ykcl5S7kylOG
.page-template-page-pagebuilder-title-php .td-page-title, .page-template-page-pagebuilder-title-php .td-page-header.td-pb-padding-side {
display: none!important ;
}
.page-template-page-pagebuilder-title-php .td-page-content{
margin-top: 0px;
}
Thanks!
Hi Bogdan,
As started earlier, I’m using WP RSS AGGREGATOR for my news feed, It looks like I have to place a short code to the them ( [wp-rss-aggregator] ) I need help on where to place the short code
Hi,
As their official documentation states, you can either add it directly in the post content or in the theme template files here: http://screencast.com/t/xkE3LCYb
Every post style has it’s own file. You can use the do_shortcode function as theiur docs state at the bottom of the page
Thank you!
HI Bodgan,
I need help with adding the shortcode, I now I added a shortcode for the video player, any tutorial on adding the shortcode, just can’t work around the screentshot sample you sent me.
Regards,
Stanley
I have a page created in VC. When I go into the Newsmag theme panel > Theme fonts > Pages. I select the fonts and sizes for H1 through H6. On the page, those fonts don’t change from the default font.
I’m using the “default” template. The page is http://helpuconquer.com/make-it-easier/
Interestingly, when I switch to the “Pagebuilder + page title” template, the fonts change to the ones specified in the Newsmag Theme fonts settings.
However, I don’t want a page title on this particular page. But, I do want to be able to change the fonts and sizes.
How do I make this work?
Thanks,