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)

0
votes
1answer
344 views

force jQuery to load in the head

I've written a plugin which uses wp_enqueue_script("jquery"); to load jQuery. I need to load jQuery in the head and not at the bottom of the body. However, I think that this command is overwritten by ...
0
votes
2answers
277 views

Cannot modify headers

I absolutely hate this error. And do not understand it at all. So this is my code, what you want to focus on is the foreach loop: public function reset_theme_options(){ ...
0
votes
1answer
482 views

Display different header images based on current page

I want to display, based on the current page another header image. Short example: Home -> Image A PageId 1,2,3,4 -> Image B (2,3,4 are childs of page 1) PageId 5, 6 -> Image C ... I tried to ...
0
votes
2answers
360 views

Meteor Slides as header only for homepage and Use featured image of each page as header for respective pages

I am using meteor-slides plugin to make header as a slideshow. I am using twenty-eleven theme. Now i need to make this slideshow for my homepage only and featured images of other pages as headers for ...
1
vote
1answer
103 views

Get search.php results in header.php?

I want one image in header.php to change for different pages. The function in header.php looks like that: if(is_archive()): //change image to "Archives" endif; if(is_404()): //change image to ...
0
votes
1answer
109 views

Changing 2011 theme header image based on user dropdown

I posted earlier about changing my site's CSS based on user-choice from a drop-down and storing it in a cookie, which I think I have now resolved, and sort-of have working at the following address ...
1
vote
1answer
561 views

Using PHP to toggle stylesheet and header image, set in cookie

I haven't done a lot of work with cookies or Wordpress before so I think I've been a bit over-optimistic in my quest :p I have created two themes for my site, night and day. I would like the user to ...
-1
votes
1answer
196 views

My CSS, footer and header don't show up!

When I activate my theme in my-admin on WordPress, my CSS, header and the footer don’t show up. I really don't know what the problem is because I followed all the steps of a tutorial. header.php ...
-1
votes
1answer
376 views

How to have H1 for site title only on Homepage?

I´m using the Leaf Theme and in the header the following code can be found: <?php $header_image = get_header_image(); if ( ! empty( $header_image ) ) { ?> ...
0
votes
1answer
235 views

H1 tags for header image?

In heading.php of the Leaf Theme there is the following code: <?php $header_image = get_header_image(); if ( ! empty( $header_image ) ) { ?> <a href="<?php echo esc_url( ...
0
votes
1answer
48 views

Does post-meta belong in header?

The template I used as a start for my own design places the metadata inside the header tag of the single-post.php. Is that a correct use of header, or should there only be h-tags in there? What about ...
0
votes
1answer
118 views

Wordpress repository forbids me call wp-load.php in non-WordPress file

I have made a Wordpress Plugin that is a kind of Download Manager. I have a external file download.php that is responsible for making downloads. This file is away of environment Wordpress, for this ...
0
votes
1answer
176 views

Wordpress repository forbids me call wp-load.php in non-WordPress file

I have made a Wordpress Plugin that is a kind of Download Manager. I have a external file download.php that is responsible for making downloads. This file is away of environment Wordpress, for this ...
2
votes
5answers
825 views

Some Themes do not have a header.php and footer.php how are they doing it?

Some themes that I have seen such as the (famous) thesis or even a few other not so famous themes have just an index.php (which has nothing in it), functions.php (call's their framework) and a ...
1
vote
2answers
2k views

Adding custom code into header.php using a plugin

I have a bunch of code that I tend to put into the header.php of every site I do which are specific to Internet Explorer. I was wondering if there was a way to insert code into a 'standard' ...
1
vote
1answer
304 views

Mysterious HTTP 404 header in my own scripts

I have a WordPress 3.5.1 + nginx configuration. Its nginx configuration is this: server { root /mysite/public_html; server_name wp.mysite; location / { try_files $uri $uri/ ...
0
votes
1answer
518 views

How do I get the Social Media Plugin to show up in my Twenty Eleven child theme's header?

Being totally new to WordPress and (extremely) rusty with PHP, I'm having a difficult time figuring out how to add the Social Media Widget to my site's header. I'm using the Twenty Eleven theme, as I ...
0
votes
1answer
68 views

Where are my js and css links in header?

I just found out that there are no javascript and css links in my header.php. <?php /** * The Header for our theme. * * Displays all of the <head> section and everything up till ...
0
votes
2answers
164 views

All of my Scripts and Enques are getting file not found

I have the following script and enque function, and the site properly renders it in the html head, however when I click the link to the css and javascript files the i get a url not found, however the ...
0
votes
1answer
190 views

Rotate images in header based on date

I am new to WordPress and I would appreciate some cool advice here. I have changed the header.php file in the Editor to include an image. I wonder if it is possible to automatically display one of 9 ...
0
votes
1answer
100 views

Stop header code from showing in category page?

Hi I'm using the code below to show different header images in my custom template archives. Only problem is that it is also showing the headers in the category templates. go to ...
0
votes
1answer
581 views

After being hacked Fatal error: Call to undefined function get_header() in 404.php on line 1

After having timthumb.php exploited. The site was upgraded to WP 3.5 It was compromised again, (wp-config included encrypted data as well as the functions.php in the wp-include directory. After ...
-2
votes
1answer
1k views

How to place an image into header.php? [closed]

I'm trying to customize twentyten theme. this is part of header.php: <body <?php body_class(); ?>> <div id="wrapper" class="hfeed"> <div id="header"> <img id="topL" ...
0
votes
1answer
163 views

Page header menu links change

I am trying to find out where the header menu links on my WP is located so that i can change the URL of the page. the link is: http://blahblah.com/?page_id=11 and i need to change it to: ...
0
votes
1answer
1k views

Echo a div to header.php from functions.php

Within the section of header.php I have a div structure <div id="header"> <div id="masthead"> <div id="branding"> ... I want to add a div within "branding" - I can do this ...
-1
votes
1answer
401 views

Adding Meta Tags to a Post using its Tags, Excerpt and content

I run a multiple author platform where I have added conditions that force authors to add tags to their post. To improve SEO, I would like to add Meta Tags to the posts. Ideally, with a light solution ...
1
vote
1answer
188 views

Echo URL of large version of Featured Image

I use this plugin to echo the URL of a post's featured image in the header: <?php /** Plugin Name: Post Thumbnail FB header */ function fb_header() { // Not on a single page or post? Stop ...
1
vote
2answers
510 views

Indenting (tabbing) WP_head

Right now all the stuff that gets included in wp_head are left justified all the way in the code view. Whereas all my other code that is around the wp_head is indented (tabbed) two times. Is it ...
0
votes
1answer
435 views

Why does WordPress allow inserting <h1> tags into posts?

It is my understanding that there should not be more than one <h1> tag on a page, and that the <h1> tag should be the site title, for SEO reasons. If that is correct, why does WordPress ...
0
votes
1answer
947 views

Headers already sent - Wordpress core

I'm getting an error on my site regarding "headers already sent": Warning: Cannot modify header information - headers already sent by (output started at ........./wp-admin/menu-header.php:161) in ...
0
votes
1answer
119 views

Why is the `if else` not working?

I have this on my header.php. It checks whether the page is on homepage/frontpage, is on category/children of/has the category of "gamenews", or is on category/children of/has the category of ...
1
vote
1answer
103 views

pull non-wp site into content area of wordpress -or- pull wp header into non wp site?

I am building a site which has a ecommerce nature that is not able to be tied directly into wordpress. What my goal is to have a constant header that is generated by my wordpress header on all pages ...
0
votes
1answer
330 views

Inserting iframe right after <body> on header.php

I have an iframe tracking script of sorts that I need to add right after the body tag. After looking around on the web, I found that the body tag is in header.php and I should add a function to ...
0
votes
1answer
36 views

custom header navigation has odd spacing [closed]

Live site. I'm using a custom header on my blog page which features the same coding as my regular heading for nav. The nav looks fine on all pages but the blog page- the Blog button shifts left. Any ...
0
votes
2answers
3k views

Why I am having error Call to undefined function get_header()?

I am using twenty eleven for my theme and I create a PHP page under it named results.php in the results.php here's my code: <?php get_header(); ?> <?php get_footer(); ?> From my ...
2
votes
2answers
174 views

Hook for URL request

I would like to make XML files downloadable, instead of allowing the browser to displaying them inline. I know I can use the Content-Disposition: attachment HTTP header (of course, better solutions ...
0
votes
1answer
233 views

navigation doesn't work in custom header.php

I've made a custom header-blog.php(for blog page/home.php) in addition to header.php, both of which use the exact same <nav> code. On the pages that use header.php, the navigation works ...
1
vote
2answers
144 views

What is the advantage of using header-catname.php over is_category('catname');?

Let's say I have a category named as catname (the slug would be catname). I want the header styled differently when visitors open the category catname. The article on Ghacks explains how to create a ...
0
votes
1answer
205 views

trouble calling different header.php for home.php

I'm making a site that uses the same header.php for all pages except the blog/home.php. For this, I've created blog-header.php and am attempting to call it using the following: <?php if( ...
0
votes
2answers
351 views

adding meta data using plugin to top of head

It seems if you use the wp_head hook as an action to put your custom metadata into the head tags of your page, it is dependent on where the theme you are using calls the wp_head. In my case, it is at ...
2
votes
1answer
191 views

Custom Post Type Events Archive Grouped By Month

I'm currently trying to get my events listing code to print out headers by Month. So basically this: October event event September event event etc... Right now it just keeps echoing ...
0
votes
1answer
52 views

change headline of page

I have a web page which includes menu. In its menu I have some items when I click on each item it's gonna show some subitems in it. for example item name : A. It has A.1 and A.2 subitems. which has ...
0
votes
1answer
373 views

How to remove header images from all pages except the home page? skeleton theme

I'm using the Skeleton theme and the header image is on all pages. I only want it on the home page. Anyone got a solution?
0
votes
1answer
71 views

Edit page header on a custom plugin

I am writing a custom plugin for Wordpress but how in the world do I edit the page header? I need to add some javascript and related codes there.
2
votes
0answers
129 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 ...
0
votes
1answer
260 views

Change header.php after ajax call

Is possible change class to body_class() after ajax call to load posts/pages? I would say no, but I have not used much with wordpress ajax, so I ask the question.
0
votes
1answer
116 views

noheader on the user/frontend side

I have an application which has the following structure on the user/frontend side: usercontroller: generates output userformhandler: processes user input and redirects back to usercontroller So, ...
1
vote
3answers
2k views

How do I force wp_enqueue_scripts to load at the END of <head>?

I am loading scripts via wp_enqueue_scripts in my child theme. The only problem is that my style.css script get loaded BEFORE plugin scripts, yet I need to override the css in the plugins with my ...
1
vote
1answer
1k views

Add social icons in a theme through custom admin menu

Is it possible to make a theme with an option of configuring social icons with links through the custom header control panel? I googled it and found nothing that could help me, any help on that topic ...
0
votes
1answer
109 views

How to add cropped custom header image?

I don't see in my custom theme any option for uploading the header image (although there is a code for it in the header) Do I need to register it somehow? Also, I have a specific size I want to ...