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
votes
0answers
7 views

create code for the notifications to apear on theme header [on hold]

When i add this code on header <?php bp_adminbar_notifications_menu(); ?> i get this IMAGE1, but i want to create a code for notifications to open on drop down like this IMAGE2, pls help me to ...
0
votes
0answers
26 views

wordpress head is empty, append to body

i'm have a problem for Wordpress heading. my get_header(); <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html ...
0
votes
2answers
35 views

Removing old code from header

In our site, we've got some old code sitting in the header. I'm guessing it originated from a plugin we used to use (embedding Scribd content into the site), but we are no longer using it. ...
0
votes
0answers
15 views

Showing just the menu toggle next to logo in twenty fourteen

For mobile, I want to eliminate the black menu bar, search box/icon and move the menu toggle up so that on mobile, my site just has the logo and the menu toggle. This gives a bit more room for ...
0
votes
2answers
48 views

Programmatically log in a wordpress user

I am trying to programmatically log in a wordpress user, using the following function for that. public function auto_login( $user ) { $username = $user; if ( ...
0
votes
2answers
126 views

Remove sticky behavior from top navigation on twenty fourteen theme?

In wordpress theme twentyfourteen, I am wondering how to remove the sticky behavior of the top navigation with a 100% width header background image like this site? I would love to have a top image ...
1
vote
0answers
81 views

wp-comments-post.php file returns a blank page

When i post a reply to my blog, it's return a blank page to me. It seems that happens because of this code in wp-comments-post.php if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) { header('Allow: ...
0
votes
1answer
47 views

How to set twenty fourteen header image at 100% width?

if function wpse_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'wpse_header_args', array( 'width' => 1460, 'height' => ...
2
votes
2answers
99 views

How to stop loading multiple copies of jquery

My wordpress header.php and function.php is given below.please help me to modify my php code to stop problems due to loading jquery multiple times. My plugins and themes are loading jquery multiple ...
2
votes
1answer
52 views

Strip HTML comments from plugins in header/footer

Would anyone know a function or how to remove <!-- plugin inserted stuff--> from the header and footer so that they won't be visible when viewing source?
0
votes
0answers
34 views

Using Wordpress header in a moodle site

Hello I am trying to use the wordpress header inside Moodle instead of using the menu in the theme we are using. I have tried adding it using this php code below in the header.php file of the moodle ...
0
votes
1answer
18 views

link header to homepage (for wp multisite)

I am using the genesis framework and have added this code to change the way genesis uploads a header image: remove_action( 'wp_head', 'genesis_custom_header_style' ); add_action( 'genesis_header', ...
0
votes
1answer
30 views

Dynamic meta description

I am trying to make the <meta name="description" content=""> pull the content from single posts, but I am running into a snag. Currently I am using this: <meta name="description" ...
0
votes
1answer
42 views

Theme modification for custom category menus

My goal is to have a custom menu in the header based on the category of the post being viewed. I'm setting up a single wordpress site that will contain about a half dozen different categories. ...
0
votes
1answer
35 views

Change header based on visitor choice

I need to show a different header file ("header-tourist.php" and "header-agent-php") based on a choice the visitor will make. For example, I have 2 main buttons: View site as Tourist or View site as ...
-1
votes
1answer
72 views

Have image slider display only on home page

I have placed a image slider in wordpress theme, however it is showing on all pages. I only want it to show on my home page. This is the code I have for it in my header.php childtheme <?php /** ...
-2
votes
1answer
102 views

Image slider to display at the very top of home page

I've installed a slider, however I want it to sit at the very top of my page under the navigation. However I'm not sure how to do this. <?php /** * The Header for our theme. * * ...
1
vote
2answers
21 views

Page source contains an http item that makes page insecure; but in php files it's written as https!

I can't seem to figure this out! I set up my site (https://goinspire.com/secure-payment/) to be https, but instead of the lock symbol I see a warning symbol. According to http://www.whynopadlock.com/ ...
0
votes
0answers
27 views

PHP header() gives headers already sent

I am working on a checkout proces in Wordpress where if customer clicks on the checkout button he gets redirected to a payment provider. Important to know: I use a session in this proces. I use PHP ...
0
votes
0answers
54 views

Init hook for header send

I am working on a checkout proces where if I submit the checkout I get an error "headers already send" because I use a PHP header() function to send the customer to my payment provider url. My idea ...
0
votes
0answers
74 views

Viewport meta tag disappearing

I have just started with Wordpress development and have searched high and low for an answer to this question. I am attempting to add the viewport meta tag to my header.php file: <!DOCTYPE ...
1
vote
0answers
54 views

404 or ugly page on IE, but Firefox, Chrome looks perfect

I have a variation of this issue. Was happening before and after new theme. I was getting 404 in IE, now sometimes get partial page that looks horrible. Contents can vary when I refresh. I have no ...
0
votes
2answers
33 views

Inject code in the header of my template

I'd like to inject the name of the author of a post into the header of the page via the author tag. something like <head> <title>FAQs</title> <meta name="author" ...
6
votes
2answers
223 views

Auto get_header and get_footer on every template?

Is there a way to automatically run get_header() at the beginning of template and get_footer() at the end of it? Currently my code is too repetitive with those calls. I've been looking for a way to ...
0
votes
1answer
59 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 ...
0
votes
0answers
54 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: ...
0
votes
1answer
110 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
40 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
89 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
95 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
36 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
50 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
52 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
65 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
20 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
58 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
436 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
116 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
20 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
98 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
31 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
49 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
81 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
288 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
225 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
138 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
204 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
95 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
37 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
235 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 ...