- NewspaperHeader Builder
- NewspaperHeader ads
- NewspaperHeader styles
- NewspaperSearch setup for custom post type
- NewspapertagDiv Composer – Website Manager
- NewspaperBookmark – Save For Later
- NewspaperWooCommerce: Happy “Add to Favorites!”
- NewspaperModal Popup
- NewspaperFlex Block Settings Guide
- NewspaperPosts Loop Element
- NewspaperHow to Add a Logo in Newspaper
- NewspaperDefault Category Settings
- NewspaperWhen tagDiv Composer is Not Working
- NewspapertagDiv Cloud Library Plugin
- NewspapertagDiv Composer Tutorial
- NewspaperUsing the Theme Translations with WPML
- NewspaperInstagram in Newspaper WordPress Theme
- NewspaperWeather Shortcode
- NewspaperThe Mobile Theme
- NewspaperLogin – How to Enable User Registration
Good morning
I update Newspaper Theme with the envato plugin and after this only the header was showing.
Visual Composer 4,6 version
Hey,
For some reason no matter what i do to change CSS, nothing happens.
I need to hide the entire header on mobile (logo, search, menu).
I read all the threads about it, but nothing happens when i use CSS.
Why is that?
thanks
Hi,
I am creating a new site and initially in the Header I would like to simply use our logo to the left and then the site title centred – ideally similar to Hybrid Menu 2.
However despite having Menu set to No Menu in the Theme panel, I am seeing a message to Click here to create or select a menu.
Any help much appreciated
tks
A
Hi,
You can use the ad in a custom ad spot in your theme panel: http://screencast.com/t/swJWM7MHe
Make sure you use this method as it not an adsense ad: https://forum.tagdiv.com/using-other-ads-non-adsense-ads/
Then you can use a do_shortcode function inside the theme files to make the theme render the shortcode in your desired location. you can add it in the header if you want to have it above all of the content. Depending on the header ad that you use, you can add the code like so:
http://screencast.com/t/b8zN12pDb
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
Thanks.
Hi Bogdan,
Thank you for the reply. Actually I am facing fatal errors like this as shown in the images below. It’s not just a error log, but it actually affects my work whenever it appears while working with editing posts or any other options.
Image link 1
Error Link 2
I am not sure if it’s the same issue whose solutions are discussed by you both above but when I asked for resolution to my hosting service provider, they come to the following conclusion after working on my issue. They said:
Our systems admin has concluded that this is not a host related issue, but it’s linked to your theme:
PHP Fatal error: Call to undefined function get_header() in /home/4XXX_ES/web/mydomain.com/private_home/wp-content/themes/Newspaper/index.php on line 6
I am confused about this issue as if to whom should I ask for solution. Can you relate your solution with the screenshot that I shared above?
Please help. Thank you.
Hi,
This issue happens when the index.php file is called directly. Something that would not normally happen when browsing a site, only found by crawlers which find all of the possible url’s in a site. Please follow these 2 links.
This topic should explain things better https://forum.tagdiv.com/topic/a-few-errors/
basically you need to replace the get_header code with the one Andrei pointed out.
But as a note…this is useless as the error is a false positive of sort. it will not affect anything except give you this information. Do this only if it bugs you. The theme has a custom header that is not grabbed from WP and the crawlers do not detect it as an existing function in the WP code. It’s not really a valid error. If something is not as the crawler likes it to be, it does not mean it’s not OK. A standard user will not have acess to this link at any time except if he manually types it in: /home/4XXX_ES/web/mydomain.com/private_home/wp-content/themes/Newspaper/index.php
Thank you!
Hi, I tried to understand the solution suggested by you, but unable to understand few things.
Why such a well coded theme like Newspaper is unable to locate get_header() function ? If it’s a known error why haven’t you tried to fix it permanently. I never noticed such issues in previous theme.
Should I concern about any thing which causes this error?
About the soultion implementation, my Index.php starts with
<?php
/* ----------------------------------------------------------------------------
the blog index template
*/
get_header();
//set the template id, used to get the template specific settings - this was the old home.php template
$template_id = 'home';
//prepare the loop variables
global $loop_module_id, $loop_sidebar_position;
$loop_module_id = td_util::get_option('tds_' . $template_id . '_page_layout', 15); //module 1 is default
$loop_sidebar_position = td_util::get_option('tds_' . $template_id . '_sidebar_pos'); //sidebar right is default (empty)
and it doesn’t have any define ‘display_errors’ as mentioned in the solution:
My question is in our themes index.php:
Where do we need to add the following code:
<?php ini_set('display_errors', 0); ?>
<?php
/**
* @package WordPress
* @subpackage Ars_Theme
*/
if (function_exists('get_header')) {
get_header();
}else{
/* Redirect browser */
header("Location: http://" . $_SERVER['HTTP_HOST'] . "");
/* Make sure that code below does not get executed when we redirect. */
exit;
}; ?>
Please help. Thank you.
HI
By default header ad have a 720px width on desktop while post content have 680px if sidebar is used. The only way to display a 720px banner in post content is to not use sidebar.
Thanks!
Hello,
Our theme does not have such functionality for the moment so you will have to use a plugin for it. I think maybe “adrotate” has such features but I can’t say for certain. There is the coding alternative also: https://forum.tagdiv.com/topic/different-header-ads-according-to-category/
Thank you!
Hello,
1) there is no theme setting for this but it can be done with a css trick. Add this code in the theme panel->custom css box:
.td_block_4 .entry-title a{
pointer-events:none!important;
}
And if you want to remove the hover color you can also ad this code:
.td_block_4 .td_module_wrap:hover .entry-title a{
color:initial!important;
}
2) This functionality is mentioned here: https://forum.tagdiv.com/background-introduction/
It is related to the site background. If you want to have a full width header and footer, yopu need to remove any background image or color (white counts too) You need top press the clear button for the background color and remove the background image.
3) The site width cannot be altered. Our theme was built on a fixed width and there is no simple way of changing it as all the theme elements depend on this fixed width.
4) The category tag color can only be changed with css. For this you need to add an extra class on the row that contains the block in visual composer and then use the class in this css code like so:
.mycustomclassname .td_block_4 .td-post-category{
background-color:Red;
}
Thank you!
Hi,
is it possible to have a different header banner for each page?
Thank you
Hi, apologies for asking a few questions in one post but I don’t want to take up too much space. I have a few questions about the settings I can’t seem to figure out:
1) I have a one-page site using Block 4 to display post excerpts (see photo below). My client does NOT want the post title to link to the post page, and wants the only link available to lead to an external site. Can I remove the link functionality from the post title and have it display as plain text?
2) I can’t figure out how to make the footer/header full-width. They used to be, but in the course of editing, they are only site width and I can’t figure out what setting I messed with. No option for this in the footer theme panel section, far as I can see.
3) How can I adjust the site width?
4) How can I change each tag color? For instance, in the attached image I’d like the change the ‘technology’ tag on the photos to match the red color of the block title.
Thanks very much.

Hello,
It seems to run fine at the moment. There is no black header and FB leads to your FB page. Please check the counter again. It could have been a caching issue.
Thank you!
I just change the code,
<IfModule mod_headers.c>
Header add Access-Control-Allow-Origin “*”
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
http://zamoralive.com/, but not working, pls give me thru solutions
info@alarconfilms.com
This is my website
http://sharingtradeschool.com/
at Social counter widget on facebook When i click facebook i con it not link to facebook page
and at social header it have black color Why it show like that?
Hi,
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 dose not passed trough WordPress when the request is made and in that case the function doesn’t “exist”.
You can read more about this and also have a solution for this here: http://ardamis.com/2011/06/02/fix-for-php-fatal-error-get_header-in-wordpress/
Thanks!
Unfortunatly even NO WORK.
My ads.php looks now:
<div class=”td-header-rec-wrap”>
<?php
// show the header ad spot
echo td_global_blocks::get_instance(‘td_block_ad_box’)->render(array(‘spot_id’ => ‘header’));
if (is_category(‘mainz-mingen’))
{
echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_3"]‘);
}
else
{
echo td_global_blocks::get_instance(‘td_block_ad_box’)->render(array(‘spot_id’ => ‘header’));
}
?>
</div>
So – do I have to take any other changes in any other files?
So as I understood I have to use if in_category – because I wan to show this other graphic (placed in custom ad 3) on EVERY POST, which is made IN THIS CATEGORY.
I did´nt know that this could be such a problem, I thought I can change this in the panel by choosing, cos I´m not a really *.php genius 🙂
Hi
I tryied Disabling and activating the CDN plugin, it showed up for a few minutes then it brought back the chinese wording. I also added the the code below but it still the same
<IfModule mod_headers.c>
<FilesMatch “\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$”>
Header set Access-Control-Allow-Origin “*”
</FilesMatch>
</IfModule>
Hello,
The mobile theme has it;s own files you can find here: http://screencast.com/t/w4yzRiRApxhs
Header.php is the one you need to edit to add code to the head tag
The post file on the mobile theme is just 1 found here: http://screencast.com/t/h7dYoblidjz
Thank you!
Hi,
So I was experiencing few fatar errors at some points while working on the backends ( like editing posts, exploring theme options)
Ofcourse, I thought it’s because my hosting server goes down or something related to that. So, I consulted my hosting people. They checled it extensively and replied this:
Our systems admin has concluded that this is not a host related issue, but it’s linked to your theme:
PHP Fatal error: Call to undefined function get_header() in /home/4XXX_ES/web/mydomain.com/private_home/wp-content/themes/Newspaper/index.php on line 6
Please look into this issue. It doesn’t happen always but somtimes.
Hello, Catalin,
thank you, but I mean highlighting just one item in the menu. Other words, for example, five menu items are made with black and only one with red. Perhaps we should think how to paint a header of the particular post to the desired color, for example red?
Its only for the mobile theme and i already go through the provided topic by you and this is the code in my .htacces file….i try to change the code with stack-exchange code but it didn’t help…
This is at the top of .htaccess
<IfModule mod_headers.c>
<FilesMatch “\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$”>
Header set Access-Control-Allow-Origin “*”
</FilesMatch>
</IfModule>
Hello,
Pleas provide more details to how you want to change the hover. You can change the hover colors from the theme panel here: http://screencast.com/t/VQinnTNvZV7 but you cannot change the hover style. The hover depends on the header style that you use: https://forum.tagdiv.com/header-styles/
Thank you!
Hello tcmc1313,
Please notice that each header style has an own CSS for the responsive mode. As an example, for header style 1, as you can see here -> http://screencast.com/t/6tDjgIPR the header logo has specific dimensions (width fix, position relative, height fix and specific margins). Also, if you change all of these, you will see that the Banner Ad will fall down to the next line under the logo, like this -> http://screencast.com/t/AtnKCB5gFwRk
Please notice that is not a simple task and involve some additional adjustments in CSS for better results. Also, you will have to use the @media query to target the tablet width. For more information about this rule, please check here -> http://www.w3schools.com/cssref/css3_pr_mediaquery.asp
Hope this helps!
Thanks for your understanding!
Hi
You’re using in_category() function in your condition which is not correct. To check if a specific category page is displayed you need to use is_category(), please check my first reply from indicated thread.
The condition should look like this:
if (is_category('cat-name'){
echo do_shortcode(‘[td_block_ad_box spot_id=”custom_ad_3″]’);
}
else{
echo td_global_blocks::get_instance(‘td_block_ad_box’)->render(array(‘spot_id’ => ‘header’)); ?>
}
Thanks!