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
45 views

Banner in Wordpress

I'm trying to add an ad banner to my wordpress homepage (in the header) plus a separate ad banner for all other pages (in the header). I did get the banner up for just the homepage but I'm trying to ...
-1
votes
3answers
506 views

Different header for each category

I'm working on a project where each category should have a custom header page. Any suggestions? I'm just looking for some direction on how to accomplish this.
0
votes
1answer
198 views

How do i 'deactivate' a plugin only on a certain page template?

I have a plugin which is great but it's kind of aggressive, and it changes a lot more than it should (but there are no settings to fix this). I have a custom page template that calls wp_head('less') ...
0
votes
2answers
123 views

unknown issue in 'header.php' preventing theme from displaying fully

My theme is currently activated and showing only the background image and the "home" link. I believe the issue lies within header.php, but I can't quite figure out what. Any ideas? (Also, is there a ...
5
votes
6answers
3k views

Add header and footer to WP backend

I want to add a header in the backstage in order to look more blend in like the frontend. Nothing much I want to add, just the header and footer is enough. The content section remains the original ...
1
vote
1answer
321 views

How to remove the header from all pages except home?

I have a Template Monster WP theme that I need to remove the headers from all pages except home. I have read several posts on this, but my code is a bit different. Can someone please help me? The ...
-1
votes
1answer
97 views

How change the header color?

I want to change the balck color in the header and also the font color in the same place? Update: I am using the Twenty Ten 1.3 theme
0
votes
1answer
43 views

how would I include some html in the header section of a wordpress plugin? I get an error

When I include some div into a plugin I am creating I get an error when activating the plugin. "The plugin generated 33 characters of unexpected output during activation. If you notice “headers ...
0
votes
1answer
251 views

How can I modify the header of RSS feed items?

Specifically I would like to change the value of <dc:creator> in the feed items. In order to display the site name instead of the post author. I'm able to hook into the_title_rss , ...
0
votes
1answer
225 views

infinite loop on page with comments after changing comments.php and header.php

I am using version 3.3.1 of wordpress but I'm following a tutorial that used version 2.7. After changing my header.php and comments.php code, I'm getting an infinite loop when I view the single post ...
1
vote
2answers
546 views

3 blogs on one site with the same header menu?

Person X has default SITE with an integral blog. Person X also has SITE 2 with Blog 2 and also SITE 3 with Blog 3. Is it possible to have on the DEFAULT SITE HEADER MENU something like this: HOME ...
1
vote
2answers
388 views

Passing a variable via wp_head and then calling it on the page

As my question suggests I'm having difficulty creating a variable in the header, via functions.php and wp_head, and then calling that variable further down the page. For example, in functions.php ...
0
votes
3answers
1k views

Generating rel=prev and rel=next only on wordpress categories

I was trying to remove the rel=prev and rel=next tags from my website as my SEO gut suggested. I found those functions which perfectly do the magic: remove_action('wp_head', 'start_post_rel_link', ...
1
vote
5answers
3k views

How to load a jQuery script last?

How to get this to load last? <script type="text/javascript"> jQuery(document).ready(function(){ jQuery("div.domTip_tipBody").mouseover(function(){ jQuery("#yyy ...
1
vote
1answer
85 views

How to change header dimensions in Wordpress?

How can I alter the requirements for the header dimensions so that I can take an uncropped image and fill the top section (centring the whole image) instead of having white space at the top? I would ...
0
votes
1answer
128 views

Why does WP load so many files in the head of source code? How do I optimize it?

I have noticed that wordpress loads a bunch of files into the head of a site. This looks really sloppy and discloses vital information about the file structure of a website. Depending how many ...
2
votes
2answers
1k views

Disable h1 and h2 from rich text editor combobox

In the Wordpress control panel, when writing a new post, I would like to disable the Header 1 and Header 2 from the text formatting combobox, because I already use them on my theme (h1 for blog name ...
0
votes
1answer
325 views

How can I use a sliced image As banner? [closed]

I am giving a try to something i have never done before. I am trying to slice a psd file and want to use it as a banner. But the problem is, as you may already know that, wordpress only allow one ...
0
votes
2answers
203 views

Get 'Headers already sent' error for the plugin I am creating when I try to login

I am trying to create my first plugin. So far it actually works fine but for one error: I get a 'Headers Already Sent' PHP message when I try to login to wp-admin. If I remove the plugin file from ...
2
votes
2answers
7k views

How to add code to Header.php in a child theme?

I'm creating a child theme for the first time and I had a few questions regarding code added to header. In a non child theme there is certain code I add to my header.php file such as google ...
1
vote
2answers
496 views

Conditionally loading Facebook PHP SDK in shortcode

Since 3.3 we can enqueue scripts conditionally right in our shortcode functions, but when I tried to do this with some PHP class (uses session_start() in the __construct() function) as you can guess ...
0
votes
1answer
324 views

Custom Headers on Blog Posts Page

So I have created my own template that has a set header for all of my pages home (which is a static front page), about, services, contact, etc.... I have recently created two newer pages products and ...
0
votes
1answer
129 views

Where should I hook into admin?

Where should I hook into the admin backend to check and see if the user is "active" as defined by the Membership Plugin. Or in other words, where can I hook into the WP admin header to check an ...
0
votes
1answer
66 views

Converting Menu Links to List Elements

I'm creating a theme from a template based on Wordpress 3.0. I've started with items like Starkers which is a completely bare theme, and even tried modifying something by default like Twenty Ten or ...
0
votes
1answer
173 views

Cannot modify header form resubmits data on refresh

I have a contact form that each time I refresh the page I get a prompt to resend all the data, I have added a header("location: location.php"); to the bottom of the form function to try and prevent ...
0
votes
1answer
332 views

Wordpress Blog has an infinite redirect loop

i added the following code in the Header.php <?php if ( !is_user_logged_in() ){ ?> <meta http-equiv="REFRESH" content="0;url=<?php wp_login_url(); ?>"> <?php exit; ...
0
votes
1answer
289 views

How to add section above header for custom post types

I want to include a horizontal section at the very top of my site, above the header, that shows the next six events. I've created a custom post type called "events", and I've created about 150 events. ...
0
votes
2answers
911 views

Insert the current theme header into an external HTML/XHTML file

My Emacs org-mode projects get exported to XHTML files. I would like to loosely integrate them into my blog. In particular, I'd like to use the header (and possibly footer) from my theme in the ...
1
vote
1answer
269 views

What is the “proper” way to generate a javascript variable depending on a custom field value?

On my site I have some posts with a custom field "Name". Now, in case the post has "Name" set, I want to generate this code: <script type='text/javascript'> var FG_DONATE_BUTTON_PARAMS = { ...
0
votes
1answer
635 views

Can't Access Sessions or Variables through pages

So I'm trying to use a session to move a variable through pages. For some reason I literally cannot access anything from index.php to archive. I declare my session at the very top of my header.php ...
0
votes
3answers
1k views

How to add script right after <head>?

I would like to know is it possible to add script right after head tag? I don't want to use add_action('wp_head','function'); So here is the case: I have custom fields values for example 'this is ...
0
votes
1answer
211 views

Adding more tabs to horizontal navigation bar

currently i'm using raindrops theme developing my page. Raindrops is using 'menu-header', 'theme_location' => 'primary')); ?> to generate the horizontal navigation bar, which only shows a tab linked ...
0
votes
2answers
186 views

adding custom script to functions file

I have a problem adding a custom script to my functions.php file: add_action('wp_print_scripts', 'load_AJAX_URL__'); function load_AJAX_URL__() { wp_localize_script( 'ajax_URL', 'MyAjax', array( ...
-1
votes
1answer
91 views

Trying to get more space removed from my header

The last time , you help me to remove the header from all the pages besides the Home page (thanks again by the way). The reason for me to do so , is because I don' t want my music player for example ...
0
votes
2answers
5k views

Admin bar and fixed header issue?

I've styled my header to have a fixed top position. While logged in to wordpress, the wp admin nav bar covers the top section of my header making imposible to access my top navigation. I would like ...
2
votes
3answers
3k views

Adding rel=“next” & rel=“prev” for paginated archives

Does someone perhaps know a plugin or snippet (besides Yoast's WordPress SEO) to accomplish this perhaps? Pagination with rel=“next” and rel=“prev” The only thing I've come across seems to be an ...
1
vote
2answers
3k 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
308 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
200 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
704 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
897 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
25 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
136 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
141 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
394 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
183 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
176 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
499 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
529 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 ...