- TutorialsDefault Block Settings Guide
When I set header style on “full logo on top” (style 9), I correctly see the text logo and the text logo tagline in the header.
How can I change the font of that text?
Hi had an issue on my site earlier – unrelated to this – but whilst looking through error log i found millions of these
[11-Mar-2016 08:14:03 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/eastmidl/public_html/mag/wp-includes/functions.php:3464) in /home/eastmidl/public_html/mag/wp-includes/functions.php on line 3503
[11-Mar-2016 08:14:04 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/eastmidl/public_html/mag/wp-includes/functions.php:3464) in /home/eastmidl/public_html/mag/wp-includes/functions.php on line 3503
[11-Mar-2016 08:14:05 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/eastmidl/public_html/mag/wp-includes/functions.php:3464) in /home/eastmidl/public_html/mag/wp-includes/functions.php on line 3503
the line in question is
header( ‘Content-Type: text/html; charset=utf-8’ );
The site is running fine – only thing it is doing is creating a larger error log file
any ideas
Hi. I just add this code in the and of .htaccess:
<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>
But still not working. Sometimes those icons shows sometimes not. What I have to do? 🙁
Hi
Try this css in theme panel > custom code > custom css to change tha background color for mobile menu: http://screencast.com/t/D2ieUCRlBOhj
@media(max-width: 768px){
.td-header-main-menu{
background-color: red;
}
}
Let me know how it goes and if this is not what you mean please provide your site url and more specific details about the part which you want to edit so I can inspect this and get back to you with the proper code.
Thanks!
Hello neikosbn,
For more information about using Adsense code, please consult our documentation here -> https://forum.tagdiv.com/header-ad/ Also, please notice that our theme only renders your Adsense code and not create it and for a good displaying on the theme the code have to be created to support other dimensions. For more information about technical details about Adsense ad and structure, we recommend to address to Google Adsense because they will be able to provide a more accurate response.
HJope this helps!
Thank you for the message!
Hi guys,
I’ve been trying to figure out how I can change the background colour on the mobile version only.
One of my sites is due a redesign, I’ve redesigned the logo in Orange and black with a grey accent. I’ve set the main nav colours to the same colour configuration with the grey acting as the background colour for the nav and it looks great until you go to the mobile menu because part of the png logo is lost in the background of the main nav colour that’transferred over from the themes main nav colour scheme
Basically I want the main nav on desktop to be as it is (because the logo isn’t sat inside it, it’s great)but I’d like to change the nav colour on mobile only to white so the grey bits of my logo are visible again.
Many thanks
D
Hello,
@mlgallant Well if the option does not stay selected, that is the reason you do not see featured images. Please try to clear your cache after you change the setting and make use you increase the system status parameters according to this guide: https://forum.tagdiv.com/system-status-parameters-guide/ If you still cannot get the option to stay selected, please send us an email at contact@tagdiv.com and provide wp-admin so we can inspect it. (also include a link to this topic so we can identify you)
@Olak,
Please re upload your images in the media library. edit a post and remove the featured image that does not show up and upload it again. Do the same for the logo and your ad in the header. http://screencast.com/t/WwLgJ0UB55j
Most of your posts do not have a featured image set so you can only see the placeholder image on your homepage.
Hope this helps.
Thank you!
Hello Udutronik,
If you want to have the main menu bar to be full width (“unboxed”) for header style 3 and 4 you have to use a bit of CSS code to do that. Please notice that if you want to add a background for the whole theme, the layout of this will be boxed ->this is the behaviour of the theme and if you want to change this functionality you need customization services.
The code for header style 3 is ->
.td-header-style-3 .td-header-menu-wrap-full{
background-color:black!important
}
The result is -> http://screencast.com/t/4yigIFMfd
The code for header style 4 is ->
.td-header-style-4 .td-header-menu-wrap-full{
background-color:black!important
}
The result is -> http://screencast.com/t/YxdqIFI2WxeH
Hope this helps!
If is not what you mean, please provide more details about your desired changes so I will be able to provide a more accurate response.
Thank you for the message!
Thanks, for the time now i will start trying to build it again on the server.
Do you know where all the default templates are? I had nice ones and now i have only 4 that also are very limited and not well designed. Is this part of the problem? Even if i wanted i don’t have the same options. Example: at the theme panel> header style> i used boxed dark menu. This option plus another 4 are not available.
Thanks,
Demian
Hello, I am using Newspaper 6.6.5 and I would like to know how to “unbox” the header layouts 3 and 4 (boxed dark w/and without logo), how can this be done?
Thanks!
You might do exaxtly what the error says, check the “user agent” for your site.
Check the htaccess file for anything weird, check the HEAD of your page source; check with your hosting provider to make sure site is sending correct headers.
E.g.,
= No cloaking found, = Cloaking found. You may need to check the site for the specific user-agent.
“user agent” is the important note there. The concept of cloaking in this context refers to:
SEO Cloaking Checker
http://www.seotools.com/seo-cloaking-checker/
The SEO Cloaking Checker detects whether a Web site uses "cloaking," a server technique that some sites utilize to try to fool the search engines into awarding rankings the Web pages do not deserve. Cloaking involves showing one version of a Web page to users and a different version, usually stuffed with other keywords, to the search engine spiders. This is a stealth method that Google and the other search engines consider deceptive, since it attempts to bias the spiders into ranking the Web page undeservedly higher or for a different keyword term. We strongly discourage using this type of technique since it is spam, and if detected, could cause your Web site to be penalized in the search engine results.
So, if you have something changing the “user agent” string in your HTML pages, that would be bad; or some wonky thing in your htaccess or robots.txt file — that would be bad.
As far as malware, you can also test with this:
https://www.google.com/transparencyreport/safebrowsing/diagnostic/
Im not sure what is going on, but the normal code to detect whether the connection is https using htaccess does not work for me. Everything i try just messes up. According to apache the connection is on port 80 even though i have the green padlock in the nav bar. Anyway i was able to make it work using php as there was one consistent variable that was working for me.
This should be a search engine friendly option right? I put this at the top of index.php in the wordpress root so it is the first thing that it will process.
if($_SERVER[‘HTTP_X_FORWARDED_PROTO’] == “http”)
{
header(“HTTP/1.1 301 Moved Permanently”);
header(“Location: https://”.$_SERVER[‘HTTP_HOST’].$_SERVER[‘REQUEST_URI’]);
die();
}
Hi
You can insert a new container near page content in header.php file like here: http://screencast.com/t/XmNVmU8j0c http://screencast.com/t/cl1dXMVb In this container you can display any add, including a shortcode for a specific ad-spot using do_shortcode() function. http://screencast.com/t/Fbx66wcDI2m
Hope this help.
Thanks!
I have moved my site over to HTTPS. I have altered the DB as i usually do to add https to the url. This has updated all of the URLs on the site, but all of the CSS and JS files are being blocked because they are being included as http files. I dont think its a major error, but based on the help i have gotten so far people are blaming the theme for this. I have checked header.php and functins and there are no lines that could be causing this.
In rooting through header.php i found <?php echo td_global::$http_or_https?>. What triggers this to be https? Is this the cause of the site not including external files as https?
i am using Newspaper default demo and i am using background image or color…In this case, how can we have Header Area including both Menu bar as well as Footer Area of FULL WIDTH as before in default…i want to use background color or image and don’t want to lose FULL WIDTH Header and Footer are.
I need help in this case.
Thanks.
Hi
You can modify the file corresponding with the header style used and add your code under the menu container. header is an example for header style 1: http://screencast.com/t/Sd3ksqnkfF Also you can use do_shortcode function if you’re using one of theme’s ad-spots to display the image: http://screencast.com/t/RejwRCvbd – http://screencast.com/t/2vlRSiLqwPk
Hope this help.
Thanks!
Hi
I am not sure I understand your issue or if you still have it.
The ad-sense ads sizes can be controlled from theme panel > ads section: http://screencast.com/t/ExPR3saPBYax For these ads will be applied sizes selected in indicated ares.
For more details about ad-system please check our documentation here: https://forum.tagdiv.com/header-ad/
Thanks!
Hi
1. The code which render the ad-spots it’s located in td_block_ad_box.php: http://screencast.com/t/PqHOTJvI
2. I assume that that you want to display different ad-spots according with the post type displayed. To achieve that you will need a condition which check what post type it’s displayed and depending by result display a specific ad. Here is an example for header ad: http://screencast.com/t/4e9sKBons This is just a basic example about how can you check what post type it’s displayed and manipulate the ads according with the result.
You can create new ad-spots following the solution offered in this topic: https://forum.tagdiv.com/topic/how-to-add-more-custom-ad-spots/ and use them in your post types.
Using do_shortcode function and some proper conditions you can display ads according by the custom post type displayed. For more details about the function’s usage check these links: https://forum.tagdiv.com/topic/different-ad-tags-for-the-category-templates-vs-the-homepage/
https://forum.tagdiv.com/topic/sub-page-no-standard-top/ – https://forum.tagdiv.com/topic/header-ad-on-top-of-menu/
I hope this help but if you need additional informations please provide more specific details about what you’re trying to do and maybe I can help.
Thanks!
Hello freddre,
If you want to remove your ad only for this page, you have to use a bit of CSS code to hide it. Please try the code below and place it in Theme panel->Custom CSS area.
The code is ->
.privacy-policy .td-header-sp-recs {
display:none;
}
The result -> http://screencast.com/t/zYZzddORMIzk
Thank you for the message!
Hi,
You do not need to do anything about it because the error you see in webmasters will not affect your website at all. It simply does not recognize a part of our code that we use to get the header. Either you replace the function instead of the get_header(); or not, the result will just be seen in the webmasters tools. It’s not something that affects your site in any way. The error can simply be ignored.
If you want however to see it gone from webmasters then you need to replace the get_header() from every file it is specified: http://screencast.com/t/XQUnvQvviIU (31 places to be exact)
Please follow this topic to see how it can be done:
https://forum.tagdiv.com/topic/fatal-error-in-wp-contentthemesnewspaper/
Thank you!
Hello PedroMiguelMoreira,
I suppose that you are referring to the Search symbol (“magnifying glass”). This kind of option is created in the header-menu.php core file. If you want to add the Search word, you have to alter the code from this file, like this -> http://screencast.com/t/Jn3vnxAlF -> http://screencast.com/t/ZIQElfNQ The search function should work fine. Please try to disable all the active plugins, leave just Visual Composer, clear all cache and install only the plugins that come bundled with our theme and rule out the conflicting plugins. You can check this option in our demo version, here -> http://demo.tagdiv.com/newspaper/
Hope this helps!
If is not what you mean, please provide more details about what you want to change so I will be able to provide a more accurate response.
Thank you for the message!
Hi, here’s my problem.
I assign to an Ad Box the custom_ad_1 spot, in which I’ve previously put the Adsense code for a 728×90 banner; but instead I get a 300×250 banner when the page is loaded.
I tried aplying the same code to custom_ad_2 and still get the same issue. If I assign it the header spot, it shows ok.
Thanks!
Hello!
I see lots of this error in my log
[Wed Mar 09 17:27:36.480644 2016] [:error] [pid 1XXX] [client XXX] PHP Fatal error: Call to undefined function get_header() in /nas/content/live/pierregazzola/wp-content/themes/Newspaper/index.php on line 6
Any idea how to resolved this error?
Hi, We use DFP to power our ads on our site.
We have about 6 different types of pages (Home, Movie Reviews, Photos, Box Office numbers, Polls, Videos), and will need to serve different ad tags depending on mobile or web.
On a given page, we would want to have 3 or 4 locations for an ad – e.g. header, footer, sidebar, in-article ads
And there would be different tags for mobile and desktop.
1) How do you recommend the ad slots are declared ? Would it be necessary to define 6 X 4 x 2 ad slots ?
2) Correspondingly, how would you recommend the ad slots are defined in your themes / page types, to get called per device and page type ?
Our primary goal is to be able to report and target based on page type and device, without having to lose too much hair managing the multiple ad slots.
Hello,
Unfortunately the theme ad system has no options for filtering ads. It can however be done using the adrotate plugin (or another ad rendering plugin) Please read the documentation here: https://forum.tagdiv.com/header-ad/
Thanks.