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
vote
2answers
4k views

Show TwentyEleven header image only on home page

i am trying to remove the header from one page (actually all the pages exept the Home page) i did some research i found this code #post-xx .entry-title{display:none;} whereas the xx is the page ID . ...
0
votes
1answer
314 views

i want attachment.php to return the image

I use a lightbox to display images from posts in a website that is updated by differents authors. Or course, the lightbox only works if the author makes sure that he uses link to the image directly ...
0
votes
1answer
211 views

Trying to set a cookie based on $_POST parameter

I'm doing a bit of language detection that first checks the $_SERVER['HTTP_ACCEPT_LANGUAGE']. If the user wants to override the choice of language, there's a select list, where they can choose ...
0
votes
1answer
777 views

If custom image header does not exist display text header

I've added a theme options page to my site (in my functions.php file): add_custom_image_header('', 'admin_header_style'); My header.php contains this code, which displays the Featured Image as the ...
1
vote
1answer
985 views

How to find out if page_for_posts is showing (in order to style menu item)

I have set a static page for posts (page id = 110). This page shold only be included in the menu when the user is logged in. The latter is achieved with the following addition to header.php (snippet ...
0
votes
1answer
26 views

How do i pick the pages in 20-11 header?

With the 20-11 theme when i add a page it shows in the header. I like this. I found and changed the order of them in quick edit. Now i would like to hide a few pages from the header. How do i do this? ...
0
votes
1answer
141 views

Header Link function not working. Problem with bloginfo()

I'm writing a function to make all of my header images link to their respective home pages. I wrote this function: function get_category_location(){ $header = get_category_header(); ...
0
votes
2answers
143 views

Need Help Determining Where Header Error is Happening

I am currently writing a plugin that contains a report based on a mysql query. I would like to export this query information to CSV. Simple enough, I've done it many times outside of WordPress. I'm ...
0
votes
1answer
436 views

WordPress Meta Title Separator

This code, when used in the header, automatically adds a arrow to wp_title. How do I remove this? <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
0
votes
2answers
184 views

Warning: Cannot modify header information (with a twist)

Warning: Cannot modify header information - headers already sent by (output started at /home/ezekiel/public_html/boxsponsive/wp- content/themes/BoxSponsive-Portfolio/class.wp-less-styles.php:3) in ...
0
votes
2answers
177 views

New custom menu created. how to apply it?

i have a childtheme from twentyeleven, i created a 'inicio' (name) custom menu, how can I apply it? tried: <?php wp_nav_menu( array( 'theme_location' => 'inicio' ) ); ?> but not ...
0
votes
1answer
537 views

Code needs wrapper/container to put footer back in, but where?

A previous developer made some huge messes, most of which I have fixed over time. The last problem, though, has to do with properly getting a footer in there, which he deleted. I believe if I can ...
1
vote
1answer
2k views

How to remove header image in Twenty Eleven theme?

Please give me details on how to remove the custom header image in the Twenty Eleven theme.
0
votes
2answers
557 views

How to reuse parts of WordPress site e.g. header, footer, part of header for multiple WordPress sites?

I am looking for a solution to reuse the header and footer navigation links (with style, of course) in one of my WordPress website for several other WordPress sites. Please note that I'm trying to ...
2
votes
1answer
111 views

What is the Wordpress Pinecone sitting on top of? [closed]

Does anybody know where wordpress gets their banner images? Perhaps we could find the original photo? I'm curious just what exactly this pine cone is sitting on top of.
0
votes
1answer
1k views

Custom Login Page — wp_signon Headers Already Sent?

As the title suggests, I'm building a custom front-end login page for users of my site. I'm using wp_signon to log the user in after their credentials have been validated, but I'm getting this error: ...
0
votes
2answers
519 views

wordpress header leaks into body in a specific template

very strange problem, that happens only in one specific template. part of the part "leaks" into the tag - and I can't figure out why. the "header.php" code: <!DOCTYPE html> <html ...
0
votes
1answer
427 views

Dynamic height in custom header image panel

I've enabled the custom header image panel for my theme.. That all works fine, but it has a predetermined height. How can i make it dynamic? The width can be permanent. I used this code. ...
0
votes
2answers
310 views

How do I fill the Home Description?

For some reason All in One Seo is not putting the text that I put in the Home Description field if you google, dvdripfreemoviedownloads.com, the first result, which is my homepage should have ...
0
votes
2answers
238 views

PHP or JS for header image rotator?

I'm working on a site that is using this PHP script to load a random header image every time it reloads. I would like to use Javascript instead to allow the browser to cache images and improve load ...
0
votes
1answer
464 views

How do I make Wordpress “Page” link in the top nav bar go to an external URL?

I would like the Wordpress page link as shown here go to an external URL instead of going to page. What is the best way to set this up? I'm running Wordpress 3.1.3. Thank you.
0
votes
2answers
465 views

Active Menu Highlighter with Subpages?

my question is... I have 2 pages & 2 subpages in each page. like: page1 -->subpage1 -->subpage2 page2 -->subpage1 -->subpage2 & my Menu is Page1 page2 Now if i select ...
-1
votes
1answer
346 views

Making a 1140px wide header logo in the twenty-ten theme?

I've created a child theme that is a wide version of twenty-ten, and it is working for the most part. But I am struggling to make the header logo wider. You can see the work in progress here at ...
0
votes
4answers
2k views

Wordpress wp_redirect error

I am trying to redirect this page if the user is logged in or not be i keep getting this error Warning: Cannot modify header information - headers already sent by (output started at ...
-1
votes
1answer
680 views

Changing the title tag from a shortcode

I currently have a shortcode which dynamically swaps out locations on a page to make each page specific to a location. For example the url http://mywebsite.com/offers/scotland/ Would make the H1 ...
5
votes
3answers
1k views

External page integrated into WordPress returns a 404 error

I have a script that I'd like to call via AJAX from my WordPress theme, it relies upon some core WordPress functions so I am including WordPress blog header like so: define( 'WP_USE_THEMES', false ); ...
-2
votes
1answer
636 views

How to create full header but keep content narrow

I want to set a full header in wordpress theme, while i want to keep the content narrow (center). How can i do that? I'm trying like: <body> <!-- BEGIN header --> <div ...
2
votes
2answers
406 views

What code do you use to generate the text to go into the HTML title tag?

The question title says it all. Myself I just stick with the default code from one of the packaged templates that comes with WordPress out of the box: <title><?php /* * Print the ...
1
vote
2answers
510 views

Adding an editable field to template?

I'm making a theme for a client (first time using Wordpress), and the client would like to have multiple site "descriptions" to be available. The first one as the main description, and the second one ...
5
votes
3answers
2k views

WP function/filter for modifying http headers?

Is there a dedicated WP function, action or filter to use when adding/modifying the HTTP headers? For now I just hook a PHP header() call into the WP 'init' hook like this: add_action('init', ...
1
vote
0answers
3k views

Unable to stream pdf: headers already sent problem in dompdf [closed]

I have used dompdf to display the user information in admin of my wordpress project. While generating the PDF file it works perfectly in my local server. But in live server Unable to stream pdf: ...
1
vote
1answer
171 views

Show an image in my header.php

I want to let my customer choose any image (in my backend) and then it will be displayed in my header.php. i've found Image Widget, but it just show images in the sidebar. I want something like: ...
0
votes
1answer
153 views

plus sign not working in widget “Header: Nav Menu”

I installed a new WP site with 3.1.2. The way I set menu/header on my other sites was with the widget "Header: Nav Menu". When I go to that widget now, clicking the + sign to the left of "Items" ...
2
votes
1answer
7k views

Auto-refresh page every minute?

How do I make a WP page (w/ dynamic content) auto-refresh every minute? With PHP, I'd use a "Refresh:" header, and in HTML I could use a HTTP-EQUIV tag or something. However, WP generates headers ...
0
votes
2answers
301 views

How to internationalize header image?

I have in the following code in the template: <img src="<?php header_image(); ?>" /> However, I want to change this image according to the language selected (through GET parameter ...
0
votes
1answer
196 views

Error messages when adding code to function.php or trying to delete inactive plugin files

Error message below: Warning: Cannot modify header information - headers already sent by (output started at /home/content/79/7603579/html/listings/wp-content/themes/OIB theme/functions.php:519) in ...
6
votes
10answers
6k views

Wordpress Plugin Development - Headers Already Sent Message

I'm developing Wordpress plugins. When i activate my plugin, i'm getting a message The plugin generated 293 characters of unexpected output during activation. If you notice “headers already ...
6
votes
3answers
504 views

Math notation on WordPress.com?

I am a new user with WordPress, and I would like to use mathematical formulas. I have been reading the mathjax pages for hours, such as this one and quite a few others. This may be a bad question, ...
1
vote
1answer
9k views

How to create a fixed header and scrolling content area

I've bee experimenting with a site I'm working on. My client wants the header with its nav and logo intact, so visitors always have the ability to access the navbar while scrolling to read the page ...
0
votes
1answer
75 views

Removing the WordPress.com ribbon

This is such a simple question, but I'm having trouble getting the answer. Is it possible to have a blog at WordPress.com and not have the WordPress.com banner (shown below)? Is it simply a matter ...
0
votes
2answers
255 views

how to change menu titles

At the top of this website Wordpress answers is 6 menu items in the header Questions Tags Users Badges Unanswered Ask Question I need to change these on my website homesfriscotx.com ...
0
votes
1answer
437 views

Hook for plugin to insert into entry-meta

pretty simple. I'm creating a plugin and I want to dynamically insert some text that will change every hour into the line that is directly below the title of a post (So filters are no good). It's the ...
0
votes
2answers
2k views

custom headers for static home page and posts page

have a site w/a static home page and a posts page and then a number of other static pages - i set up a custom header for the home page and then another all other pages like this in the header ...
0
votes
1answer
2k views

Use Featured Image of Post as Header Image

I have a blog on wordpress.com in which I make use of the Twenty Ten theme. For each Post I can set a Featured image. On Wordpress.com that image is then displayed in the header above the menu. I'd ...
4
votes
2answers
1k views

Why is wp_redirect() preferable to a standard PHP header redirect?

In asking a question about hooks and redirects, I was advised to use wp_redirect in place of the PHP header function. Just wondering why wp_redirect is preferable?
0
votes
2answers
3k views

Wordpress wp_head() crap

I know, wp_head() is important, but it inject so much crap into the header, i like to get it out... and just add manually the 2-3 line of code i need.. BUT, and there is always a but, i need the ...
0
votes
2answers
630 views

Know which plugin is calling JS in wp_head()?

I'm trying to optimize my header and I was wondering which plugin would call jquery. Is there a debugging tool to know which plugin is doing what in the header ? Thanks !
0
votes
1answer
137 views

making posts linked outside of Wordpress still use the same header and footer

I set up my blog so that some of my posts get linked to a page outside of Wordpress. For these posts that get linked outside of Wordpress, I'd like to still include my header and footer so the page ...
0
votes
1answer
310 views

Custom functions for string data calculations

Just a quick question. I have a form that calculates values based on user entry. The information is then passed via ajax to a php file for calculation returning the results. The problem is that that ...
0
votes
1answer
496 views

Header image is overlapping sidebar?

I just changed my header from a background to an image, as that seemed to be the easiest way to link the entire header to my main page (after a whole lot of trial and error with other methods). The ...