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)

3
votes
0answers
147 views

Additional Option on Custom Header admin

I would like to extend the Custom Header class to include an animation feature for the header graphics. Essentially, I'd like to add another possible value for the radio button for randomization. The ...
2
votes
0answers
16 views

HTTP Header on specific page is application instead of text

Problem: clicking on (WP site that I developed) webejeeping.com/vehicles/ causes the generated php file to be downloaded instead of being rendered in the browser. MIME Type returns as "application/...
1
vote
0answers
92 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 ...
1
vote
0answers
26 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 ...
1
vote
0answers
95 views

Wordpress 4.1 header image problem

I want to use a moving .gif as my header image in wordpress 4.1. In previous versions I could skip the cropping step and leave the image as is, and it would let me pick a moving gif as my header image....
1
vote
0answers
421 views

“imagejpeg” function is not working in wordpress

$image = imagecreatefromjpeg('http://localhost/test/wp-content/uploads/2014/09/city_81.jpg'); // choose a color for the ellipse $ellipseColor = imagecolorallocate($image, 0, 0, 255); // draw the ...
1
vote
0answers
1k views

wp-comments-post.php file returns a blank page

When i post a reply to my blog, it's return a blank page to me. It seems that happens because of this code in wp-comments-post.php if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) { header('Allow: ...
1
vote
0answers
68 views

PHP header() gives headers already sent

I am working on a checkout proces in Wordpress where if customer clicks on the checkout button he gets redirected to a payment provider. Important to know: I use a session in this proces. I use PHP ...
1
vote
0answers
229 views

404 or ugly page on IE, but Firefox, Chrome looks perfect

I have a variation of this issue. Was happening before and after new theme. I was getting 404 in IE, now sometimes get partial page that looks horrible. Contents can vary when I refresh. I have no ...
0
votes
0answers
15 views

Theme tweak to header

My theme's support has been great generally but the following is out of their support policy (maybe because it could affect responsiveness). Is there any way I can align the navigation menu towards ...
0
votes
0answers
90 views

How to show twitter link preview (Card View)

I want to ask about my problem. I can't show twitter link preview for my website and for information, I just add this code i get from WP Beginners <?php #twitter cards hack if(is_single() |...
0
votes
0answers
129 views

Access Control Allow Origin problem with CORS

I'm at wit's end. We're using CORS to go back and forth between a .NET environment and a WP/BuddyPress environment. I've added the Access-Control rule to the header in index.php, with no wildcard. ...
0
votes
0answers
88 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 ...
0
votes
0answers
165 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: *...
0
votes
0answers
18 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
24 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
0answers
25 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 /home/hridayay/public_html/wp-includes/formatting....
0
votes
0answers
98 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
0answers
60 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
0answers
68 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 ...
0
votes
0answers
418 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: https://demo.astoundify.com/listify/listing/10625-scrippspoway-parkway-...
0
votes
0answers
126 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
33 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
22 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
0answers
54 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 : ?> <p>...
0
votes
0answers
44 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 ...
0
votes
0answers
6 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
0answers
19 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
0answers
74 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
0answers
202 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 /home2/digimous/public_html/wp-content/...
0
votes
0answers
47 views

Headers Already Sent

I know this is a favorite error! I understand the principles but I can't see why this code would create this error. page.php includes a get_template_part. I have a test page that renders and does a ...
0
votes
0answers
100 views

Create Notification on Top Bar

I want insert to top on wrapper and top wp admin bar, like this: http://getconversion.com/products/gc-message-bar/ but i always fail... Can i use jquery prepend after body? <style> .ciusan-...
0
votes
0answers
19 views

Most optimal way of starting fresh, without using other theme or dropping old files?

I have an unusual situation: A website with very trashed styles.css (thousands of lines of trashy code), around 70+ custom templates, tons of js libraries loaded. First reaction was, lets start fresh ...
0
votes
0answers
96 views

Possible to add author avatar to header so displays for all, not just registered/logged users?

I have a wordpress site and here is the page where I am trying to display the avatar & user name in the header, listmenow.com/default Is it possible to display the avatar & user name for the ...
0
votes
0answers
42 views

Override theme metadata in header

I've recently purchased and heavily customized a new WP theme, but am having problems with metadata. When posting a link to the in Facebook, the meta data pulls in the theme author name ... As we've ...
0
votes
0answers
49 views

extra code in <head> - blank jquery function

I recently noticed that in the of my website (goinspire.com), there are 2 occurrences of the following code: <script>jQuery(function(){});</script> It looks like a script with a blank ...
0
votes
0answers
14 views

Checking if certain header meta data is set

I'm trying to see whether <meta property="og:title" content="..."> and other OG properties are included inside the <head> of a WordPress site. Does anyone have an idea on how to do that? ...
0
votes
0answers
63 views

setCookie before headers are sent?

I was using this code in my plugin to set a cookie if a condition was met, however after updating to Wordpress 4.0 I got the message: Warning: Cannot modify header information - headers already sent ...
0
votes
0answers
294 views

wordpress head is empty, append to body

i'm have a problem for Wordpress heading. my get_header(); <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html ...
0
votes
0answers
171 views

Showing just the menu toggle next to logo in twenty fourteen

For mobile, I want to eliminate the black menu bar, search box/icon and move the menu toggle up so that on mobile, my site just has the logo and the menu toggle. This gives a bit more room for ...
0
votes
0answers
123 views

Init hook for header send

I am working on a checkout proces where if I submit the checkout I get an error "headers already send" because I use a PHP header() function to send the customer to my payment provider url. My idea ...
0
votes
0answers
419 views

Viewport meta tag disappearing

I have just started with Wordpress development and have searched high and low for an answer to this question. I am attempting to add the viewport meta tag to my header.php file: <!DOCTYPE html>...
0
votes
0answers
75 views

How to list categories/tags as a list in meta tags

I was wondering if there's any way to list all tags and categories of a posts in the header of that post. I want to list all the tags/categories via a plugin as a list in meta, similar to this: <...
0
votes
0answers
144 views

Making a custom upload form and page in the admin section

so I've built this standalone php script which allows my users to upload a CSV which updates JSON data for a feature on our site, but I want to put the script inside of the wordpress admin section for ...
0
votes
0answers
79 views

Local path included in script url

The hosting service of a website I created crashed, now we're trying to get it up and running again. They restored the website/database from a backup but we're encountering issues. A couple of ...
0
votes
0answers
282 views

auth_redirect header already sent error

I'm a novice to php so please bare with me. I've been pulling my hair out trying to figure out this one. I have a simple if statement in a page template to require viewers to be logged in. <?php ...
0
votes
0answers
67 views

Custom header content within a customer page template

I built a custom page template and everything is working swimmingly. I have a problem however making it so each custom page using the template can insert custom code into the header area. If you ...
0
votes
0answers
176 views

Problems with installing and deleting plugins

When I want to install a plugin from the web interface, I receive the error The plugin does not have a valid header. or Destination folder already exists. after it has been downloaded and ...
0
votes
0answers
390 views

Customized theme Custom Header HTML

I have upgraded from 3.5.1 to 3.5.2 and the problem I am facing is with my header that I am using customized theme and Custom Header HTML that when I was using 3.5.1 it was working fine and I could ...
0
votes
0answers
806 views

How to give a download link to a .csv file from the custom plugin?

I have made a custom plugin, which exports MYSQL table contents into a .csv file which gets saved in to wp uploads directory. Now, I am trying to give a download link for downloading directly a .csv ...