- NewsmagHeader styles
- NewsmagHeader ads
- NewsmagtagDiv Composer Tutorial
- NewsmagCategory templates
- NewsmagSmart list ads
- NewsmagWeather Widget
- NewsmagInstagram widget
- NewsmagPage Menu
- NewsmagMain menu
- NewsmagTop bar templates
- NewsmagLogin – how to enable the user registration
- NewsmagLogo & Favicon
- NewsmagFooter templates
- NewsmagCategory grid styles
- NewsmagCategory top post styles
- NewsmagHow category settings work
- NewsmagTheme colors introduction
1) Google analytics is a special case and will be grabbed from the desktop spot. You can simply place the code in the snalytics spot and the theme will grab it on both desktop and mobile.
2)If you require separate files added to the header and footer, then you have to add them manually in the header.php and footer.php. The mobile theme has separate files of course: http://screencast.com/t/Hm3rWFbG9T
Thanks
When I activate the Mobile Theme plugin I get the three last posts in a grid on top of the page, I also get lots of posts listed under the section Latest Articles. Meaning that the three last articles will be displayed two times; in the grid and under Latest Articles. Where do I change the look of the Mobile Theme? Are there different blocks to choose from also for that plugin? I have searched for where to find this, but have not succeeded yet. I also would like to have Latest Articles translated to Swedish. I have set the tranlation section to Swedish.
Also I have a problem with the size of mu logo shown on my iPhone, it is really small. Regardless if I have the Mobile Theme activated or not. I have tried to upload the recommended size logos under Header -> Logo for Mobile, but it is stills tiny. I have changed all logos uploaded to about 800 px, without any difference.
http://www.ladiesabroad.se/ Right now I have the plugin deavtivated, but you can see the small logo on iPhone (or not!).
Thanks.
Hello Bogdan
Please clarify?
1.) We added google analytical code for desktop but there is no option to add it in mobile theme so we have to manually add this code to header.php or there is some alternative.
2.) Please note that we are talking about adding code to particular header and footer…some codes need to be add in header and some code with are not so important needs to add in footer…..if we add code to custom them how do we know that which is going in header and footer…??? or we need to add in .php files???
HI
Theme’s header styles have different layouts on mobile devices and on some of theme header ad is displayed above main menu. An example could be header style 1 which is also used on your site. If you want to change the default implementation you’ll need to edit the file corresponding with header style used: http://screencast.com/t/90ajkv4pcq Note that you will need some codeing skills n order to achieve the desired result.
Thanks!
Hi,
Yes, you will need to re-add these modifications after the theme update.
This happens because you try to access the theme’s index.php file directly and this is caused by the theme’s inability to locate the WordPress get_header function as it does not passed trough WordPress when the request is made and in that case the function doesn’t “exist”.
Thanks!
Hi,
Yes it will. Try it out! It will hide the menu for all posts. If you want to target individual posts though you can use the post id:
.postid-8253 .td-header-menu-wrap{
display:none;
}
or for multiple id’s
.postid-8253 .td-header-menu-wrap, .postid-8254 .td-header-menu-wrap , .postid-8255 .td-header-menu-wrap{
display:none
}
I hope this helps.
Thanks.
Hello!
Please see below few clarification?
1.) If we add adsense code to theme panel then it will automatically added to mobile theme..??? Or collect the data from mobile visitors also?
2.) Is there any place where can add the custom code in header and footer for both mobile and desktop?? or we have to add code manually to header and footer…??
Hello,
You only need to paste the adsense code in the designated ad spost in the theme like so: https://forum.tagdiv.com/header-ads-adsense/
You need to place the code that looks similar to this:
http://screencast.com/t/O0ZSyLHA
Also if your ad is new, then it can take up to a few days until google can deliver it. The crawler needs to access your site before the ads will be fed through.
Thank you!
Hi Guys
I am using Newspaper theme and my website is http://www.theworldzone.com I recently applied for the Adsense and got it rejected. One of their issue was complex navigation bar. Initially, I was using Header 2 which I got it changed to Style 6. Can someone tell me if it looks ok now.
Not related to theme but they said my content is not original but most of my contents are I wrote myself and some viral funny stuff are just copy. Is there any other suggestions you guys can give me to make my website eligible as per Adsense standards.
My website is http://www.theworldzone.com
Thanks.
Hi, so it would apply for post like this?
.post .td-header-menu-wrap {
display:none;
}
Hello, my site is running normally, but i can see this error in apache linux error.log file.
[Thu Aug 11 22:16:21 2016] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function get_header() in /var/www/mysite.com/public_html/wp-content/themes/Newspaper/index.php on line 6, referer: http://www.mysite.com/wp-content/themes/Newspaper
I can fix it using with:
<?php
if ( function_exists("get_header") ){
echo "The code";
}else{
echo "Show error";
}
?>
But if i do this, in the next update this will be overwritten.
Thanks.
Hi, this is my functions.php which seems quite different to yours? i am unsure where to add this?
<?php
/*
Our portfolio: http://themeforest.net/user/tagDiv/portfolio
Thanks for using our theme!
tagDiv - 2016
*/
/**
* Load the speed booster framework + theme specific files
*/
// load the deploy mode
require_once('td_deploy_mode.php');
// load the config
require_once('includes/td_config.php');
add_action('td_global_after', array('td_config', 'on_td_global_after_config'), 9); //we run on 9 priority to allow plugins to updage_key our apis while using the default priority of 10
// load the wp booster
require_once('includes/wp_booster/td_wp_booster_functions.php');
require_once('includes/td_css_generator.php');
require_once('includes/shortcodes/td_misc_shortcodes.php');
require_once('includes/widgets/td_page_builder_widgets.php'); // widgets
/*
* mobile theme css generator
* in wp-admin the main theme is loaded and the mobile theme functions are not included
* required in td_panel_data_source
* @todo - look for a more elegant solution(ex. generate the css on request)
*/
require_once('mobile/includes/td_css_generator_mob.php');
/* ----------------------------------------------------------------------------
* Woo Commerce
*/
// breadcrumb
add_filter('woocommerce_breadcrumb_defaults', 'td_woocommerce_breadcrumbs');
function td_woocommerce_breadcrumbs() {
return array(
'delimiter' => ' <i class="td-icon-right td-bread-sep"></i> ',
'wrap_before' => '<div class="entry-crumbs" itemprop="breadcrumb">',
'wrap_after' => '</div>',
'before' => '',
'after' => '',
'home' => _x('Home', 'breadcrumb', 'woocommerce'),
);
}
// use own pagination
if (!function_exists('woocommerce_pagination')) {
// pagination
function woocommerce_pagination() {
echo td_page_generator::get_pagination();
}
}
// Override theme default specification for product 3 per row
// Number of product per page 8
add_filter('loop_shop_per_page', create_function('$cols', 'return 4;'));
if (!function_exists('woocommerce_output_related_products')) {
// Number of related products
function woocommerce_output_related_products() {
woocommerce_related_products(array(
'posts_per_page' => 4,
'columns' => 4,
'orderby' => 'rand',
)); // Display 4 products in rows of 1
}
}
/* ----------------------------------------------------------------------------
* bbPress
*/
// change avatar size to 40px
function td_bbp_change_avatar_size($author_avatar, $topic_id, $size) {
$author_avatar = '';
if ($size == 14) {
$size = 40;
}
$topic_id = bbp_get_topic_id( $topic_id );
if ( !empty( $topic_id ) ) {
if ( !bbp_is_topic_anonymous( $topic_id ) ) {
$author_avatar = get_avatar( bbp_get_topic_author_id( $topic_id ), $size );
} else {
$author_avatar = get_avatar( get_post_meta( $topic_id, '_bbp_anonymous_email', true ), $size );
}
}
return $author_avatar;
}
add_filter('bbp_get_topic_author_avatar', 'td_bbp_change_avatar_size', 20, 3);
add_filter('bbp_get_reply_author_avatar', 'td_bbp_change_avatar_size', 20, 3);
add_filter('bbp_get_current_user_avatar', 'td_bbp_change_avatar_size', 20, 3);
//add_action('shutdown', 'test_td');
function test_td () {
if (!is_admin()){
td_api_base::_debug_get_used_on_page_components();
}
}
/**
* tdStyleCustomizer.js is required
*/
if (TD_DEBUG_LIVE_THEME_STYLE) {
add_action('wp_footer', 'td_theme_style_footer');
// new live theme demos
function td_theme_style_footer() {
?>
<div id="td-theme-settings" class="td-live-theme-demos td-theme-settings-small">
<div class="td-skin-body">
<div class="td-skin-wrap">
<div class="td-skin-container td-skin-buy">BUY NEWSPAPER NOW!</div>
<div class="td-skin-container td-skin-header">GET AN AWESOME START!</div>
<div class="td-skin-container td-skin-desc">With easy <span>ONE CLICK INSTALL</span> and fully customizable options, our demos the best start you'll ever get!!</div>
<div class="td-skin-container td-skin-content">
<div class="td-demos-list">
<?php
$td_demo_names = array();
foreach (td_global::$demo_list as $demo_id => $stack_params) {
$td_demo_names[$stack_params['text']] = $demo_id;
?>
<div class="td-set-theme-style">" class="td-set-theme-style-link td-popup td-popup-<?php echo $td_demo_names[$stack_params['text']] ?>" data-img-url="http://demo.tagdiv.com/demos_popup/newspaper/large/<?php echo $demo_id; ?>.jpg"></div>
<?php } ?>
<div class="clearfix"></div>
</div>
</div>
<div class="td-skin-scroll"><i class="td-icon-read-down"></i></div>
</div>
</div>
<div class="clearfix"></div>
<div class="td-set-hide-show"></div>
<div class="td-screen-demo" data-width-preview="380"></div>
<div class="td-screen-demo-extend"></div>
</div>
<?php
}
}
Hi,
Is there a way to create a blank page template?
With no header/footer/menu etc.
Thanks
Hi Andre
I understand that the theme has its own advertising system which is cool (only if it had CPM options ) but we need also to have a CPM(click per impressions) or CPC options, how do I put an ad at the header ad 90×720, Advertising plugin with CPM, or replace it with another ad zone plugin option?
Trying to edit home menu on https://magazine.seats2meet.com to font-weight: 300 (also with !important). But the setting seems to be overruled by the template font settings. Anyone a fix to implement this customisation by css?
Hi,
I am getting this error when i am trying to access the wordpress admin
block
Warning: Cannot modify header information – headers already sent by (output started at /home/dharma/public_html/wp-content/themes/Newsmag/includes/td_config.php:1) in /home/dharma/public_html/wp-includes/pluggable.php on line 1224
Regards,
Nigel
Hi Andre
Need Plugin or Widget for Ads to work with CPM or CPC in new Ads Location on site 900×250 and also in other ads location?
Example how do I put ads in custom location like Header with my own CPM Plugin?
Hi, which block did you use to implement the beautiful animated image header with 4 posts in the Politics Demo?
http://demo.tagdiv.com/newspaper_politics/
thanks!
I would like a post to behave like the main page here: http://atriparoundtheworld.nl/
I think the most easy way is somehow getting the featured image in that location somehow. If there is a better way I’d be happy to know too. http://atriparoundtheworld.nl/?p=150 I would like the temple image from this example page to behave as the homepage image does.
If there is good documentation on this kind of stuff, please tell me 🙂
Thanks in advance
Managed to add it but not completly as I planed.
Is it possible to do the search by disabling somehow ajax and transfer search string like it is now. So we speed up and skip that way quering local database?
<div class=”header-search-wrap”>
<div class=”dropdown header-search”>
<div class=”td-drop-down-search” aria-labelledby=”td-header-search-button”>
<form method=”get” class=”td-search-form” action=”<?php echo esc_url(home_url( ‘search-wpsolr/’ )); ?>”>
<div role=”search” class=”td-head-form-search-wrap”>
<input class=”needsclick” id=”td-header-search” type=”text” value=”<?php echo get_search_query(); ?>” name=”search” autocomplete=”off” /><input class=”wpb_button wpb_btn-inverse btn” type=”submit” id=”td-header-search-top” value=”<?php _etd(‘Search’)?>” />
</div>
</form>
<div id=”td-aj-search”></div>
</div>
</div>
</div>
Hello,
Ads need to place a Header above . At the top of the web .
It’s possible? It is very important to me.
Worked perfectly. I had to add some other css to get the header to stretch 100% (similar to header style 8), but I managed to figure that out on my own. Thanks, I appreciate it.
Hi
The code which generate search box icon is located in header-menu.php: http://screencast.com/t/eWrBy67Hi You can try to replace it with your custom code but I am not sue if it will work fine as we didn’t test it and we’re not aware of its functionality.
Thanks!
Hello,
I just upgraded my staging website to test the new 3.1 version.
Production website (v2) : http://www.goldengeek.net/
Staging (v3.1) : http://goldengeek-dev-goldengeek.pf2.wpserveur.net/
It broke my site :/ Right and left paddings has been added on every blocks (i don’t know why ? it just breaks everything…), and the header is completly broken too …
I followed the guides to update the Theme (with Envato plugin) and Visual Composer.
Could you please help me, so i can upgrade my production website to v3.1 ?
Hi.
In newsmag the space for topbanner are to small for my use. We use a banner with a hight on 180.
We use another system to post the ads (ad rotate pro) and its working perfectly, with the [adrotate-1] insertion code – but the topmenu and main menu are on top of the banner.
Any way to set the height to 180 on the space in header?
(our site are not online yet, working on a production locally)