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

Change header when on home page

Im trying to make my home page have one type of header which is different from every other page. I have made a page the front page in the settings called home and in header.php i have changed the code ...
0
votes
1answer
69 views

Changing footer depending on URL (poli language site)

I have a question. I am working on a WordPress theme, which is in English and Russian. My question is how do I change my "header" and footer depending on the URL. I have a logo, which is in Russian ...
0
votes
1answer
56 views

How to modify admin headers

I'm trying to create a theme settings export script that base_64 encodes the theme options and lets the user download them as a text file. I've seen a post (What is the best way to export and import ...
0
votes
2answers
70 views

What does making sure “that your theme is Wordpress header and footer tag enabled” mean?

I am trying to get this plugin to work (http://wordpress.org/plugins/prettyphoto/), and there is a reference to: Make sure that your theme is WordPress header and footer tag enabled otherwise ...
-2
votes
1answer
57 views

site-description css is overriden [closed]

I'm trying to change the site-description color of my twentythirteen header to #220E10. My style.css file reads : .site-description { font: 300 italic 20px "Source Sans Pro", Helvetica, ...
0
votes
1answer
40 views

Custom headers in WordPress, are there also custom footers?

I’m new to WordPress. I saw a custom header file in the inc folder of Twenty Twelve theme. I understand that we can use this custom header in any custom page template instead of header. I have a ...
0
votes
1answer
570 views

Display custom widget value in header.php

I am using the code below for a custom widget. I have added some fields in the widget like: Title, Name and a checkbox. Now everything is fine but I want to show those values in header.php. Any idea ...
0
votes
1answer
53 views

Random header image but also specific header for certain pages

I have a question I'm using a theme where the header image changes in different pages of the page because is set like that. But the main header image stays in all the remain pages.. What I want to do ...
0
votes
1answer
60 views

How to remove uncategorised posts from WordPress

I am using koresponsive theme. I am displaying name of categories as my menu bar just below my header. Now I need to remove 'Uncategorized' category from displaying it in the menu bar. How can I do ...
0
votes
1answer
335 views

Show a 404 error page if Public query variable's value doesn't exist?

Public query vars are those available and usable via a direct URL query. On my site, I've created some custom URLs with their own query variables like so: ...
0
votes
1answer
588 views

Change text “My Basket” in woocommerce artificer theme

I am working with the woocommerce artificer theme and there is a place in the header where it says "My Basket" and then the amount that is in your cart. I would like to change the text to say "My ...
0
votes
2answers
72 views

Change appearance based on category but post is in two main categories

I want to change header and menu based on what category a post is listed in. I could duplicate the post and assigned each of the two categories separately but this sounds messy and bleh. The post/s ...
0
votes
0answers
158 views

How to change the position of the language selector (qtranslate drop down menu)

I use Qtranslate to manage my translations on my website. It is working like it should, but for styling reasons I would like to change the position of the language selector. This is the position right ...
1
vote
1answer
74 views

if/else on custom query gives 200 OK when condition not met?

What? I am modifying my theme to show comments of a post on a separate page. How? Mostly based on this answer but with improved checks and code. So this is what my page-comments.php (kinda) looks ...
0
votes
1answer
86 views

setcookies and header send

I put simple php condition in the header.php of template as this : setcookie("test_time_".$cookie_id."", $cookies_times, time()+3600); The result always as this headers already sent , i use this ...
0
votes
0answers
64 views

Why wold sending headers (for a csv download) throw a Page Not Found error?

I'm writing a plugin to download some data into a csv file (from the admin section of my wordpress site.) I've tried two different methods to customize the headers and prevent the wp-admin template ...
0
votes
0answers
9 views

How do you prevent headers and html from being sent for an admin page? [duplicate]

I am creating a plugin for the admin section of my wordpress site which downloads a spreadsheet of data from a third party database. I've created an admin page using 'add_menu_page'. The view for ...
0
votes
1answer
114 views

Problems accessing stylesheets/scripts loaded in WP header

When I view my pages source code I get the following: <link rel='stylesheet' id='css_bootstrap-css' href='http://*******.com/wp-content/themes/synapse/js/bootstrap/css/bootstrap.css?ver=3.5' ...
-2
votes
1answer
114 views

Put CSS on TOP, how?

I have this mission, that regards setting my existing CSS on HEAD. I've tried to make a search on if there was any kind of plugin or code to automatically set the CSS code directly in Head. The main ...
0
votes
1answer
71 views

Building theme so user can change header image [closed]

My Google-Fu is letting me down so I'm trying it here. I'm building a theme and I want the customer to be able to change the header image him/herself in the wp-admin. How do I go about this? As I ...
0
votes
1answer
23 views

Cannot access WP admin because plugin returns 204

I recently installed a plugin on my schools wordpress site that one of my friends wrote, that should pull the newest video from a youtube page and post it. If the video hasn't changed, he set up the ...
1
vote
2answers
3k views

Where is get_header('shop') file in Woocommerce templates

I need to modify the get_header('shop') file in Woocommerce but don't know where it's located, if someone knows please help me out - thanks!
0
votes
1answer
45 views

How would I use a filter to remove header banner on certain post types

I am using a child theme of twenty-twelve, and want to remove the huge banner image in the header for certain post types. How can I use add_filter() or add_action() to do this? I don't want to mess ...
0
votes
2answers
156 views

Point get_header() to different plugin

I'm trying to filter the get_header function on an specific page template to use a custom header located on my plugin folder. So instead of outputting the theme header, it'd output a custom header ...
2
votes
3answers
2k views

How to prevent wordpress from loading old versions of jquery in wp_head();?

I noticed my twenty twelve theme is including outdated versions of jquery and js so I want to replace the scripts with the newer versions, however the scripts are in the file included by wp_head() ...
0
votes
6answers
2k views

Add code into <head> on a per page/post basis

Is there plugin (or an easyish way) to add code to the <head> section on a per page/post basis? I have a multilingual website and I need to implement the rel="alternate" hreflang markup, so ...
0
votes
2answers
3k views

Change My Basket text in the header of WooCommerce Artificer theme

I'm using WooCommerce with free Artificer theme and I'm trying to change the text for My Basket and Checkout shown on image below: Now, I've searched the localization files for any string matching ...
0
votes
1answer
73 views

Placing a featured image into header

How can I place featured images into the header, so each post has it's featured image within the main header? Also on category archive pages and the main news page, the featured images are being used ...
-2
votes
1answer
112 views

Use Wordpress Built In Jquery

I see that on every page Wordpress is loading in jquery, how do I go about using that jquery as it keeps telling me that it doesn't recognize $ or $noConflict(); - I'm trying to add some jquery under ...
0
votes
1answer
110 views

How do I begin debugging where the description meta tag is set for my categories?

I have the code base for my Wordpress theme, but where do I start debugging where the meta description tag is set for my theme. What I need to do is make it not be set because I set my descriptions ...
-1
votes
1answer
121 views

Location of core code for database connection and get_header

I understand WP well enough to create a custom theme at a basic level, but have no experience with the core code. I've also just finished a book on basic php and mysql coding. I'd like to look 'under ...
0
votes
1answer
930 views

Getting headers already sent error from plugin

I'm having a bit of trouble with a 'headers already sent' error from a Wordpress plugin I had built for me and now I'm adapting. This is the error: Warning: session_start() ...
0
votes
0answers
256 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
1answer
113 views

Dynamically changing header text depending on URL in Wordpress html page

My shopping cart displays the order history on the last page the customer visited. For example, www.someurl.com/item1 is the last page the customer visited before checkout. An order confirmation ...
0
votes
1answer
78 views

Clickable image link sends people to wrong URL

On my website www.wilsonstransportation.com, on the header of our custome theme page, we have a "Get a Quote" image on the right hand side. When you click it, it is taking people to ...
0
votes
0answers
402 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 ...
2
votes
1answer
180 views

AJAX issue - Uncaught SyntaxError when processing Zip File

I'm creating an application that will allow a user to fill out a form and then have a customized zip file downloaded for them upon submit. I'm utilizing AJAX to accomplish this task. ...
0
votes
1answer
213 views

Front end posting, not working wp_redirect with 'cannot modify header information' error

Im trying to make front end posting page but, sometime 'wp_redirect' is not working with 'cannot modify header information' error. adding data is working well but I don't know why is working well ...
3
votes
1answer
141 views

Get file headers in custom file

in my one of my plugins i have modules (kind of like plugins in a plugin), is there a function like get_plugin_data() or wp_get_theme() that will allow me to get the header section of a custom file ...
0
votes
1answer
101 views

header, stylesheet not being read

I'm working on a theme that doesn't seem to be reading the header and/or stylesheet. All of the code seems to check out correctly, so I'm a little confused as to why this is happening. Perhaps I've ...
0
votes
1answer
541 views

How to send “Location” header on plugin form submit event?

How to redirect to specified page after form was submitted? Warning: Cannot modify header information - headers already sent by (output started at wordpress\wp-admin\menu-header.php:94) in ...
0
votes
1answer
70 views

How to get ONLY the URL of the image that show_media_header returns?

I need to use it as a background image but this is killing me because: show_media_header() would print <a href="#">http://url/of/the/header</a> How can I just retrieve the value? So ...
1
vote
1answer
832 views

wp_head() - list hooked actions with priorities?

I'd like to add something to wp_head() but I'm aiming precise location (like after style.css but before rtl.css and before my other custom script). I'm wondering if it's possible to list everything ...
2
votes
2answers
976 views

Call to undefined function get_header() in index.php

I am trying to create a theme. I created a header.php file and call this file in index.php using <?php get_header();?> When I try to run my index.php file it shows this error: Call to ...
0
votes
0answers
64 views

Getting a “Cannot modify header information - headers already sent by…” after duplicating widget

This probably isn't the smartest way to go about it, but I'm very close to launch and the client wanted a news widget displayed two ways. Our theme's news widget displays a settable number of news ...
0
votes
1answer
40 views

Is it ok to chop index.php and include files?

So in my index.php I called get_header(), get_sidebar() and get_footer(). My index.php is kind of huge. It is separated into 5 divs more. How do I make it cleaner? Is it safe to chop it to files and ...
0
votes
0answers
21 views

different contents and same sidebar approach?

I have a static header, sidebar and footer and then a varying content for single.php. What is the right approach to put contents in the div=content part? Say I have 3 different pages (article, stuff, ...
0
votes
0answers
47 views

Custom header shows two or three or more images

Is there is a way to make the custom header to show more than one image in a random show without duplicate images. I tried something like this: <?php $header_image = get_header_image(); if ( ...
0
votes
2answers
70 views

Remove portion of header code from home page only

I have this code in the template file header.php: <div class="dynamic-header"> <?php if(function_exists('show_media_header')){ show_media_header(); } ?> </div> I want to ...
1
vote
2answers
1k views

Headers already sent error with CSV export plugin

I have built a Wordpress plugin that allows the user to export all pages, with their levels and urls, to a csv file. The problem I have is that I keep getting error messages when trying to export ...