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
11 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 ...
-1
votes
0answers
5 views

Sticky header for wordpress changes logo position as I scroll down

My client's website have a Sticky Header with a logo. However, every time I scroll down the logo changes its position, it moves to the center and overlapped with the Menu. Anyone face the same issue ...
0
votes
0answers
23 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
13 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 ...
-1
votes
0answers
15 views

Keywords tag is not showing

I don't have money to buy Yoast SEO. So I have added some tag manually in the header in my WordPress website such as description and keywords tag. Description tag is working properly but the keywords ...
0
votes
0answers
11 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
21 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
18 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
10 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
18 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
55 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
21 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
43 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
159 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
25 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
160 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
22 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
33 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
26 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
30 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
44 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
33 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
19 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
152 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
61 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
20 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
48 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 ...
0
votes
0answers
53 views

Avada: Hide half of header v5 on different pages?

I am currently working on a website using Avada Header version 5, which consists of the fusion-contact-info header (Text + Nagivation) and a separate menu with 435px padding to allow for an image to ...
0
votes
2answers
973 views

How to change the width of certain paragraph or header blocks?

Most of the time I like having the blocks the full width of my site (https://princetonfireandsafety.com/), but sometimes I just want to have a single header or paragraph block that isn't that big. ...
0
votes
0answers
20 views

Drop down Nav Menu

I have tried to implement bootstrap drop-dawn nav menu, as Walker_Nav_menu, but no luck, start_lvl working just fine, but cannot add items to <div class="dropdown-menu"> element. Here is a ...
0
votes
0answers
9 views

Tweenty Seventeen Header as whole page?

I am looking to make my header the whole page, I don't want a home page there, I would just like the image or just the video. not sure how to do it?
1
vote
1answer
1k views

How to remove X-Frame-Options: SAMEORIGIN" from WordPress?

I want to temporarily remove X-Frame-Options: SAMEORIGIN and need to allow all domains. I have already tried the following ways. Removing send_frame_options_header from ./wp-includes/default-filters....
0
votes
0answers
13 views

How to render main header navigation bar across all WordPress pages

I am building a theme using the Highend plugin in WordPress. In Highend Options > Logo Settings in WP dashboard, I overrode the default logo to implement a custom logo. This new logo appears to render ...
0
votes
0answers
12 views

Header color issues

I have a transparent header with white text on my homepage which is set site wide. The problem is that my product and category pages are white background so they header gets lost on those pages. Can I ...
0
votes
0answers
45 views

Content-Security-Policy Header with JetPack

I am currently setting up a web server for WordPress. Ubuntu 18 with Apache2 behind Cloudflare. The WebSite is connected to WordPress JetPack. Everything is up and running, but I am stuck at ...
0
votes
1answer
13 views

3 WP installations on the same domain, with the same header

I'd like to have 3 Wordpress installations on the same domain, using the same header though. How can I achieve this? mydomain.com (WP content website) mydomain.com/shop (Woocommerce website) mydomain....
1
vote
0answers
653 views

“No Access-Control-Allow-Origin header is present” even though it is in the entry file

I'm seeing this in the Chrome browser console after doing a test fetch request: Access to fetch at 'http://localhost/wptest2/wp-json/pluginFolder/1.0/load?limit=10&offset=0' from origin '...
0
votes
0answers
10 views

Top header to edit page not present in one page

On one of our wordpress pages (we use polylang and it is only present on one language only), the top bar that appears when logged in as an admin to edit the page, customize the theme, access the ...
0
votes
1answer
130 views

Hook to change HTTP response headers

I want to write a simple Wordpress plugin. The plugin will: Read (if set) a cookie from the visitor Send a cookie (if not set) to the visitor Depending on the cookie value I will redirect the user ...
1
vote
1answer
218 views

Why does the header set X-Robots-Tag apply to all pages?

The directives below are intended to apply the header X-Robots-Tag noindex and nofollow to a single page. The directives below are applied before the WordPress code block however it appears to ...
0
votes
0answers
14 views

Header Navmenu glitching in Chrome (but not other browsers)

My website, https://bthsensor.com has been experiecning a certain glitch on the chrome browser specifically. The header navigation menu jumps from its assigned position when the cursor hovers over it. ...
3
votes
0answers
1k views

x-wp-nonce is not allowed by Access-Control-Allow-Headers in preflight response

I would like my dev server on http://localhost:8080 to work with my wordpress install's rest api, of which the api base url is at http://localhost/wptest2/index.php/wp-json/ I am currently getting the ...
1
vote
0answers
21 views

How can i resolve 301 redirection Issue on my website?

When I scan my website on (https://www.woorank.com/en/www/fusionfirst.com) I already use canonical tag on my header section. Please check and help me :)
0
votes
0answers
32 views

Appearing tab is not showing even after accessing WP_site through wp_admin

My wordpress website is not showing the appearance tab on it .I have logged in through WP-Admin.The site is functioning properly but the divi theme and plugins options and appearance tab is not ...
0
votes
0answers
21 views

Header with both normal menu and sidebar navigation menu

I'd like to have something like the tinder homepage, with a few text menu icons, followed by a hamburger widget, that opens a sidebar menu. Currently I have tried using oceanwp, and astra themes, and ...
1
vote
0answers
39 views

How can I use cached images in an AJAX response?

WP_AJAX includes no-cache headers with its responses. I'm using Ajax to fetch part of a shopping cart, which includes little image thumbnails. On each Ajax request, these are replaced and we can see ...
0
votes
0answers
24 views

Where is the location header?

When I curl a page of mine, I notice that it is moved permanently to... itself: PS C:\Users\Ooker> curl -I xn--qucu-hr5aza.com/page/2 HTTP/1.1 301 Moved Permanently Server: nginx Date: Wed, 21 Aug ...
0
votes
0answers
141 views

How critical are Underscore.min.js, wp-auth-check.min.js, heartbeat.min.js and jquery.js if blocked by CSP?

The following files are blocked from loading when the following CSP is implemented. Header set Content-Security-Policy default-src 'self' 'unsafe-inline' https://fonts.googleapis.com; script-src '...

1
2 3 4 5
12