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

Elementor Heading Doesn't Hover [closed]

Creating a website with Elementor, I added the following code to the Headings: <span class="pos"> Something </span> Custom CSS: .pos:hover{opacity: 0.7; color: orange;} It is ...
0
votes
0answers
9 views

How to load the page first then download the file with content-disposition?

Let me start by explaining what I want to achieve first. I have a download page where the user enters a URL with params example.com/join/123/456, where 123 is userId and 456 roomId it then connects ...
0
votes
0answers
13 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
11 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
1answer
26 views

Add clickable link to extreme left of header

I am a newbie and would like to have a clickable URL on the extreme left of the main page header where my logo is at extreme right. I tried the following code but the URL appear above and out of the ...
0
votes
0answers
14 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
17 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
8 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
26 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
14 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
73 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
12 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
20 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 ...
1
vote
0answers
21 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
24 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
44 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
9 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
27 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
349 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
33 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', '...
1
vote
1answer
347 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
12 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
17 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
64 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
14 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
23 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
23 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
12 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
35 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 ...
0
votes
1answer
64 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
21 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
23 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
46 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
260 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
33 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 ...
0
votes
1answer
434 views

Menu not working on Mobile using Neve Theme

My website's menu works fine on desktop, but the hamburger menu doesn't work on mobile and tablet. When I click on it, nothing happens. I am using Neve theme. I have already disabled all plugins, but ...
0
votes
1answer
23 views

Should I use do_action in the header file?

I have a lot to add on the header file because of if/else condition. And it makes the file very messy. So, I have decided to include another file... So how to add it: Creating a function file and ...
0
votes
0answers
96 views

How do I allow CORS from my mobile application to my WordPress backend?

I am using WordPress Contact Form 7 plugin to send message from my mobile application. Of course testing with PostMan worked with no issues but as soon as I tried to post to the endpoint from my ...
0
votes
2answers
21 views

How do I add GoogleAnalytics header snippet in WordPress?

I am not sure where exactly I navigate to add the analytics code once so it gets to all the WordPress pages. Do I change the HTML manually or can I do this from WordPress somewhere?
0
votes
2answers
28 views

Unable to add logo or header [closed]

I want to add a logo on my WordPress website by customizing the theme "Bard", but every time I select an image from my library, it leads to a blank page. The same happens with the header image. And ...
1
vote
1answer
33 views

why enqueued styles in header.php shows in footer?

I`m using this code in functions.php: add_action('wp_head', 'addMyStyle'); function addMyStyle() { wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.css', false, '1.0',...
0
votes
0answers
46 views

Update Code to be Compatible with WP 5.3 ('cannot modify header information' warning)

The following function that we have in a plugin a developer helped us create (he is no longer available) is giving errors when debugging is on once we updated the site from WP 4.9 to WP 5.3. Wondering ...
0
votes
1answer
41 views

Can't change headers / From for wp_mail()

i tried nearly anything to change the From / Reply-to name for the wp_mail() function. Here is my code: $headers = "From: \"FROM NAME\" <from-mail@from.com>\n"; $headers .= "Return-Path: <...
1
vote
1answer
27 views

Resizing of a header/div in a website through css in wordpress [closed]

How can I resize the mentioned header/div of my WordPress website? I have already tried it through checking the div name by going into Inspect Element but it is not working. One thing more the size ...
1
vote
2answers
219 views

Cannot modify header information - headers already sent by pluggable.php

I'm trying to develop a simple plugin but I'm having a problem: I have a custom WP_List_Table in an admin page, but when I click on a button like "Edit Row" or "Delete Row" it performs some expected ...
0
votes
0answers
65 views

Using Javascript On Page - Header and Footer Now Missing

We have a custom product filter to display vehicles on a /products page. The filter uses Javascript and the JS code is place directly on the /products page content editor. The JS code is also placed ...
0
votes
1answer
21 views

set cookies on certain page only

I am trying to set a cookie on Wordpress on a certain page only. I've tried a LOT of different ideas but still can't get it to work as 'init' is called before the page is set. This is my current code:...
0
votes
0answers
80 views

Twenty seventeen header is not responsive

Hello the header of my Twenty Seventeen website is not responsive: when I open the site on my mobile phone (vertical view) the image is cropped. When in horizontal view everything is ok. All other ...

1
2 3 4 5
12