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
1answer
7 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
7 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
18 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
11 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
17 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
7 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
30 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
15 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
13 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
19 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
13 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
90 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
17 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
23 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
0answers
31 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
14 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
16 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
30 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
8 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
15 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
48 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
15 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
214 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
22 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
37 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
46 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
259 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
45 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
32 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 ...
0
votes
1answer
1k 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 ...
0
votes
1answer
40 views

How to add some lines to the wp-login.php header via functions.php?

I have no idea what function to use to add this line to the wp-login.php header: <meta name="viewport" content="width=device-width, user-scalable=no"> I have tried add_action('wp_head', '...
3
votes
1answer
1k views

The style.css stylesheet doesn’t contain a valid theme header

when I try to upload a theme I have uploaded on a free host and it is the first time I upload a theme on a host, I got this error failed because The style.css stylesheet doesn’t contain a valid theme ...
0
votes
0answers
13 views

Automatically attach subpage to taxonomy terms

I'm creating sports news page which popularizes some not "well known" sports. It has "Sports" taxonomy, which has terms "Sport 1, Sport 2, Sport 3". It is used for displaying sport-specific posts on ...
0
votes
1answer
65 views

How to make my banner (logo image) position on the center

I'm trying to redesign my website, and I'm not sure how to make the banner (logo image) positioned on the center of the website. I tried editing the CSS of the theme to set it do display: flex and the ...
0
votes
0answers
132 views

Google Tag Manger - no-script Code Not Found

I am having trouble getting the "GTM no-script code not found: either missing or not in " issue resolved. The GTM script is placed after the < head > tag. No issues. However, when using the ...
0
votes
0answers
15 views

Center logo with navbar and cart option

How can i design Center logo with nav menu.In Mobile view i need Search icon and Cart icon.and Static navbar needed. Some examples https://biona.co.uk/ http://palkova.in I tried different themes but ...
0
votes
0answers
17 views

Canvas Menu freezing the website on safari Iphone once a logo in included at the header section

I have this site: www.drywild.co.il When I try to insert a logo at the header it freeze the entire website. Happens only in safari Iphone, Android/Chrome works fine. The logo image is PNG image in ...
0
votes
2answers
25 views

Cannot get custom javascript to execute on page

I have a simple piece of "hello world" code I'm trying to execute on a page. I'm adding it using a PHP snippet: add_action( 'wp_head', function () { ?> <script type="text/javascript" src="https:...
0
votes
1answer
62 views

Changing ALT-tag for logo in wordpress

I've been working on a site for someone and I've been debating whether or not to take a risk with something. I haven't really worked a lot with .php in the past, but I know that a few mistakes in ...
0
votes
0answers
13 views

Custom header with logo in bewteen navigation menus

I'm new to wordpress and coding in general, but I'd usually code with the help of bootstrap. I am currently building a website for a local charity (using wordpress) and I would love to have anyone's ...
0
votes
0answers
56 views

Resize header on Buddypress site on Twenty Twenty theme

Hi please see my homepage atxhomelessapp dot com. I just want to reduce the height of the header and I'm having a hard time. It's the orange section at the top. I really just want the height of the ...
1
vote
1answer
133 views

How do I modify the size of the text in my page titles?

Sorry for this basic question, but I'm having a hard time editing the size of text for the titles on the pages on my wordpress website. The html is below <h1 class="hero-title"> COVID Visual &...
0
votes
0answers
23 views

show background color in sticky header with jquery

i have a problem on my site. I have started this site with GeneratePress Pro + Visual composer, and i build everything with VC. Now i have a problem: with the vc documentation i made a transparent ...
0
votes
0answers
24 views

Easiest way to use relative URLs in my WordPress header

What is the easiest way please to use relative URLs in my WordPress header for calling all JS and CSS files? So instead of: <script src="https://xn--bsta-bredband-bfb.se/wp-includes/js/wp-emoji-...
0
votes
1answer
51 views

How to Customize Wp Default Title and a prefix

This code snippet shows (prefix) category Name first before the Post title (Very right). E.g Music: %Post_title% Video: %post_title% Lyrics: %post_title% News: %post_title% Lifstyle: %Post_title%. ...
0
votes
0answers
313 views

Cannot modify header information - headers already sent by (output started at /wp-admin/index.php:1)

I have a problem logging in to wordpress. When I want to visit the /wp-admin page, I get the following message: Warning: Cannot modify header information - headers already sent by (output started at ...
0
votes
1answer
38 views

Add “onclick” option to header menu item

on my website I have a problem. In my menù I have a voice called "area riservata". What I want to do is: insert a condition on this specific voice, so when a user click on this voice a not logged-in ...

1
2 3 4 5
12