Skip to main content

Questions tagged [headers]

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

There is no option to click the button in header only on some pages

I have tried to solve this problem on my own but nothing works for me. 1 scn - On the main page https://customqualitymanufacturing.ca/ when hovering over the Products button in the header everything ...
Lily Reynolds's user avatar
0 votes
0 answers
9 views

How to prevent random 302 canonical-ish redirect on custom template

I'm trying to create a subpost location - like /embed or /feed - for photo galleries. // this defines the location logic if (!function_exists('is_gallery')) { function is_gallery() { $uri = $...
lucian's user avatar
  • 322
1 vote
0 answers
13 views

wp reset password page - head inline script

In the reset password page, i have this core inline script in the head section : <script type='text/javascript'> /* <![CDATA[ */ var userSettings = {"url":"\/","uid&...
rafa226's user avatar
  • 121
0 votes
2 answers
37 views

No Google Analytics code rendered in the header?

I'm using Customizr Wordpress theme. I've pasted Google Analytics code into header.php, right before </head>. However, when I load my web page, there is no Google Analytics code in the header. ...
Danijel's user avatar
  • 155
0 votes
0 answers
6 views

How to organize the header elements, so that it doesn't come out differentin mobile view

Hi this is the website where its been stacking the columns in mobile view. https://ebenmission.org.au/ Because there are so many elements, I've been manually adjusting it rather than editing it in a ...
Rachel Kim's user avatar
0 votes
2 answers
82 views

Security headers disappear on Wordpress pages

I am facing a problem that both me and my host support team were unable to untangle. I have included security headers in my .htaccess file (see below), but I get inconsistent results: All the headers ...
AnalysisStudent0414's user avatar
0 votes
0 answers
55 views

Change information (phone number) in header of WordPress site using Veda theme

The site is located at www.morrellplumbing.com.au and the header looks like this: I need to change the phone number, but for the life of me, I cannot find where it is stored in the Wordpress ...
Dale M's user avatar
  • 101
0 votes
0 answers
15 views

How can i change my WordPress site mobile logo which is linked to another source?

Please have a look at this sites mobile header. I was trying to change logo but its not working and also tried to find out the source and change but it's source is another link and i don't know how to ...
MR1997's user avatar
  • 1
0 votes
0 answers
29 views

WooCoomerce: cannot change menu color on the woocommerce pages only

I have a problem with the transparent header. While it looks good on the main pages, in the shop, cart, and checkout pages of WooCommerce, the transparent header doesn't work because the menu items ...
Mary's user avatar
  • 1
0 votes
1 answer
446 views

Favicon not showing in Google search results

My website's favicon is not showing up in Google's search results. I have tried several things without success, but I think I understand what goes wrong now. On the Wordpress dashboard, I clicked into ...
Juan's user avatar
  • 1
0 votes
1 answer
638 views

Add additional scripts and markup in the <head> section of default Gutenberg theme

I'm getting used to the new Gutenberg system and want to add some lines in the section. I peeked inside the header.html file of the default Gutenberg theme, inserted some code, but it's not showing ...
Marc P's user avatar
  • 513
0 votes
1 answer
133 views

Why is there a bunch of WordPress HTML code in my browser CSV download?

I'm trying to add a button/link to an existing WordPress page to allow downloading a dynamically created CSV file. The contents of the CSV file are retrieved from the WordPress database. Unfortunately ...
bistromatic's user avatar
0 votes
1 answer
89 views

Content Security Policy blocking images from installed plugins' popup info window, as they are from external domains - global fix?

I have Content Security Policy added to my WordPress site via Header set in .htaccess, and just found if I am on the WordPress plugins admin page (/wp-admin/plugins.php), and click "View Details&...
Ben Blue's user avatar
  • 117
0 votes
0 answers
31 views

Warning: Cannot modify header information - headers already sent custom sizes and get_intermediate_image_sizes()

When adding custom sizes and returning get_intermediate_image_sizes(); throws the error Warning: Cannot modify header information - headers already sent. The entire code is: <?php function ...
Motivated's user avatar
  • 215
0 votes
1 answer
226 views

all plug-ins load scripts on all pages

I noticed that almost all the plugins I installed load the css and javascript in the head of all pages, even those where the plugins are not used. I think this is slowing down the loading of pages on ...
LesCa's user avatar
  • 21
0 votes
1 answer
199 views

WordPress Site Broken and it gives Headers Already sent error

My wordpress them is broken and Am getting the error below. PHP Warning: Cannot modify header information - headers already sent by (output started at /home/jcceastl/public_html/index.php:174) in /...
June Muoti's user avatar
0 votes
1 answer
508 views

How to add additional http header to a wp_error rest response

I'm using the rest_request_before_callbacks filter to check for authorization, more or less similar to this example from the docs // check if authorization header is set if ( ! $request->get_header(...
MediaFormat's user avatar
1 vote
2 answers
171 views

How to add meta description correct way

i need help on my meta description. I would like it to start like this <meta name="description" content="<?php echo wp_strip_all_tags( get_the_excerpt(), true ); ?>" /> ...
Braden Feliciano's user avatar
0 votes
1 answer
141 views

wp_redirect problem using code snippets

i'm losing my mind a little bit with this one. I'm new here so please tell me if there's anything else I can provide to help explain myself. I want to restrict certain pages based on user IP, but the ...
Firemax's user avatar
0 votes
2 answers
566 views

How do you modify HTTP response headers on feed/?

Trying to change Content-Type: application/rss+xml to Content-Type: something/else on example.com/feed/. My code so far: function force_404() { global $wp_query; // Modify content-type header ...
Jeff's user avatar
  • 125
3 votes
1 answer
2k views

wp_redirect() doesn't work

I am inserting a piece of code to my website that includes a redirect statement. Everything works fine except the wp_redirect();. The following warning message appears. Cannot modify header ...
Asmat Ali's user avatar
  • 139
0 votes
1 answer
11 views

Error Message - Cannot login to Wordpress

I am getting this error message and cannot log in to wordpress anymore. Can someone please help: Warning: Cannot modify header information - headers already sent by (output started at /home/customer/...
Rini's user avatar
  • 1
0 votes
1 answer
133 views

WooCommerce: I Need to hide my page title/header (including menu) from all the WooCommerce related product pages, such as category and keyword pages

I've been trying to hide my page header from showing different WooCommerce related product pages/search. I managed to put the right CSS to hide it from main product page, but when certain category or ...
mjhalonen's user avatar
0 votes
0 answers
14 views

How to make a slider hearder?

My goal is to make the same kind of header as the bottom part of https://www.hotukdeals.com/' header where you have an arrow on both sides and between them, all the categories that the website has. I ...
TRIGZ's user avatar
  • 1
1 vote
0 answers
84 views

Footer option is missing in Customiser

Below is my dashboard screenshot, I don't see the footer option in my customizer. I have struggled a lot to research on this but no luck. Can anybody please help me with this? how can I show the ...
ss-ss-v1's user avatar
0 votes
0 answers
272 views

WP Rest API - Change response status code for failed validation request

I have created a new route with this code: register_rest_route( 'namespace', 'some-route', [ 'methods' => WP_REST_Server::CREATABLE, 'callback' ...
djanym's user avatar
  • 125
0 votes
1 answer
584 views

Having Issue on Redirecting With Session in WordPress

I am trying to create a simple login system in WordPress using core PHP but I am getting this error message Warning: Cannot modify header information - headers already sent by (output started at /www/...
Suffii's user avatar
  • 201
0 votes
1 answer
298 views

404/500 error on content images if Referer header is from another domain [closed]

Not very familiar with WordPress so I'm not sure what's causing this. Essentially, we have a few image assets stored under wp-content. When we access some assets (i.e. cmssubdomain.apex.com/wp-content/...
AnimaSola's user avatar
  • 113
0 votes
1 answer
68 views

Does wordpress templates always in files or in database?

I have theme and in header.php and I found this templates (see attached screenshot). But there is no content directory in template directory. Even I searched for those files (header-private.php and ...
Avijit Palit's user avatar
0 votes
0 answers
22 views

Multiple use wp_logout_url() on page cause 'header already sent' error after submit form

I am using two wp_logout_url() echoes on page. The first one is used in header.php custom theme file, second one is used in another page template file (page-[customslug].php). On that page i have a ...
X9DESIGN's user avatar
  • 159
1 vote
1 answer
1k views

Headers Content-Security-Policy CSP Major Issue

Im trying to add CSP : Header add Content-Security-Policy "script-src 'self';" - to my htaccess, seems like this line keeps breaking my site, The blocks gets broken, Unable to edit ...
Emotional's user avatar
0 votes
1 answer
92 views

Adding Plugin Assets to Header

I am creating a WordPress Plugin. I have already added some pages. But I want to add custom CSS to that pages in the <head>. I am trying: add_action( 'wp_head', 'DisHeaderAssets'); But nothing ...
Devanarayanan's user avatar
0 votes
1 answer
394 views

How do I use an iFrame for my header in Wordpress twenty seventeen?

I'm pretty new to Wordpress, and I'm currently trying to make a site using the twenty-seventeen template. My ultimate goal is to use an iFrame of a sketch I made in p5 as my header media, so that when ...
topherbb's user avatar
0 votes
1 answer
340 views

Wordpress can't use ZipArchive

Im currently developing a site where customers can download brand images like packshots. Ive made a custom cart where the client should be able to download all images added to the cart using ...
fredriktv's user avatar
0 votes
0 answers
62 views

How can I remove or change the tooltip of an icon

I've been using Education Base Pro theme and have been trying to change the tooltip of an social media icon because the options displayed do not have the one i needed (anchor), so what i did was ...
Adrian A.'s user avatar
1 vote
1 answer
1k views

Create wordpress header with custom logo in between the menu splitting the menu into two equal parts [closed]

I would like to Create A Wordpress header with {the_custom_logo();} custom logo in between the menu splitting the menu into two equal parts so that the logo is always aligned to the center of the ...
Kevin Kenan's user avatar
1 vote
1 answer
1k views

Prevent Wordpress from sending set-cookie http header

For some reason Wordpress is setting "Set-Cookie" in the header of the entire site, this is telling my cache server not to cache the page, I tried to remove it via .htaccess, but it disabled ...
Leonardo 's user avatar
0 votes
1 answer
2k views

Reliable way to add nonce to HTTP Header in WordPress?

I am trying to implement CSP on my wordpress site. Inspired by this question, https://stackoverflow.com/questions/50002041/adding-nonce-to-script-tag I tried to build a way to add nonces to my ...
Aditya Agarwal's user avatar
0 votes
1 answer
1k views

WordPress Favicon not Working For Images/Videos/PDFs

I am using WordPress with Neve theme, for my site, Favicon is working on posts/pages, but Favicons aren't visible for JPG/PNG/Videos. If I use the Theme Customizer and select the Favicon PNG image, it ...
Aditya Agarwal's user avatar
1 vote
1 answer
1k views

How do I redirect the browser to 404 page, if no posts are found in home page

I am listing posts on the homepage with pagination and if no posts are found on the home page. I want to redirect the page to 404 page and get 404 response code. For example, example.com/page/200 Page ...
MT09's user avatar
  • 13
0 votes
1 answer
1k views

Set cors header for ajax requests

I am trying to use wp-ajax inside another sub-domain, but I am getting a CORS error. To solve this I used add_action with the send_headers hook: function cors_header () { header('Access-Control-...
TheWhiteFang's user avatar
0 votes
1 answer
36 views

Not so common HTML transition to wordpress issue

This is one possibility most of the time: <div class="wrap"> <header></header> <main></main> <footer></footer> </div> But my ...
WordCent's user avatar
  • 1,877
0 votes
1 answer
329 views

How to remove get_header From all single pages in wordpress with functions.php without plugin?

I want to remove get_header and get_footer conditionally and temporary from all single pages with functions.php i tried this remove action with conditions code but not works.. remove_action('...
user avatar
2 votes
0 answers
163 views

How to debug error message: Cannot modify header information

I'm experiencing some wierdness with a custom theme in WooCommerce. I know that WooCommerce is off-topic, but while debugging it, I've figured out that it most likely is another plugin, that is the ...
Zeth's user avatar
  • 868
1 vote
0 answers
104 views

Responsive header image

I am new here. I have been looking into solving a problem I have been having for a while. I have setup my header image to be different for mobile and desktop. So far so good. However for screens with ...
Bani Wafels's user avatar
0 votes
0 answers
18 views

Design Header meta on single posts wordpress

I want design my header_meta on single posts like this, please help me Thank you,
Pindex Viet Nam's user avatar
0 votes
0 answers
39 views

We are facing this error in header unable to understand the issue

call_user_func_array() expects parameter 1 to be a valid callback, function 'add_search_form' not found or invalid function name in /home2/zeonu81d/public_html/wp-includes/class-wp-hook.php Please ...
Brand mgr's user avatar
0 votes
1 answer
856 views

Content-Security-Policy Headers are there and showing the correct settings, but still getting a refused connection

So I'm putting a plugin together that will allow me to connect multiple client sites with an online service. I can get the service vendors snippet to load, but once you interact with it, that's where ...
Tony Djukic's user avatar
  • 2,108
0 votes
3 answers
408 views

How to insert custom text after H1 to all my blog posts?

I'm looking for a way to insert "THIS ARTICLE MAY CONTAIN COMPENSATED LINKS. PLEASE READ DISCLAIMER FOR MORE INFO." after the H1 in all my blog posts (not pages). Is there a way to do it ...
Max Brunetti's user avatar
0 votes
0 answers
32 views

Including PHP files in header.php

I have multiple header files, which are 90% the same code. It would make editing them easier if common code could be contained and called from a separate file. However, neither "include" nor ...
JohnG's user avatar
  • 334

1
2 3 4 5
13