People who code: we want your input. Take the Survey

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
0answers
14 views

What is the correct way to send information to other server from Wordpress?

Actually I don't work with Wordpress, but I have this unique task to complete. So, what I'm trying to do is to send a form information to an other server. In my Wordpress, I have installed Elementor, ...
1
vote
1answer
41 views

Wordpress child theme - adding logo through header.php + text in a footer.php [closed]

I'm confused as to how I add a logo through my copied header.php which is inside my child theme's folder. I'm having the same issue with my footer as well-- in which that the text I'm adding (such as ...
0
votes
0answers
11 views

Logo above menu

Good afternoon, everyone! I'm busy with my friend's website and have already used a lot of CSS, only I get stuck on the following. I would like to put the logo above the menu. So not the logo in the ...
0
votes
0answers
14 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 ...
0
votes
0answers
11 views

Design Header meta on single posts wordpress

I want design my header_meta on single posts like this, please help me Thank you,
0
votes
0answers
24 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 ...
0
votes
1answer
44 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 ...
0
votes
0answers
13 views

Header dropdown not working on my custom built page

Hello my header drop down is working perfectly fine if i use it on the pages that i built with wordpress but the ones that i built from root in html php and css and imported the header dropdown is not ...
0
votes
0answers
60 views

Cors headers Ajax

I'm just trying to run a basic jQuery ajax get request on instagram's api. $.ajax({ url:"https://www.instagram.com/page?__a=1", success:function(data){ console.log(data) ...
0
votes
3answers
31 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 ...
0
votes
0answers
18 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 ...
0
votes
2answers
28 views

Display values of current POST request on page

I would like to get some value that was included in the http request header and display it on my webpage, i.e: I have a webpage, say: 'mywebsite.com' I have a POST request to 'mywebsite.com' with a ...
0
votes
1answer
27 views

Add meta tags to a custom header

I'm trying to create php code to change the Wordpress header. With the help of https://wordpress.stackexchange.com/a/134524, I have the following: add_filter( 'wp_headers', 'add_meta_to_header' ); ...
0
votes
1answer
62 views

How do I modify the <title> tag on my Category Archive page?

I'm using the 2016 template and it uses wp_head() to render the title tag. So for Category pages it displays Articles about: whatever How do I modify this? EDIT: I ended up doing this hack. Which I ...
0
votes
0answers
19 views

Wrong to use echo in wp_footer

I have a feeling that my code is causing the following error: PHP Warning: Cannot modify header information - headers already sent by (output started at /public_html/MY-WEBSITE/wp-content/plugins/...
0
votes
0answers
20 views

How do I stop the Cumulative Layout Shift of a full width canvas animation item in the header.php file? (Google Lighthouse audit)

How do I stop the of Cumulative Layout Shift of this full width canvas animation item in the header.php file? Where is the vertical shift coming from in the code below? <canvas id="myCanvas&...
0
votes
0answers
9 views

Problem with page header when i open a category in my blog

how i can remove the "Category:БЛОГ" header when i open a category of my website i tried with options in appearances but there is no option for removing that and it annoys me a lot
0
votes
1answer
12 views

Page header on specific page is different from the rest [closed]

I've been trying to solve this for ages now. I finally resorted to asking. I am using a theme and I have created a child theme. Everything is working fine, except the that one page uses a completely ...
0
votes
0answers
11 views

Logo showing on some page but not on product categories pages

I am using a bought theme, and i have added my logo in my navigation/header in appearence and it works fine on all pages. But not on product categories. It is like it is using some kind of standard ...
0
votes
1answer
10 views

where can i add custom script to stop header video from autoplay

How can I add the custom script from this answer to my site to stop the custom video header from autoplaying? $( document ).ready( function() { $( document ).on( 'wp-custom-header-video-loaded', ...
0
votes
0answers
26 views

Cannot collapse a responsive menu in Wordpress

I am new to website development so I am testing with some responsive menu to see how it works in Wordpress. I have selected this menu and it works perfectly in the demo. Yet, when I apply the code to ...
0
votes
1answer
12 views

Remove a link in the header

I don't know why but in the header I've always have the page name and that thing below '-> page name'. How can I get rid of it? Thank you so much.
0
votes
0answers
18 views

How can I change the header on the pages?

I'm working with Manufacturer theme and I'm trying to have one header image for each page I have but I can't. Does anyone know how to do it? I've found that I can change the header here: but it will ...
1
vote
1answer
15 views

Remove transparancy in Sydney theme's headerimage

I'm bulimg a Wordpress site on the Sydney theme. On some pages the header image is kind of transparent. Not on the start page, but on all the other sites (example here: https://www.ferienhof-rauchhaus....
0
votes
0answers
119 views

Remove server response header

I'm fairly new to WP/PHP and I'm trying to remove the server response header in functions.php. I've been trying use something like this but it doesn't work: add_filter('wp_headers', function($headers) ...
0
votes
0answers
20 views

How can I pass a variable from a template to header.php of a theme

As of version 5.5.0, WordPress introduced second argument (array $args) to get_header. I am calling get_header in my templates including index.php and I want to pass meta description value from ...
0
votes
0answers
23 views

Sticky Multiple Headers

Good day. I need help with the header of the site I'm recreating. I want these two headers to be sticky with the logo shrink. But I only managed to make the bottom header to work. The first section ...
0
votes
0answers
14 views

How to make search work with front-page.php?

In the file header.php I have a search form that sends me to URLs like localhost/?q=... but, since I have a front-page.php file, it does not work although in the WP theme I have a file called search....
0
votes
0answers
20 views

Is it all right to put the whole <head> tag into template_part file?

I need to have more than one headers so this looks as a good idea but I'm not sure if it is valid. If so, what am I supposed to name a file? I named it head.php so far. Example: <html> <!-- ...
0
votes
0answers
18 views

Title, description and logo lining up

I wrote in a recent topic about the title and description disappearing when the logo was present in my wordpress theme. I did have helpful script by Tony from this forum which solved the problem. I ...
0
votes
1answer
877 views

Using a nonce Content Security Policy header for style-src for inline style elements returns errors

When using a nonce in a Content Security Policy header, both Google Chrome and Firefox return errors. The nonce value is for a style element i.e. <style id="some-id">// CSS </style&...
0
votes
0answers
23 views

How can I use an iframe element as my header media?

I am currently using the twenty-seventeen theme, which allows me to display a youtube video on the homepage and images on other pages. Instead of a youtube video, I wish to display an iframe on the ...
0
votes
0answers
24 views

add multiple titles in header images

I created a rotated header images I need to add multiple titles on every header images For example one H1, one H2 and one H3 on every header image What is the best way to add such titles in the header?...
0
votes
1answer
152 views

How to get rest api pagination headers via fetch

I'm creating a react app via create-react-app. My application is very simple, I just want to fetch posts and display the images and the post title. I can't seem to be able to get the pagination ...
0
votes
1answer
19 views

Undefined get_header function

I installed wordpress according to the site https://ipipe.ru/info/ustanovka-wordpress-na-openserver and then wanted to use underscores.me, where I entered worldelectronics and pressed the generate ...
0
votes
0answers
21 views

Why my header 2000x1200 cannot be well displayed in theme twenty seventeen?

I have a header with size of 2000x1200 but when I uploaded it on the theme twenty seventeen, the lower part of header is gone. It only display about 83% of the height. I would like to know this is........
0
votes
0answers
111 views

What CloudFront settings are required for WordPress now (mid-late 2020)?

I'm having issues getting current WordPress (5.5, but confirmed back until at least 5.2) working behind CloudFront, and am wondering what the current best practice is for Behavior configuration. ...
0
votes
0answers
17 views

Trying to change main headers logo URL on child theme

I've tried a lot of different codes but I can't seem to figure it out. I need the main site logo to go to https://louthphysio.ie/online-appointments/ <header id="masthead" class=&...
0
votes
0answers
24 views

Is it possible to use is_admin() for frontend header.php

I have included the theme's header.php into the WP-ADMIN using iframe but I wanna override certain styles and scripts so I called wp_head() with is_admin() add_action('wp_head', 'wpse_43672_wp_head'); ...
0
votes
1answer
70 views

wp_redirect() is not working

My code is like below. $result = $wpdb->query($sql); if ( $result ) { wp_redirect( "http://www.example.com/contact-us"); exit(); } I am getting below error Warning: Cannot modify ...
-1
votes
1answer
16 views

How to laod wp_enqueue_style to another header i created my self

How to laod wp_enqueue_style to another header i created my self name of the header manga-single-reading.php wp_enqueue_style code in wp-manga.php the code is wp_enqueue_style( 'wp-manga-plugin-css', ...
1
vote
0answers
340 views

Wordpress Twenty Seventeen header image size not responsive for mobile

I'm currently working on a website in wordpress. I've been struggling with this problem for a while. At the first the header image was too big even for computer. I managed to make it shorter using ...
0
votes
0answers
16 views

How to add the standard cart widget from twentytwenty in the expanded menu header

looks good this standard widget from twentytwenty but how do i add this in the modal menu instead of this
0
votes
1answer
27 views

Headers already sent warning in Admin source is media.php 3140

After years of running fine, I am suddenly getting this dreaded message after updating to 5.42. However it only happens in the Admin: Warning: strpos() expects parameter 1 to be string, array given in ...
2
votes
0answers
63 views

Header Button Chance Polylang Elementor

Currently, I am making a Bilingual website, and I made a button on the header as well, and I want to make the button bilingual as well, but I don't know how could I change its language because it is ...
0
votes
0answers
72 views

HTTP Header Authorization is disabled wordpress

Im using PGS Woo API for native mobile app script and i tried to install everything. but im getting the error "HTTP Header Authorization is disabled". I almost used all the solution in ...
0
votes
1answer
770 views

How to deal with logo color on dark mode?

I'm trying to add a dark mode on my website via prefers-color-scheme webkit. However, my logo is all black, while my header is white. On dark mode it should be the other way around. My logo is in PNG ...
0
votes
0answers
78 views

Change the space between nav menu and header based on user scrolling position

Hi there good people around the world! Im trying to design an Elementor Header With some custom CSS.. Im trying to change the height of the space between my header and the header full width mobile nav ...
1
vote
1answer
42 views

Responsive Header for Phone

I'm having trouble with my Wordpress header: when I open my site on my phone (in vertical view), the image is cropped. It works fine on the desktop and is 1600x400 pixels. Have attached an image of ...
2
votes
1answer
3k views

Disabling the X-Redirect-By response header

Is there a clean way to not have WordPress send the X-Redirect-By response header when redirects happen? I'd like to disable it in order not to expose information about our software stack. Something I ...

1
2 3 4 5
12