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.

learn more… | top users | synonyms (1)

-1
votes
0answers
42 views

Twentysixteen remove header from all pages except home page (static page)

I have installed a child theme for my twenty sixteen (using child themify plugin). Now I want to just keep the header image on my home page (a static page) and not have it on all other pages. Is ...
0
votes
0answers
14 views

Full Width Featured Image Above Content & Sidebar On Posts

guys/gals I'm using the JustWrite theme and I am trying to figure out how to add a hero (or full width) image via functions.php in my child theme. All I want to do is grab the featured image from ...
1
vote
1answer
32 views

Redirect to another page not working

I have a custom page template (1 file only, contains with CSS, HTML and PHP) with a form and it will send an email after the user click the submit button and it will redirect also to another page. But ...
0
votes
0answers
33 views

Cannat load admin-ajax.php. No access-control allow origin*

XMLHttpRequest cannot load ..../wp-admin/admin-ajax.php.,. No 'Access-Control-Allow-Origin' header is present on ... When on local WAMP it worked just to put header("Access-Control-Allow-Origin: ...
3
votes
1answer
28 views

Is it wrong to put header tags inside WordPress help tabs?

We're working on improving accessibility in our plugin. One of the rules for accessibility is apparently that you should have an h1 tag before any h2 or h3 tags etc. Normally that makes sense, except ...
0
votes
1answer
22 views

How to add css option to Header Image customizer?

I have added the Custom Header Theme Option to the Rowling theme. It works fine but I want to extend this by adding CSS controls in the customizer for backgound-size, and background-position. Please ...
6
votes
1answer
113 views

wp_headers vs send_headers. When to use each?

I've seen wp_headers and send_headers both used before for the same thing and I'm wondering how you're suppose to know which one to use and when... On the send_headers codex page there's an example ...
1
vote
0answers
35 views

Change logo based on incoming domain

The agency I work for are trying to get a client's logo to change based upon the incoming URL. Now, we have 4 different URLs, therefore 4 different logos. Currently, we are using an if/else ...
0
votes
1answer
81 views

How to set x-priority header = null while using plugin WP e-commerce?

I am looking for the files which are responsible for sending the email in WP e-commmerce, because i need to set the x-priority header = null I already tried a general function in functions.php ...
0
votes
1answer
18 views

Requiring wp-login.php sends headers automatically

I'm creating a custom password reset page on a site, and am trying to leverage retrieve_password() to send the reset email. Upon sending the reset email, I'd like to wp_redirect the user back to the ...
1
vote
1answer
154 views

How to remove rest api link: in http headers?

i would like to remove the "link:" line added to the http headers since wordpress 4.4 here is a curl -I killcandida.org here is the output extract of the line that i would like to delete: Link: ...
0
votes
0answers
14 views

Customize the header's image change on hover

-I am using the Twenty Twelve theme if that matters- What I try to do is add a custom field on Customization Menu where I will be able to pick the image I want in order to replace the header image ...
0
votes
0answers
21 views

My homepage is gone but header is still there

I just updated a page on the website, not the homepage, and then clicked to view the change. It was fine, but when I clicked to navigate to the homepage the only thing that was showing was my header ...
0
votes
1answer
25 views

How to add social follow button to header? [closed]

I'm using the theme "Awaken" and I need to add social follow button on the right side of the logo, just above the search box. Please see my website here. I have included the social button in the ...
0
votes
0answers
23 views

Error after saving or updating post

I am getting the following error every time I update or save a post: Warning: stripslashes() expects parameter 1 to be string, array given in ...
0
votes
0answers
51 views

Call PHP files like index.php?page=PAGEHERE

My main site calls PHP files like index.php?page=PAGEHERE and I am trying to get that to work with WordPress, but having trouble. Here's my website. Before clicking on the menu, you can see ...
0
votes
1answer
55 views

Create Post Using Form on WP Dashboard

As always, I have unique situations and client requests. I am working on a custom dashboard widget that will include a form to register for an event. Once the form is submitted, it will generate a ...
1
vote
0answers
22 views

Strange 403 header response

I am receiving a strange 403 header response on the blog part of one of my sites. The site is accessible in the browser and works perfectly but googlebot, Moz and other checkers return a redirect from ...
0
votes
3answers
44 views

Moving code from theme header to functions.php

Just wanted some advice in relation to adding some custom code to my wordpress site. I am using geoip to check a users country code and redirect them to the relevant site when they land on my ...
0
votes
0answers
49 views

Adding Section tag before get_header(); ?>

I am currently working on a WordPress theme using FoundationPress. I have created a custom homepage template which I have labelled home-page.php and assigned as my front page. I would like to make ...
0
votes
1answer
78 views

Fatal error: Call to undefined function get_header()

Hello WordPress Developers, I got this erros messages when I check my site like below mysite.com/wp-content/themes/mythemes When I visite that url, it give me this message Fatal error: Call to ...
0
votes
0answers
41 views

Can I create dynamic header and footer for external use from Wordpress

I have an external provider customising a page for me to add into my site. The page will sit on an external server, on an external URL. They are copying in the HTML header and footer BUT they have ...
2
votes
1answer
123 views

How can I use CURLOPT_USERPWD in wp_remote_post?

I'm trying to setup a proper cURL call in WordPress so am using wp_remote_post(). However, I'm having trouble authenticating the user via wp_remote_post(). Any idea how to convert the following to be ...
0
votes
1answer
48 views

Show Header When Not In Iframe

On our companies website, we have a list of products, then when you click on a product, a popup opens with the product details. Because this was a popup (in a lightbox) I created a ...
0
votes
1answer
29 views

my site show this symbol (::) between site title and tagline

i have a web site with a problem in a tag "<title>" , i see between site title and tagline this character (::) in home page and only one (:) in other page, in my header.php theme i have this : ...
0
votes
0answers
194 views

Editing Header Size of Listify Listings

Looking to edit the default header size of the listify theme I am using. Example of the header image size I am looking to edit: ...
0
votes
1answer
104 views

Downloading File from Outside Web Root

I've set up some code to download zip files that exist in a folder above the web root. The download will be triggered from a user account page within WordPress. They don't need to be bank-level ...
4
votes
1answer
198 views

Recommended location to set response headers?

I'm looking to set an Expires response header for all page requests. I see the doctype in the theme's header.php file, so I'm guessing I could set it right before that line, but I'm wondering if there ...
0
votes
0answers
82 views

Header image on specific page to link to specific URL

I am using the Twenty Twelve theme on Wordpress.org and have a child theme. I use the Unique Headers plugin for unique header images on specific pages. Only on those specific pages I want to remove ...
0
votes
0answers
26 views

Skip over get_header()?

I'm trying to retrieve the content of a page with AJAX and am hoping that there's a way to essentially skip over the header. What I would like to do is get the rendered content of the page returned to ...
0
votes
0answers
21 views

How should I add a large header image that varies by page?

I am working on a site: Liquid Church Beta. I'd like to have a large header image on most pages - but the header image should vary by page/and or section. For example, on the Liquid Kids page and all ...
0
votes
1answer
23 views

Include two headers

My website has only one header. I want to change it with that of Wordpress, for example, because It has an address with a logo at the top and then menu bar. How can I add that template to mine?
0
votes
2answers
20 views

Is there a way to get minimal Wordpress functions for iframed content?

I have a bit of content in a PHP file that is designed to live inside an iframe on another page. The PHP file is very simple-- here it is in its entirety right now: <div class="content-tos"> ...
0
votes
0answers
42 views

Menu widget not showing on search.php page via get_header(); function

I have the following code in the header.php file which renders the main menu: <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Main Menu')) : else : ?> ...
0
votes
0answers
34 views

Adding skin script ads to header in multisite

I need to know where in the header.php I can insert a script ads so it looks like the background (the classic advertising side to a site boxed.) I am a multi-site thought to use a facility code like ...
1
vote
1answer
718 views

Is there a way to enable Cross-Origin Resource Sharing for WordPress' ajaxurl?

WordPress already has a default URL for jQuery-WordPress application calls and it's well known as the ajaxurl. However, there are cases wherein one would need to enable Cross-Origin Resource Sharing ...
0
votes
0answers
5 views

Is there anyway to change meta tags in a plugin?

I need to change og:title and og:description meta tags inside a plugin I'm developing. It must override these tags in the case they're wrote by other plugins, like Yoast SEO. Is that possible?
0
votes
1answer
65 views

get_header() in backend - but keep JavaScript and CSS files

I replaced the header and footer in the backend with those from the frontend by the following code: /* add header to backend */ function header_backend() { get_header(); } ...
0
votes
1answer
281 views

How do I add a search bar to my header?

I need to add a functioning search bar to my header. I have read through the forums but am unsure what code I need to put where. For instance, where do I put the css code versus where do I put the ...
0
votes
2answers
54 views

How to remove header images from displaying (not css or editing)?

I removed/unregistered the theme (BirdTIPS) header images, but the default header image is still displayed. How to remove it programmatically (not css or editing header.php)? My code: add_action( ...
0
votes
1answer
39 views

How to use the conditional homepage tag

I'm trying to display a video in the header of the homepage only but struggling to figure out the correct code. This is the code for the video tag, which seems to be working fine if ( is_home() ) { ...
0
votes
1answer
123 views

Change directory where get_header(), get_footer() and get_sidebar() look for templates

I'm creating my own theme framework, and I want to organize my code, separating the partials files from the pages. But I want to do that and still use the native functions get_header(), get_footer() ...
0
votes
0answers
18 views

AJAXed function does not like sending mails with certain headers?

Out of all the emails below, only the one with 2024 gets sent when I ajax to the function that contains the code below. And none of the wordpress email gets sent even though other wordpress functions ...
0
votes
1answer
66 views

Perform a redirect after user action

Is it possible to redirect a user in WP without the header/wp_redirect being before header()? I have a plugin that allows users to manage content they have created on the site... for example, they ...
0
votes
0answers
52 views

Header appears twice

I've simple custom page template like this: get_header(); include('pages/index.php'); get_footer(); index.php looks like this. if(!(isset($_POST['full_name']) && $_POST['full_name'] != ...
0
votes
1answer
57 views

WordPress Get Header and Footer using in Admin Area

I was wanting a way to get the site header and footer and use it in the admin area. Idea #1 An answer to another related question states to use an iframe instead I think we can use an ajax call get ...
-1
votes
1answer
29 views

Custom Header won't Repeat

I have tried everything I can think of to get my custom header to simply repeat horizontally. Here is the website. If you zoom the page out you can see what I mean. The top black bar does, and the ...
0
votes
0answers
88 views

How to edit the response header of a post/page?

I am rendering a post/page differently. Instead of displaying an HTML document, I am making the page render a javascript code. The default content type of a wordpress post/page is text/html, is there ...
0
votes
1answer
59 views

Empty header tags [closed]

When I set the 'posts for page' option to a specific page, then that page gets an empty header and the page is not structured. The site has a customized theme of twenty eleven. Could someone point ...
0
votes
0answers
166 views

Cannot send session cache limiter - Headers Already Sent

Error Messages is as follows : Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at ...