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

Changing logo image in header.php upon language detection

So i'm designing a website that will feature the Polylang plugin for automatic language detection, but I've run into a bit of a wall with the logo image. It resides in header.php, but I can't think of ...
-1
votes
0answers
19 views

How to use wp_enqueue_script with wp_localize_script [on hold]

I am developing a free WordPress theme for repository. I have used the following code in header.php file <script type="text/javascript"> if($(window).width()>1024) { ...
-3
votes
0answers
33 views

How do I make a gif header?

I tried uploading a gif as a header, but it didn't work. It was definitely a gif when I uploaded it to the media library. I tried resizing the gif while still retaining its locomotive nature, but it ...
0
votes
0answers
24 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: ...
-2
votes
0answers
13 views

Theme has no header/CSS details

Please help. I was inserting a form on the contact page and all the sudden the theme disappeared from the site? Now all there is is text. My hosting company said it was because There are no header/CSS ...
0
votes
1answer
60 views

Fatal Error: get_header();

Fatal error: Call to undefined function get_header() I can't get this working. I am using twentythirteen default theme shipped with wordpress. I have created a custom template called table.php ...
0
votes
1answer
22 views

Cleanup Body_Class

Currently, when I use body_class() it generates a bunch of crap that I don't need. What I'd like to do is have the following: homepage: class='blog page-home' single: class='blog page-single' ...
0
votes
2answers
51 views

Headers already sent in Pluggable.php / homepage and wp-login error

After migrating site to another account on same host, I started to receives strange errors. Firstly I encountered an error where at the login page I was asked to turn on Cookies. And after I deleted ...
0
votes
4answers
67 views

Force wp_enqueue_scripts to the HEADER?

A plugin I'm working on requires jquery to be loaded before the content is processed. Some stock themes, like 2010, 2011 and 2012 (I believe) put the JS in the footer. How can I force the scripts to ...
0
votes
1answer
24 views

How do the default themes reference style.css?

I was expecting to see get_stylesheet_uri() called somewhere in the default header.php file for the default themes (2012-14), but anything like it is missing, which has me wondering how the reference ...
0
votes
0answers
20 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
37 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
23 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
1answer
12 views

disable wordpress canonical tag meta

wordpress core automatically generates canonical tag in HEAD section: <link rel="canonical" href="http://blabla.com" /> how to disable/remove that?
0
votes
1answer
26 views

Export Header and Footer

I want to export the header and footer from WordPress as HTML with same the design: CSS, images, JavaScript files. But not main content page. I want to do this, because I will use the same design in ...
0
votes
1answer
115 views

WOW.js Script Tag Initialization Header/Footer

hope things are going well. I'm attempting to use WOW.js http://mynameismatthieu.com/WOW/docs.html with animate.css to add animations to my site. WOW.js requires me to initialize it by adding the ...
0
votes
2answers
54 views

Second menu has the first menu ID

I registered two menus top-menu and main-menu. I created two menu on the admin panel and assigned one to each (different items) But when I view the front end, I see that the two menus have the same ...
0
votes
0answers
17 views

How to use the WordPress header as the global header for apps across a site?

I am running Wordpress as the main site, and a few other php CMS apps for other specific purposes (let me call it subsites for the purpose of this question). Now when designing templates for ...
0
votes
1answer
37 views

Blank line before doctype

I have a frustrating problem. In the page source, the first line is blank, which causes issues in some browsers. These are the steps I've taken to try to fix the problem: Gone back to ...
0
votes
0answers
18 views

Altering HTTP Headers when Serving Certain Files

I'm trying to use jquery.filedownload within a site but it requires that my files (a pdf, for instance) be served with specific headers. header('Set-Cookie: fileDownload=true; path=/'); ...
0
votes
0answers
28 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
43 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
3answers
119 views

Getting redirect to happen before header output

Anyone know of a way to trick WordPress into doing a header location redirect. I have to check whether users are logged in or not, and if not redirect them to our organizations authorization system ...
0
votes
2answers
59 views

Editing page content through FTP?

I currently work with a graphic designer and code primarily HTML/CSS for clients looking to develop a web presence. I don't know much about WordPress. I have a client who wants some minimal changes ...
0
votes
1answer
33 views

Add access control origin header information across multisite

I want to add the below snippet to my wordpress installation. <?php header("Access-Control-Allow-Origin: *");?> I don't want to add it in every template header as there are many of them and I ...
0
votes
2answers
81 views

Template Hierarchy for get_header()

I'm considering having different headers depending on the area of the site. So thought it might be possible to tap into the template hierarchy (or at the very least, re-use some of the code) and ...
0
votes
2answers
55 views

Why isn't my if/elseif/else working correctly here?

I am using a simple if/elseif/else bit of code to generate a header image for my page, I can't seem to understand why it isn't working properly. It determines the category of the page being displayed ...
0
votes
1answer
20 views

Hide page header on both index and author pages [closed]

I'm using the Roots theme which is tricky to start with. I'm trying to hide the page headers from both index and author pages. I got to do it on index by using the following code: <?php ...
0
votes
2answers
110 views

Dynamic menu links after header title

I am using Parabola theme of Wordpress, and i would like to display few dynamic menu links for logged in users, just at the right of the header title. As shown in the below image, Menu 1 and Menu 2 ...
0
votes
1answer
23 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
50 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
34 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
52 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 ...
-1
votes
1answer
38 views

site-description css is overriden

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
34 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
243 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
50 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
45 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
165 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
339 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
62 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
140 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
62 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
57 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
46 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
80 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
85 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
59 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
20 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 ...