- 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
Hey
I switched my comment system to FB comments and edited the template for a custom position. All looks good except that I lose the CSS title block for comments, now its just plain H2 text. Newspaper uses stylised CSS title blocks in the sidebar and to separate main page elements which keeps it all neat.
I cannot see a way to stylise plain <H></H> tags in the same manner. Also this particular title is set by the FB comments plugin. There is a nice site in the showcase that has managed to do it, I can’t see how.
1. My site with new FB comments added http://www.screencast.com/t/JOogiPEYn
2. Desired result here, http://www.screencast.com/t/qYBPuCE93zs
3. Live page example http://www.gloholiday.com/top-10-most-unusual-hotels-in-the-world/
Any nice suggestions?
Thanks
Chris
Hi, all.
I will email Lucian/Radu the example stuff.
But quick overview…. FB has their own generated code you can implement, which can be responsive and this method basically replaces their old defunct WP plugin for FB comments.
Example in action on IMDB news items:
http://www.imdb.com/news/ni59489163
But, basically you go here:
https://developers.facebook.com/docs/plugins/comments
You use the “configurator” to specify a website, and width such as “100%” for responsive divs.
Assuming your site is already setup for ‘apps’ in your FB developer/user account, you would on above page click the ‘get code’ and then it will ask you to assign to one of your sites (if more than one), and you have a block of code to use with a WP theme.
Block ONE, looks like this and would go after the body tag on POST template:
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5&appId=XXXXXX";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
then block two would either replace the comments box includes file, or simply be pasted into the template for the post, after post loop, after author box
<div class="fb-comments" data-href="http://mydomain.zzz" data-width="100%" data-numposts="5"></div>
Only trick is when you do the form, then get code, it will say “item not public, make public on your app menu” then trick there is to put in email, namespace (sitename all lower case), domain for app. Then click to make public. Going back to the configurator doesn’t make a new app, you’re still making just the ONE app for your site you specify; you can’t make 2 accidentally!
​I have a problem with Newsmag template, it’s about the page pagination​. It does not work when I’m in a category. I tried the option “Disable” in “Category Top Posts Style”, but it does not work. What can I do?
This is my website so you can see the problem.
http://talvezradio.com/
http://talvezradio.com/category/noticias/
http://talvezradio.com/category/noticias/page/2/
Thank you!
Manolo.
Hi
To load a different banner for a specific page you can add a condition in the file corresponding with the header style used. For example if you’re using header style 7 the file that must bee edited is header-style-7.php and the code should look like here: http://screencast.com/t/ryRhn07c25
<?php
if (is_page(page-id)){
echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');
}
else{
locate_template('parts/header/ads.php', true);
}
?>
Replace the page-id with the numeric id of the page where you want to load a different ad. To get the page id follow this link: http://screencast.com/t/9V7zgx6WK
I used custom ad 1 in this example but you can use any of the custom ads, just update the number from shortcode. Ex: for custom ad 4 the shortcode will be [td_block_ad_box spot_id="custom_ad_4"]
If you want to hide the logo on a specific page just add this condition here: http://screencast.com/t/iT9p861gnJ
<?php
if(!is_page(page-id)){
locate_template('parts/header/logo.php', true);
}
?>
Let me know how it goes.
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hello,
any kind of pagination in categories doesn’t work. I read similar posts and i downloaded the latest version of the template from themeforest. I check the files, which are modified (td_page_generator.php, tagdiv_theme.js, tagdiv_theme.min.js, style.css) and i didn’t see any change. I compared them with CodeCompare.
I have done modifications in the core files of the theme, so i am not able to unistall and reinstall it.
Please, could you inform me which files have been modified in order to replace them?
Thank you in advance.
Hello again,
Why can’t I enable “Normal pagination” on Block 4 style block (post list)?
Just like it is in Category archive page.
OR
Why can’t I set style to be like Block 4 on Pagebuilder + latest articles + pagination template?
Hi
I get the WP booter errors as below when I click on a 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/linux2jn/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
wp booster error:
Missing parameter: ‘file’
/home/linux2jn/public_html/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/linux2jn/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_api.php
Can you please check and let me know how to resolve it ?
Hi all,
I have some problems with look&feel of this template crossbrowser.
In particular I see hight time to download the pages of my site http://www.analisidelsangue.net from my google webmaster tool for two specific browser: Safari & android
So I checked my site througt using browserstack.com and this is the result:
https://www.browserstack.com/screenshots/e2efaeace031623b9706fd59b8bef9f3829b8717
as you can se I have problem with Samsung Galaxy Tab 2 10.1, OS X YosemiteChrome 42, OS X Yosemite Safari 8, OS X Mavericks Chrome 36, OS X MavericksSafari 7.1, OS X Mountain LionSafari 6.2, OS X LionSafari 6 ..
but I think I have the problems in many others browsers – I’m testing only 25 browser…
so can you verificy wich is the problem with safari and android in particulare and tell me as soon as possible? thank you very much for your help
alessandro
The smart sidebar only shows up in individual posts, not pages (I only have the homepage built with visual composer). I can’t deactivate it on themepanel>template settings>smart sidebar, or at least customise it using blocks.
Hello,
finally i used categories for the background ads, putting color in the specific category, the background being clickable. I read the similar post ‘Background Image(s) z-index or order’ and i modified the file ‘td_background_render.php’ as you wrote (http://screencast.com/t/bcwMJ3S7) for category not for page.
if (is_category( ’20’ )){
$this->background_parameters[‘td_ad_background_click_link’] = “the url”;
}
The ad in the category is clickable but it isn’t in the posts of this category.
Please, could you help me? Also, i want to know if i can shorten the width of the template, in order to show the ads in 15′ screens. If you need access to the site, please, inform me.
Thank you in advance.
-
This reply was modified 10 years by
MarStat.
Hello dodikmulyanto,
If you want to add the Ads for your top category page, you have to use do_shortcode method with your Custom Ad. The code is -> <?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); ?> and this you have to add in your category template core file used by you. For example, below I gave you an example for category template 1 -> http://screencast.com/t/LOwIThu9 Also, please ensure that you have set your Custom Ad 1 -> http://screencast.com/t/hAfyOSQKxt2 In this way, you have to implement on your website.
Hope this helps!
Than kyu for the message!
Yeah I turned off cache plugin, which in turn turns off the CDN. The page load was significantly different. Was multiple seconds different (by me just loading the page in my browser with no cookies). Was ridiculous. But I don’t think thats the experience with everyone… I dunno.. but thanks, I’ll try and do more testing. Just seems to load the images very very slow with cdn (though even slower without) – and I don’t understand why, besides this template being extremely bloated.
Hey guys,
I really like post template style 8, however on a smaller screen (I’m working with a 1366 x 768 resolution atm) I dont like the height of the transparant header on these smaller screens as it covers the whole page.. I would prefer to have a similar height of the header as in the category page style 8.
Is there some custom CSS I could use to adjust the height? Preferably with a media query so it only affects the smaller screens?
Hello,
The best thing to do when buying a new theme is start to read a bit about it’s settings and features. Please use the theme documentation as we put a lot of work to it in order to provide as much information as possible. You can alternatively check out our youtube channel to see video tutorials on how to use the theme: https://www.youtube.com/user/tagdiv
1. You can change the big picture on the travel homepage in visual composer on the row settings: http://screencast.com/t/Z2VHdgzUTuV3
2. https://forum.tagdiv.com/page-templates-2/
3. The front-end editor was disabled in our theme as it created problems.
4. Block 5 is a simple content block. you can add content blocks in visual composer as shown n our tutorials. You can see content blocks and other features of the theme live on our demo: http://demo.tagdiv.com/newspaper/block-1/
Thank you!
Hello,
The comments issue is known to us and it will be corrected in the next version of the theme. The only way to remove the latest articles is to change the page template to one of the 3 like Mecburlar suggested. If you do not wish to have comments on pages, they can be removed from here: http://screencast.com/t/zZO2tvkL
(Make sure you use the latest version of the theme)
Thank you!
I had a developer work on the site and I have noticed a number of things he messed up including the red letters mentioned above and the search bar is out of line. I tried to reinstall the template however it did not override the settings.
I would completely just delete the entire site and reinstall the theme however I have a number of posts on the site, and I already configured the homepage and menu. Can you please advise. The site is http://www.mainstrock.com.
Hello,
I have installed the theme on my domain http://www.travelisfun.de
But I am wondering, how the start-page is built? Here my questions:
1. How can i change the big picture ?
2. What are the templates? For example: pagebuilder + latest articles + pagination
—> http://abload.de/img/unbenanntycjfp.png
3. Why is it not possible to enable the Frontend Editor
4. What is the so called “Block 5” ?
Just activate the Travel demo and you will see what I mean 🙂
Thanks for reply!
Hi to team, hope you all are well.
I was able to create a blank custom page template with the help of this topic – https://forum.tagdiv.com/topic/how-do-i-create-a-completely-blank-page/
The only issue is the alteration in the tagdiv_theme.js mentioned in this reply – https://forum.tagdiv.com/topic/how-do-i-create-a-completely-blank-page/#post-68273 is related to Newspaper theme. Can you please modify the js code according to Newsmag.
I have tried to make the modifications myself but I am getting a Uncaught TypeError: Cannot read property 'style' of undefined
Also, can the php code mentioned for page-full-blank.php be used with Newsmag as it is?
Thanks a lot
I’ve just purchased and installed the Newspaper theme. I’m following the video tutorial on building a home page but what I see in the backend editor of Visual Composer is not the same as the video. I should be seeing the message “Add Some Content or Use Predefined Layouts…” with a series of 20 layout thumbnails (as per https://youtu.be/ss-BEobegAw?t=43s). Instead, I see the default message from Visual Composer: “YOU HAVE BLANK PAGE. START ADDING CONTENT OR TEMPLATES” following but “Add Element”, “Add Text Block”, “Add Template”. If I click on Add Template, I get a list of the 20 templates only.
Thanks Mecburlar. It did removed the “Latest Articles” section, but it completely messed the sidebar of my site. Using Pagebuilder+Title made the entire site content area to shrink.
Tried “Default Template” option, and then it shows a comments section in the home page. (Even though I have disabled comments on pages from Newspaper theme panel.
Hi,
1) In order to get rid of the margin, you can use a bit of css:
.home .td-a-rec-id-custom_ad_1 > div, .home .td-a-rec-id-custom_ad_2 > div, .home .td-a-rec-id-custom_ad_3 > div, .home .td-a-rec-id-custom_ad_4 > div, .home .td-a-rec-id-custom_ad_5 > div{
margin-bottom:0!important
}
2) In order to limit the width of the ad on the category pages and remove the spacing and title/breadcrumb you can use this code:
.category .g-single{
width: 1068px!important;
}
.category .td-a-rec-id-custom_ad_1 > div{
margin-bottom:0!important;
}
.category .td-crumb-container{
display:none!important;
}
.category .td-category-pulldown-filter{
display:none!important;
}
.category .td-category-header .td-page-title{
display:none;
}
.category .td-category-header{
padding-bottom:0!important;
}
3) In order to get the post ad above the content and the sidebar, you will need to edit the theme files and use a do_shortcode function inside the post template you want the ad to be displayed in. For example you can use a theme custom ad 1 spot and add this shortode in each of the loop files coresponding to the post styles you use:
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); ?>
Ad this code to the very top of the loop file like so:
http://screencast.com/t/76hTfIICn6kS
Make sure you have an ad placed in custom ad 1 .
I hope this helps.
Thank you for your message!
Hi
There is no specific file for travel template, because that referees at the pages. The file you need to edit must referees at post template used. For example if you’re using post template 3 for your post: http://screencast.com/t/5PdKqXFq the file that must be modified is loop-single-3.php
Thanks!
Hello,
Unfortunately our theme does not support featured posts. You can however create a featured category and add your posts to it, then add a block in visual composer on the specific post you want it displayed. You can activate visual composer on posts from the plugin settings: http://screencast.com/t/V4d9MhrFxr
if you do not want to do this for every post in particular, you can edit the theme files and edit the specific post template you use and add a function to the file called do_shorctode. This will add a specific block you set to it on every post that uses that particular template you edit. They can be used in the child theme as well.
For example you can create your block in visual composer on a dummy page and get the shortcode for it: http://screencast.com/t/02ccgJ2Q8mN then get the shortcode for the block in classic mode/text mode
Then you can edit the post template from the files: http://screencast.com/t/FBgdVg39o
example: <?php echo do_shortcode('[vc_row][vc_column][td_block_3 category_id="2"][/vc_column][/vc_row]');?>
I hope this helps.
Thank you!
Hi,
You could do something of the sort but you will need to add the code for every page. The simplest solution would be to add a load more button to your latest articles so the page will not change every time you want to vies more posts. In order to do this, you will need to change the page template and not use the pagebuilder+latest but rather the pagebuilder+title or the default page template and then use a block 12 for your latest articles. This way you can add the load more animation from the pagination settings in visual composer (like our travel demo uses: http://demo.tagdiv.com/newspaper_travel/)
Thank you!
I would like to add featured/top posts at the bottom of single post page.
Is it possible?
Should I create child theme for this?
If yes, how do I add featured posts in specific style to a template?
Shortcode? PHP code?