Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

HTTP headers are what is sent to the browser before the page markup. They often include the page MIME type, charset, status code and encoding. Headers are often overridden to change the page MIME type or redirect the user.

-1
votes
1answer
19 views

Cannot modify header information - headers already sent

So I have a form on one page, which is submitting to admin-post.php, then there is a function in functions.php which is processing the form. It stores the input field data to database and then after ...
0
votes
1answer
13 views

Two same AJAX calls - one is working, other doesn't

I am developing a WP plugin. I have two same AJAX calls, one is working, and second one is giving me 400 Bad Request error for admin-ajax.php. ReadyState is 4, responseText is: " ↵ ↵ ↵ ↵ ↵ ↵ ↵ ↵ ↵ ↵ ...
0
votes
0answers
17 views

Where to put a custom user login / register form?

i'm currently developing a website that needs the users to register / login, etc. Almost all the web functionalities are working well and as intended, BUT the login / register form not; let me ...
0
votes
0answers
8 views

Remove Duplicate Title Tags for Automatic Created URL

When I embed the video to my website, Wordpress will automatically generate URL for me. However, these URLs are have the same title tags. How can I make changes to it? e.g. https://spotworks.com.sg/...
0
votes
0answers
10 views

Fix “In order to improve scrolling performance in Safari, we now move the element to a fixed positioning layer”

I implemented AMP on my WordPress site with the Automattic Plugin and set up a Sidebar using <amp-sidebar>and a headerbar using AMP Project documentation. Right now, when I try accessing the AMP ...
0
votes
1answer
27 views

Wordpress site screwed up after adding Facebook Pixel inbetween header tags

Added my facebook pixel code between the header tags on my header.php theme file and now my website is all screwed up and not displaying properly. I tried deleting the facebook pixel code and saving ...
0
votes
1answer
16 views

Wordpress cookie issue on login: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”

recently I had the problem where on login page Wordpress reported an error: ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress. This was asked ...
0
votes
3answers
36 views

Responsive header images

I just set up a WordPress site and have the same problem I have with all my other WordPress sites: The header image isn't responsive. It's 2,000 pixels wide regardless of how tiny the screen is. I ...
0
votes
0answers
15 views

Unable to communicate back with site

I am trying to edit one of the custom theme PHP files, specifically the header.php, but it shows me this message "Unable to communicate back with site to check for fatal errors, so the PHP change was ...
0
votes
1answer
24 views

How I can overlap my menu in my header picture

How I can overlap my menu in my header picture. I want the menu can be seen on the header picture. This is the example like I want. Thank you. Example :
1
vote
2answers
33 views

How to add a class to the <html> element?

I'm using the X-Theme in Wordpress and I ran into an issue where I needed a CSS class in the <html> tag, but only on one page. This is the code I added into my child theme header file: <!-- ...
0
votes
1answer
26 views

Debug in WP backend

The problem - I get these warnings each time I login to /admin page in WP. Depending on which browser I use, there are problems with these: Warning: call_user_func_array() expects parameter 1 to ...
0
votes
1answer
39 views

How to add close button to dropdown menu that also reverts to menu button on another click

I am creating a custom dropdown menu for my WordPress blog header. I did everything correctly but could not add close button that opens on first click and revert to default on another click. I mean ...
0
votes
2answers
39 views

Last-Modified header support doesn’t speed up server processing - want more

I’ve just added “Last-Modified” / “If-Modified-Since” header support for some pages on my site via the recommendation here, but I didn’t see a very noticeable client page load speed improvement. This ...
0
votes
1answer
33 views

“Cannot modify header information” means I can't use wp_redirect

I am working on a site where new users are expected to agree to read our site policy before they can proceed. Once a new user logs in, they are redirected to the policy page. To continue to the read ...
0
votes
3answers
24 views

How to deactivate the text, that appears, when you hovering over topbar tabs? [closed]

I want to deactivate the text, that appears, when you're hovering over topbar tabs (I've marked it red in the screenshot). Im using the Oshine theme. Greetz
0
votes
0answers
31 views

Duplicate Header and Footer

I am creating a new page template and also need to create a duplicate header and footer php template to use with the new page template. I have already duplicated each php file and named them header-2....
0
votes
0answers
15 views

Custom banner / header for certain posts or pages

Below is the code for my template-banner.php file. However depending on the post or page I want to display a custom banner. I have tried some plugins made for this however these do not work for my ...
0
votes
1answer
116 views

Enable CORS for getting an inline SVG by URL

TLDR; Is there a way I can enable CORS for SVGs in my WordPress back-end, so I can get them through a http request to a different domain? Ideally without having to touch .htaccess? What I'm aiming ...
-2
votes
3answers
50 views

CSS does not take effects and it doesn't show in inspect [closed]

Hi I am trying to do a simple thing for my header at https://blog.madesoma.com/, but I don't know what's wrong with it. .site-header { background-color: #473C93; } #branding-logo { float: left;...
0
votes
1answer
45 views

Change header.php of a specific Wordpress Multisite

I wish to change to change the header.php of child theme and add <meta name="theme-color" content="#ff6600" /> into it. However when using the editor under 'Network Admin', changes are ...
-2
votes
2answers
23 views

Editing Header with a Page Builder [closed]

Is it possible to edit my site's header with a page-builder plugin, such as Page Builder, Elementor, or Gutenberg? I don't want to be stuck in the constraints of the theme and/or Wordpress's idea of ...
0
votes
1answer
26 views

“Headers already sent” error triggered in “parse_query” action

I have this code registered to the "parse_query" action which attempts to trigger a 404 based on the availability of an API asset. My implementation is based on this answer to another question. ...
0
votes
1answer
26 views

Adding custom html/css/images to Theme

I have a small header-of-sorts that's in a html file, with its own css file and a folder of images (svgs). I'm basically trying to put this on my site in the header, so I made a child theme and went ...
1
vote
1answer
35 views

header menu structure: cannot add additional menu items without alignment issues

When I add a new menu item to the header menu there is an alignment issue (please see the image). I'm not exactly sure which part of the header.php file to modify to address this problem. Update - ...
1
vote
0answers
26 views

How to remove main domain header title from after sub domain header title

I have installed WordPress on the main dame in public HTML and have installed all domains in the sub folder. But when we do Google, the title of the main domain comes in the title of all the domains. ...
1
vote
0answers
14 views

I want to hide header in the static homepage that I am working on [closed]

I am creating a static homepage with SiteOrigin Page Builder, and I want to hide header (everything including logo), I want to add a bigger version of the logo in the static page. Link - http://...
1
vote
1answer
48 views

How to prevent page from resubmit on refresh when “Cannot modify header information - headers” warning shows

I know that there are many possible duplicates but i keep receiving this error each time I'm currently working on a WordPress contact form, which is created as plugin. I need after submitting the ...
0
votes
0answers
38 views

remove_action('genesis_header','genesis_do_header') hook not working

I am trying to remove the default 'genesis_do_header' action from the genesis_header hook in order to format my own header layout; however, for some reason it is not working when I try to either ...
0
votes
0answers
48 views

WordPress theme trying to use Background Image in Header

I'm currently using a theme called Allegiant Pro (https://cpothemes.com/theme/allegiant). Previously, the theme recommended using a plugin called WP Display Header to have custom header images for ...
0
votes
1answer
52 views

Warning: Cannot modify header information - headers already sent by

I want to add some "dependencies" (Bootstrap and CanvasJS) to my WordPress website. Therefore I wrote such code in functions.php file: function basic_enqueue_style() { /*Bootstrap*/ ...
0
votes
2answers
570 views

Adding javascript to child theme

I want to apply some javascript to my header and want to know what the best way to implement it is. here is the source that contains the javascript I'm including - https://codepen.io/kaemak/pen/mHyKa/...
0
votes
1answer
19 views

I want to remove part of a header

Here's my question: I want to remove the second part of the header (a certain bar) of this page: http://marbleconsulting.nl/?page_id=127 . I want to remove the part that says 'home > testimonials'. I ...
0
votes
1answer
67 views

Stop plugin from adding cache headers

I'm currently using a plugin called 'Userpro' for user registration and login. This plugin culprit is that it adds no-store, no-cache headers whenever activated. I contacted plugin authors for the ...
0
votes
1answer
58 views

Headers already sent / AJAX

i wrote a little plugin, who displays a custom form in frontend and store entered data in local DB with connection to MailChimp. With a shortcode. Now i´m getting an error "headers already sent..", ...
0
votes
0answers
11 views

Header Menu colors still changing to grey

I have got transparent grey header menu and I want to menu items be white. When I adjust settings, everything is OK, then I go to my main web page (home) and when I come back (blog) it changes to grey ...
0
votes
0answers
144 views

TwentySeventeen video header mobile button unresponsive

I tried to make the header video in the TwentySeventeen theme available for mobile. The video showed up after adding minHeight and minWidth to the custom-header.php file: function ...
0
votes
0answers
27 views

Show header.php & footer.php in admin dashboard

How can add the header and footer of my site into the admin dashboard so that the admin dashboard resembles the frontend of my site? The structure that I want would be {Header.php} {Admin Dashboard}...
0
votes
0answers
231 views

Change Header Color for specific category posts

there is two categories of blog posts on my website, how should i change color of header in single posts page for just one of categories?
0
votes
1answer
19 views

Safe to start a php session on get_header action?

I now usually php sessions are started from the init hook, but get_header runs before writing the page, sono technically speaking, I can open a session from there. Is there any other reason I should ...
1
vote
0answers
42 views

Remove all Wordpress HTTP headers (not in-source embeds)

When we do CURL on our domain, there are things added to the header: server: nginx date: Sun, 27 May 2018 01:05:34 GMT content-type: text/html; charset=UTF-8 vary: Accept-Encoding link: <https://...
0
votes
1answer
19 views

How to overlay a webcomic plugin on top of a header image?

I'm trying to build a (visually) simple webcomic site using the Hestia theme. I'd like to replace the text and links in the center of the banner image (the text that reads "Slick Material Design ...
0
votes
1answer
145 views

How to switch menu location in this header.php?

I'm using the Divi theme by ElegantTheme. I've been trying to switch the place of secondary and primary menu. For what I understand, I'd need to work with the header.php in a child theme, as they do ...
0
votes
1answer
19 views

Set Content-Type header in do_parse_request filter

I have a plugin that sends binary content inside a do_parse_request filter and I need to set the proper Content-Type header but when I do it I got an error saying that Headers was already sent. How ...
0
votes
2answers
522 views

Wordpress Admin Bar Covering & Overlapping Fixed Menu Header [closed]

I am having a problem with the Wordpress Admin bar covering and overlapping my fixed menu header. The theme originally did not have a fixed menu header but I edited the CSS to add one. Also, I added ...
1
vote
0answers
61 views

WordPress 502 | Header Upstream send too big

In the past one of our clients ran in to the problem of having a certain page(while being logged in) return a 502 error (upstream sent too big header while reading response header from upstream) after ...
0
votes
1answer
28 views

Insert stylesheet into WordPress header?

I just want to add one extra line (a third-party font stylesheet) to the header of my blog. I have a child theme set up, but at the moment it only has a custom stylesheet, style.css. Very simply, ...
0
votes
1answer
758 views

Pictures won't display in media library and also won't show preview when selected

I have done the plug in, check permissions (upload folder which contains files for the media contents is 755), clearing cache (there was none, apparently), disable any extra plug-ins, check and ...
-1
votes
2answers
188 views

How can I add a google play badge to my header and footer?

How I can add images or edit html for the header and footers within wordpress. I am looking in the header and footer sections under both "Theme Panel" and "Appearance" but can't figure out how to ...
0
votes
0answers
19 views

my dashboard does not have the option to fix the header or change the theme. how can i get that to show?

when I pull up my site to edit the pages there is no choice to work on the header or change a theme etc. I can not edit my home page, make any additions to it. I can change the rest of my pages just ...