- NewsmagPage templates
- NewsmagCategory templates
- NewsmagFooter templates
- NewsmagDefault post templates
- NewsmagPost templates
- NewsmagHomepage – How to build and set it
- NewsmagtagDiv Composer Tutorial
- NewsmagCustom Post Type Support
- NewsmagNewsmag documentation
- NewsmagHow to use the Visual Composer plugin
- NewsmagHeader styles
- NewsmagSmart sidebar
- NewsmagCategory grid styles
- NewsmagCategory top post styles
- NewsmagHow category settings work
- NewsmagFeatured images
Hi,
You can add a text with title element using VC page builder: http://screencast.com/t/BdrvjYWFpC and customize it like you want, then switch to classic mode view, get the shortcode for it: http://screencast.com/t/C5xyIM5o260 and add it on comments template using the do_shortcode() function, like this: http://screencast.com/t/42KzpfRp
Result: http://screencast.com/t/wIsrHucJ
Thanks
Hi,
Glad you figured it out!
Regarding the sidebar, I have noticed that you are using the default page template: http://screencast.com/t/spbVpGtN
In that case you will have to add you custom class in page.php template, like this: http://screencast.com/t/m4NUcTZNv
You will not find a different class on sidebars on templates, that is the point, you will have to add it yourself so you can target the sidebar you use on that template and customize it like you want using custom css:
Result in my example: http://screencast.com/t/Y8d2bUtFwaz
Thanks
Hi,
Right now I can see that the blog page it’s set as your homepage, you can change this from WordPress Dashboard > Settings > Reading and chose a page you designed as your homepage: http://screencast.com/t/vdcOwLKH6s
You can create the same layout and design for your homepage like this:
1. First add a new page, add a name for it(which you will set in the Reading settings as a homepage), after this set the template, then switch to “Classic mode” like this: http://screencast.com/t/rBoKKS5a0F
2. Secondly change the to “text” view and add the code from below, like this: http://screencast.com/t/TnCeQsNyXfn
The code for the homepage:
[vc_row el_position="first last"][vc_column][td_slide_big limit="8" tag_slug="taggggggg"][/vc_column][/vc_row][vc_row][vc_column width="2/3"][td_block2 limit="6" custom_title="DON'T MISS" ajax_pagination="next_prev" show_child_cat="all" category_id="19"][td_block1 limit="5" header_color="#f65261" custom_title="TECH AND GADGETS" ajax_pagination="next_prev"][td_ad_box spot_id="custom_ad_1"][td_block2 limit="6" custom_title="TRAVEL GUIDES" ajax_pagination="next_prev" header_color="#82b440" sub_cat_ajax="n"][/vc_column][vc_column width="1/3"][vc_widget_sidebar sidebar_id="td-demo-1"][/vc_column][/vc_row][vc_row][vc_column width="2/3"][td_block2 limit="6" custom_title="FASHION AND TRENDS" ajax_pagination="next_prev" header_color="#ff3e9f"][/vc_column][vc_column width="1/3"][td_block4 limit="1" custom_title="EDITOR PICKS" ajax_pagination="next_prev" header_color="#2b2b2b"][td_ad_box spot_id="sidebar"][vc_wp_tagcloud taxonomy="category"][/vc_column][/vc_row][vc_row][vc_column width="1/1"][td_ad_box spot_id="custom_ad_1"][/vc_column][/vc_row]
3. After this switch back to “Backend Editor” and customize the blocks with your content by editing them from here: http://screencast.com/t/0TjfKvN8U18 Do the same for sliders, sidebars, widgets, you can do it as you like.
4. Finally go to WordPress Dashboard > Settings > Reading and set the “Front page displays” as a static page and select your newly created homepage instead of the blog page.
Please make sure you follow our documentation, we have added there guides on how to use the theme right.
Hope this helps!
Thanks
Hi,
Thanks for your suggestion. We will consider this, the next theme updated is scheduled for the end of next week.
Please send an e-mail at contact@tagdiv.com and we will send you an blank page template.
Thanks
Hi,
You can use the same method I have suggested above. Here are the steps:
1. Use the page builder to create and customize block 5(which is made using module 4) to show the latest articles from all categories: http://screencast.com/t/UmiKiMHW
2. after you added and edited the block switch to classic mode: http://screencast.com/t/oNsv2jvf5po and get the shortcode for the block: http://screencast.com/t/J88Sz3HwG
3. You can add the block using the do_shortcode() function to echo the block into the posts template you want to display it, like I pointed above: http://screencast.com/t/TxqQdtaD7
Will show up like this on post page: http://screencast.com/t/BDU8KNvdk
Thanks
Hi,
If it’s not an widgetised sidebar which you can add via pagebuilder then you will probably need one. In that case you will have to edit and add it to the page template you are using to create the page: http://screencast.com/t/MMjMqfGVI6Qa – > http://screencast.com/t/9eRyminqOz3e
Thanks
am using bg without article list template
found it here already page-homepage-slider.php (parts/page-homepage-slider.php), right?
but what code/where do i put it to randomize the posts?
thank.
The edits are good but they only apply to one of many possible templates your posts can have. Do the exact same code edit (uncommenting the byline) in each of the following files:
loop-single.php, loop-single-1.php, single_template_2.php, single_template_3.php, single_template_4.php, single_template_5.php
And if you want, a similar edit for each of these files in includes/modules (the modules display posts in blocks and archive pages mainly):
td_module_1.php, td_module_2.php, td_module_3.php, td_module_4.php, td_module_5.php, td_module_6.php, td_module_8.php, td_module_9.php, td_module_aj_search.php, and td_module_search.php (if it isn’t already uncommented in that last one).
Happy editing!
Hi guys,
It would be a great feature if a blank page template gets added in the next theme update. It can be very useful for creating landing pages.
Would you please do it? When is your next update coming?
Thanks,
Sheikh
Hi,
In that case you will need to add the background using background-image: url(''); via css and target the container that you want to add the image as a background.
Yes, you will have to add a class, like this:
<div class=”span4 column_container my_custom_class”>
You need to do this for templates that you can not target other.
For the post page template for the sidebar you will not have to add a class because there is one which you can use: http://screencast.com/t/iBSu7S7VKXx
Thanks
hi,
1. Set your page like this: http://screencast.com/t/mFS78jdGSR and add your sidebar using the template settings, you will get this result: http://screencast.com/t/hQjbwmW1LNQT
2. Regarding this: http://screencast.com/t/mmbsde2GF the white space is there by default: http://screencast.com/t/jrfCYsVwbQI
You can chose to hide the title if you don’t want it, like this: http://screencast.com/t/eYzG6v7g
3. You can use the child theme: https://forum.tagdiv.com/child-theme-documentation/ or you can edit the file you want to modify then copy your modified version of the file into a new file and save it, then follow the update log each time the theme updates and check if those files you have modified have changed, if they haven’t changed you can replace them with your own modified files else you will have to make the changes to the new files.
Thanks
-
This reply was modified 11 years by
Lucian.
When we create pages, even if I click on the “no sidebar” icon, it keeps the space of the sidebar.
We’ve tried various templates
Any thoughts?
Hi,
Work fine for each template, I have tested this, make sure you uncomment it from each post template if you are using other than the default one:
You have to uncomment it from the single_template for post templates 2, 3, 4, 5: http://screencast.com/t/VsSNqON2U5
Regarding the twitter button, you will need custom work for it and, unfortunately we cannot offer custom work as we work hard on the development, updates, fixes and support. You can always get a freelancer from sites like: http://studio.envato.com/ if you don’t know how to do it yourself.
Thnaks
hi,
You can do it via css and add the css in theme panel > custom css. Please provide more details about what are you trying to achieve, also send your site’s URL and a screenshot with the image are you referring.
1. You can change the featured image size using post templates: https://forum.tagdiv.com/topic/newspaper-v-4-0-topic/#post-15809
2. Depends on which small feature image you refer to, you can chose different modules to display posts on page with different images sizes, if you refer to the thumbs from pages. Also can set the feature image not o be cropped from theme panel, like this: http://screencast.com/t/wlnlDBSpgS
Hope this helps.
Thanks
Hi,
Sorry for the delay. I have checked your site and noticed that you use the Homepage with background template so the big slider from the top of the page doesn’t have any posts because you don’t have any posts in your featured category, you need to add posts into featured category which will show up in the slider.
Thanks
I need not just to change the colors of menu and header, i’ve got some templetes which i’d like to use as a background.
Did i get you right that i need to add a specil class here?
<div class=”span4 column_container”>
<?php get_sidebar(); ?>
</div>
And then i can use custom css for this class? Can i add a backgrond image for it, not just to change the colors?
And your example was for category page template, i want to change sidebar on post templete too, i looked at loop-single file, but didn’t find there anything about sidebar..
I tried to implement as per your instructions. Please check this screenshot it was with the_field.
I don’t know where i am making a mistake. I again changed the code to get_field and it still remains the same. Here you can see it.
Here is the full code of loop-single-1.php in which i am inserting.
<?php
/**
* The single post loop for post template 1
**/
if (have_posts()) {
the_post();
$td_mod_single = new td_module_1($post);
//show the breadcrumb
if (get_post_type($post) == 'post') {
echo td_page_generator::get_single_breadcrumbs($td_mod_single->title);
} else {
echo td_page_generator::get_page_breadcrumbs($td_mod_single->title);
}
?>
<article id="post-<?php echo $td_mod_single->post->ID;?>" class="<?php echo join(' ', get_post_class());?>" <?php echo $td_mod_single->get_item_scope();?>>
<header>
<?php echo $td_mod_single->get_title();?>
<div class="meta-info">
<?php echo $td_mod_single->get_category();?>
<?php //echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
<?php echo $td_mod_single->get_commentsAndViews();?>
</div>
</header>
<?php if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) { ?>
<p class="td-sub-title"><?php echo $td_mod_single->td_post_theme_settings['td_subtitle'];?></p>
<?php } ?>
<?php
// override the default featured image by the templates (single.php and home.php/index.php - blog loop)
if (!empty(td_global::$load_featured_img_from_template)) {
echo $td_mod_single->get_image(td_global::$load_featured_img_from_template);
} else {
echo $td_mod_single->get_image('art-big-1col');
}
?>
<div class="td-post-text-content">
<?php echo $td_mod_single->get_content();?>
// Set up your row, column, and tabs element
$to_echo = '[vc_row][vc_column width="1/1"][vc_tabs]';
// Simplest possible example of getting ACF data, sub in yours
$data_1 = get_field('2g_network');
$data_2 = get_field('3g_network');
// Repeat these lines for each tab, making sure each tab has a unique id
$to_echo .= '[vc_tab title="The first tab" tab_id="tab_1"];
$to_echo .= $data_1;
$to_echo .= '[/vc_tab]';
$to_echo .= '[vc_tab title="The second tab" tab_id="tab_2"];
$to_echo .= $data_2;
$to_echo .= '[/vc_tab]';
// (You could wrap each block in an if to skip a tab if the data is empty)
// When you have all your tabs, close the elements
$to_echo .= '[/vc_tabs][/vc_column][/vc_row]';
// We have to filter the whole string to make WP interpret the shortcodes
$to_echo = wpb_js_remove_wpautop($to_echo);
// Do whatever
echo $to_echo;
</div>
<div class="clearfix"></div>
<footer>
<?php echo $td_mod_single->get_post_pagination();?>
<?php echo $td_mod_single->get_review();?>
<?php echo $td_mod_single->get_source_and_via();?>
<?php echo $td_mod_single->get_social_sharing();?>
<?php echo $td_mod_single->get_social_like_tweet();?>
<?php echo $td_mod_single->get_next_prev_posts();?>
<?php echo $td_mod_single->get_author_box();?>
<?php echo $td_mod_single->get_item_scope_meta();?>
</footer>
</article> <!-- /.post -->
<?php echo $td_mod_single->related_posts();?>
<?php
} else {
//no posts
echo td_page_generator::no_posts();
}?>
I think the code is not executing. Am i placing it in the wrong way?
It looks like you’ve done it almost exactly right. But I have these notes:
1. I made a mistake when I said to use the_field — change all instances to get_field in the code.
2. If you can’t activate a child theme, your code modifications won’t survive a theme update anyway and you’ll have to redo it each time you update. 🙁 Still, it should work. And it’s fine if you use that block of code instead of the functions.php way I quoted.
3. Once you have that code in your template files, you don’t need to do anything from the post editing page besides enter those custom fields.
4. If you’re not seeing anything show up when you view the post, you might be putting your code in the wrong single post template file. There are seven of those in this theme: loop-single.php, loop-single-1.php, single_template_2.php, single_template_3.php, single_template_4.php, and single_template_5.php. You could put the above code in whichever template file you’ve picked in Theme Panel -> Post Settings, or you could put it in every template file.
5. Just to make sure, where are you putting the code in the template file? (Which lines come right before and after it?)
Hi,
I need some help to customize the theme even more than before and for this i will need some help. Thanks in advance!
Problem 1: Google shows when the category page was created(i think this is the code time itemprop="dateCreated
I would like to completely REMOVE this from category pages!
Problem 2: https://forum.tagdiv.com/topic/hide-category-on-post-page/
Hiding categories on post page is still broken and i want to REMOVE it and not hide it via css(thanks for your help TheMediumUTM, but this is not what i wanted)
Problem 3: Im using the MS category template and its just funny. http://i.imgur.com/hK5kz4O.jpg
1. Below every post title there is a breadcrumbs. How to remove it?
Also i want to remove the Author hyper link and show only the author name.
Hi. I know that you have a lot of posts about this, and i have read all of them, but i didn’t found any answer yet!
I use for homepage : Homepage – with article list . I had made also a comment in themeforest and the answer from staff was this:
Only one template comes with h1 page title – http://screencast.com/t/lrtO3f9ny
The page title (H1) or subtitle (H2) can be added manually using visual composer – http://screencast.com/t/fgekI1Gb – http://screencast.com/t/Uj6edkvf
Or by modifying the template files – http://screencast.com/t/2fcHKsQyVJ34
The other elements on page like block/modules titles use h3 and h4 tags. When we built the templates we followed the best practices used by Yoast and other SEO specialists.
If you hide the title on page using css display: none or moving it outside of the visible screen area (ex. position: absolute; top: 9999px; ) Google will penalize you. Here are some discussions on the subject – http://stackoverflow.com/questions/3239202/whats-the-correct-way-to-hide-the-h1-tag-and-not-be-banned-from-google
But it is not good for style to have a text as h1 visible! Any other suggestion? If i set logo with h1, also in posts i am going to have 2 h1 tags, and this is not right.
My website is this: http://www.radarnews.gr/
I had this happen the other day on a post which
1) had no text at start of the post and so it grabbed the “code” from the post.
2) adding excerpt helped.
3) with the home page template, adding an excerpt to excerpt box, and also meta description for the home “page” used for page with Yoast SEO fixed it for me.
Hi, folks
would it be possible to change the pull of jquery on Google from
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js'></script>
to
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
or
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
reason being is that we will be testing use of mod_spdy on the server to move all content to https due to Google’s plan to use secure connection as a page rank “signal” in SERPS, and so we’re having to look at doing this… basically loading everything on the site via SSL; and so external resources must be via SSL also to avoid the pop-up “not everything secure on page” or whatever it says these days.
I believe with the // usage Google automatically serves either http or https depending on the referrer.
(REF: https://developers.google.com/speed/libraries/devguide#jquery )
Probably the
http://html5shim.googlecode.com/svn/trunk/html5.js
could be addressed in same way.
I can obviously change this in the templates manually, but thought it would be “worth a look” for those running ecom sites who need “everything https” for local payment forms, and others who are looking to go full SSL for Google “bleeding edge” SEO signals (sigh).
I got confused.
1) Open sans works fine but ubuntu,roboto etc. do not. They look different.
Roboto: http://prntscr.com/4jbd9r
Ubuntu:http://prntscr.com/4jbdp8
Roboto and Ubuntu(google fonts page): http://prntscr.com/4jbfff
2) Blue default color loading first is not fixed. I re-installed the plugin and update again the theme. nothing changed. Last solution does not make any meaning because problem is not only blue color. Default template loads first. all fonts and colors change.
3) All I need is a website with latin extended fonts. I want to change widget, menu, h1, h2, title. etc.. fonts and colors using theme panel.
All these fonts and colors supposed to be changed by theme panel. But, in this situation, theme panel has no fuction.
or
(Theme Panel > Custom Typography) never works. I have to change everything manually with css. Is this right?
It has been just two weeks, that I bought the theme. I can start all over if there will be no problems like these.
What do you recommend?
I believe you would need to create a custom RSS feed by creating custom hidden “page” with a template which includes the most popular post query to show results. Not built into WordPress or the theme. You can Google how to create custom RSS feeds for WordPress sites (I’ve done it), but kind of tricky first time. You might want to hire a developer to help you on this one. 🙂
Hi Lucian,
thank you for your reply, but my problem was far more annoying.
I do have a limited understanding of programming and I can handle plugins (I’ve even written a simple homepage redirect) in a few CMSes.
I was unable to translate properly only SOME part of the template.
Categories, posts, menus worked. But not small bits like “All”. This drove me crazy.
After trying several solutions, I’ve been able to solve my issue by purging obsolete transient options. Which was unexpected but did the trick.
I don’t know what, or which plugin, did create the problem though…
Thank you!
– Luca