- NewspaperDesign your Post Pages using the Cloud Library Templates
- NewspaperDesign your post pages using the Default Templates
- NewspaperPage templates
- NewspaperCreate a form contact page
- NewspaperCloud Library Templates
- NewspaperCloud Library – Category Templates
- NewspaperHomepage – How to build and set it
- NewspaperPost templates
- NewspaperDefault post templates
- NewspaperCategory templates
- NewspaperPost template ads
- NewspaperSingle External Shortcode and External Shortcode
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- NewspaperSearch setup for custom post type
- NewspapertagDiv Composer – Website Manager
- NewspaperBookmark – Save For Later
- NewspaperFlex Block Builder and Flex Loop Builder
- NewspaperModules Builder in Newspaper Theme
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewspaperCreate a frontend submission form
Hello pgmast,
If you want to add some custom HTML code to our theme you have to do some altering in the core files corresponding with the files where the pages are created. As you can see in our documentation, we have 3 different templates for pages, like this -> http://screencast.com/t/dvYCETSyqE and you have to insert the codes in them, depending on which template is used, like this -> http://screencast.com/t/46UL1UBZM7 And for each header/footer template used by you, it is necessary to do changes in these files -> http://screencast.com/t/ixygT0H0Iz2W -> http://screencast.com/t/RttUYxRFvdAw
Hope this helps!
Thank you for the message!
Hi
I’m having a problem with images on the front page NewsMag using default page template. Images work on some posts. Where the images don’t work, if you right click where the image should be and open in new tab, the images displays correctly.
I have run the regen thumbnails.
Running Ubuntu Server. Ubuntu 14.04.4 LTS
WordPress 4.4.2
Website: http://motoringevents.net/blog/
Hi
The theme uses the WordPress default query for custom taxonomies which it’s made in loop.php file here: http://screencast.com/t/vGXPifsf31
The query from td_data_source.php affect only theme’s blocks, or the content from Visual Composer editor. To affect the content displayed by the loop you have to write a custom query. Depending where you want to display posts from custom taxonomy the file differs. You can make a new page template with a custom query where only posts from one or more taxonomy are displayed.
Please note that working with custom taxonomies in WordPress require good coding skills and also many customizations in theme files. Here I found some information which may help you in this regard:
– https://codex.wordpress.org/Class_Reference/WP_Query
– http://www.wpbeginner.com/wp-tutorials/create-custom-taxonomies-wordpress/
– http://code.tutsplus.com/tutorials/taxonomy-archives-list-posts-by-taxonomys-terms–cms-20045
If you still need guidance on this or you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you.
Thanks!
Why am i getting the below errors when wp booster is enabled. i have tried disabling and enabling the plugin and that didn’t work. i even tried uninstalling and reinstalling the plugin. i am only getting this when i click on the menu and it takes me to the category pages.
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_category_template_2 is not set.
/home/content/69/10519169/html/hiphopden/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
Missing parameter: ‘file’
/home/content/69/10519169/html/hiphopden/wp-content/themes/Newsmag/includes/wp_booster/td_autoload_classes.php
wp booster error:
The category template td_category_template_2 doesn’t exist. Did you disable a tagDiv plugin?
/home/content/69/10519169/html/hiphopden/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
Simply paste the YouTube video URL into the ‘featured video’ box on the post page.
Paste a link from Vimeo or Youtube, it will be embedded in the post and the thumb used as the featured image of this post.
You need to choose Video Format from above to use Featured Video.
Notice: Use only with those post templates:
Post style default
Post style 1
Post style 2
Post style 9
Post style 10
Post style 11
Make sure you select “Format – Video” or the video will not show
Hope this helps
Hi
The sidebar for archive page can be set from theme panel > template settings: http://screencast.com/t/G6KahfUyq
By default on archive page you can’t use the page-builder from Visual Composer. However you can use do_sortcode function to display blocks on archive page. First you need to get the shortcode from Visual Composer: http://screencast.com/t/vDPzUEldhk – http://screencast.com/t/lqxAJrJcjwn0 then paste it into the indicated function like here: http://screencast.com/t/GgZz9psSiVv
<?php echo do_shortcode('[vc_row][vc_column][td_block_6 category_id="28" limit="6"][/vc_column][/vc_row]');?>
This code will display a block 6 on archive page: http://screencast.com/t/4LDqqUUah This is just a basic example but you can customize it in many different ways.
Let me know how it goes and if this is not what you mean please provide more details.
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hello,
Please make sure you have comments enabled in the discussion settings of WP, then make sure you have them enabled in the theme panel: http://screencast.com/t/wILJT7jw1LP
Only the default page template will support comments though.
I hope this helps.
Thank you!
Hello,
1) You can simply add your mp4 video as any other image using the media library: http://screencast.com/t/VCv14GqUDQ
2) I’m not sure what you mean with the page template. If you want to have different post templates you will need to alter the theme files. There is no such option in our themes. You can follow this topic to see how you can edit the theme files to add a specific post template to a specific category: https://forum.tagdiv.com/topic/different-post-template-for-one-category/
Thanks.
Hi
Sorry for misunderstanding.
The above solutions works only when a category page it’s displayed. If you want to change the header ad for o post from a specific category then you need to use the in_category() function. Here is a basic example for caribbean and destinations categories on my side: http://screencast.com/t/NDVOIEvs1bg
<?php
if (in_category(array('caribbean','destinations'))){
echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');
}
else{
locate_template('parts/header/ads.php', true);
}
?>
This code will load a different header ad for all posts which belong to caribbean and destinations categories.
Note: if you want to change the ad for a post from a specific category the required function is in_category() but if you want to change it for a category page then you have to use is_category().
Hope this help.
Thanks!
-
This reply was modified 10 years by
Andrei L..
Thanks for your response, but I have two more questions.
One: How do I add mp4 videos to my site?
Two: Is it possible to set up a different post template for each page templates or menus?
Hi
By default the theme doesn’t have a travel template in Visual Composer. However you can use this shortcode to reproduce it: http://pastebin.com/g6nv9GrC Just paste the shortcode into a new page like here: http://screencast.com/t/KJnkV9UXMw0 and you will get the same layout but with your posts.
Hope this help.
Thanks!
Hello Dariob,
Please try to change the template to be the pagebuilder+page title and the H1 tag will be affected by the fonts from Theme fonts. I have tested on my side and seems to work as expected.
Thank you for the message!
Hi
1. The date from post content can be deactivated from theme panel > post settings: http://screencast.com/t/SWEFUJYsZ
2. You can use one of the templates included in Visual Composer to obtain the same layout as on our demo: http://screencast.com/t/ZVtz5lbfWp
2.a If you you install the demo without content then only the style and colors will be imported, not the post/pages. So you can install any demo: http://screencast.com/t/aDinojMips0f then add your own posts.
3. Try do deactivate this options from theme panel > template settings then test the page again: http://screencast.com/t/LPPZ7xr7m If the link is still there please provide your site url so I can inspect it closer.
Thanks!
Hello aro_007,
Our default template does not support the sidebar as default. If you want to use this feature for this kind of template for pages, you have to set it by using Visual Composer with Widgetised Sidebar, like this -> http://screencast.com/t/fafYpUrr7i
For more information about our templates, please consult our documentation here -> https://forum.tagdiv.com/page-templates-2/
Thank you for the message!
Note there are different post settings you can choose “per post” on the post page.
Also, different “default” post templates have different layouts as far as header, columns.
Good place to start, for exploring that 🙂
Hi,
I want to use the travel template but is doesn’t show in the options. I already installed the demo settings but in when i try to create the home page with the visual composer, travel template is missing.
Hope you can help me.
Thanks,
Engels H
The tag page doesn’t work on Newspaper. Pl help
Example: http://www.pravsworld.com/tag/life/ (The page is not loading the theme). Just renders homepage template.
Help!
Hey guys, in the coming days will launch the online shop on my web site and I have a question that I hope you strive together to solve.
Can I use newapaper for the home page and then another one just for WooCommerce? The template for the store that I like to use is this:
http://themeforest.net/item/flatsome-responsive-woocommerce-theme/full_screen_preview/5484319
Hi,
I disabled the WP generic comments and installed a plugin for Facebook comments. However, on single post pages I still see a line “No Comments” from the generic comments template. I tried to locate where to edit or remove this on comments.php and many other places, but I couldn’t.
See a screenshot on this link – https://drive.google.com/file/d/0B95NvGMpDn8cMHJwam1RQzFVN0E/view?usp=sharing
Basically, I want to remove that ‘No Comments’ text from the single post pages.
Please help.
When selecting the ‘Default Template’ for my page, I have used the Visual Composer to include a sidebar however the left column spans the full width and the column content flows beneath all that. However, if I select either of the other two templates ‘Pagebuilder + Page Title’ or ‘Pagebuilder + Latest Articles + Pagination’, the sidebar holds its place. Anyone have any idea of what is going on or what I might be doing wrong?
hello,
i use newsmag theme on global.minutenews.fr and i want to change the order of the homepage loop with this custom filter. i use the template VC + last post + pagination but i tried with all template and it’s not working because it seems it’s not the main query .
here is my filter :
// Alter the homepage Query to order by sharecount and date
function hp_pre_get_posts( $query ) {
global $query_string;
// do not modify queries in the admin
if ( is_home() && $query->is_main_query() ) {
$query->set(‘orderby’, ‘date meta_value_num’);
$query->set(‘meta_key’, ‘socialcount_total’);
$query->set(‘order’, ‘DESC’);
}
if ( is_category() && $query->is_main_query() ) {
$query->set(‘orderby’, ‘date meta_value_num’);
$query->set(‘meta_key’, ‘socialcount_total’);
$query->set(‘order’, ‘DESC’);
}
// return
return $query;
}
add_action(‘pre_get_posts’, ‘hp_pre_get_posts’);
can you help me ?
Hi, i have a custom PHP codes running in 3 static pages. I have created the pages using the wordpress back-office, and writing the title and using the default template.
For example, the ID of one of them is 100, with slug “contacto”.
I folowed the Template hierarchy and re-named a copy of “/Newspaper/page.php” file in my theme child.
Single Page #
custom template file – The page template assigned to the page. See get_page_templates(). page-{slug}.php – If the page slug is recent-news, WordPress will look to use page-recent-news.php page-{id}.php – If the page ID is 6, WordPress will look to use page-6.php. page.php singular.php index.php
In my case i chosse using this name: page-archive.php (but i tested with page-100.php too)
I am running this in mi localhost and in other hosting for testing purposes, and are working great.
Working in a new server:
The strange thing is that now, i have imported 160.000 news , and for an unknown reason this hierarchy don’t work any more. Now is working in localhost.. “the same files”!! but in the real production server this is not working.
Then i created all these files with empty content. Only with the line <?php echo ‘page-slug.php’;?>.
And they never load!.
Why is this happening?.
Hello,
i ran a few tests and I see now where this is going. There is a way to display the title and breadcrumbs on the default template if you do not use visual composer. You can add as many paragraphs as you want, but only in classic mode. If you activate the backend editor (visual composer) then the default template will remove the breadcrumbs and title. In order to make sure you do not have any visual composer elements on your page, you can check the text mode: http://screencast.com/t/1s8DmjF6xBGj
I hope this helps.
Thanks.
This all came about because of a normal page that I added that uses the Default Template
However, this page displayed the H2 title and the bread crumbs.
http://www.darts.world/cookie-policy/
Any ideas?
I am happy to add the pages using a default template without the bread crumbs.
The only issue though is that when I add my own H2 title, its low down on the page due to saving space for the bread crumbs and pre-populated title that don’t display?