The tag has no usage guidance.

learn more… | top users | synonyms

8
votes
1answer
208 views

How can i get the name parameter defined in get_header?

For example, on my blog pages i use get_header('blog');, but i don't want to create a new header template called header-blog.php, because i just want to make a small adjustments. Is it possible to ...
3
votes
1answer
672 views

How to get the custom header image's alt text?

I'm using a custom header in my theme. My aim is to add an alt attribute to my custom header img element. My img element so far looks like this: <img src="<?php header_image(); ?>" ...
2
votes
3answers
2k views

How to change the height of featured image in Twenty Eleven child theme

I am trying to change the height of my featured image to 350px in my child theme for Twenty Eleven. Can anyone help?? Note: I am using Twenty Eleven and there is no functions.php file in my child ...
2
votes
1answer
271 views

How to use a svg as custom header?

I want to use a svg as a custom header in WordPress. I tried two ways: First I want the user to be able to upload their own svg as a custom header. So I enabled svg uploads in the functions.php: ...
2
votes
2answers
903 views

Custom header images won't appear when set to random

I'm using a custom theme, developed from Boilerplate (some time ago). I noticed that the header images work fine when set statically, but fail to appear when set to random. I tried switching themes, ...
2
votes
1answer
731 views

Custom text-only header

I am developing a WordPress theme and would like to make use of a custom header on a the homepage (I'm using a custom page template). I would like this header to not include an image, but rather an ...
2
votes
2answers
75 views

Loss of sharpness in jpg imported as header in twentyeleven

When importing a jpg into the header position (jpg created in indesign at 1000 px wide) for the twentyeleven theme, the photos are not sharp. what is causing this and how do I fix it?
2
votes
1answer
605 views

Mysterious HTTP 404 header in my own scripts

I have a WordPress 3.5.1 + nginx configuration. Its nginx configuration is this: server { root /mysite/public_html; server_name wp.mysite; location / { try_files $uri $uri/ ...
2
votes
0answers
145 views

Additional Option on Custom Header admin

I would like to extend the Custom Header class to include an animation feature for the header graphics. Essentially, I'd like to add another possible value for the radio button for randomization. The ...
1
vote
2answers
193 views

What is the advantage of using header-catname.php over is_category('catname');?

Let's say I have a category named as catname (the slug would be catname). I want the header styled differently when visitors open the category catname. The article on Ghacks explains how to create a ...
1
vote
1answer
42 views

How to edit <head> codes of an individual page/post?

I want to run a JavaScript and I want to paste in inside the <head></head> tag I do not want to add it to the text-view area. How can I add this code snippet to an individual post (I ...
1
vote
1answer
481 views

Change location of header.php and footer.php

I wish to organize the my themes directory a little more. Is it possible to move header.php and footer.php to a sub directory? I guess it's done by hooking on to some action, but is it possible with ...
1
vote
3answers
549 views

Remove an uploaded header image

I'm developing a theme which supports a header image, when you've uploaded a few header images you can select to show them randomly as header image. When you want to remove one header image you can do ...
1
vote
1answer
357 views

Header Slideshow [duplicate]

Possible Duplicate: Using short codes I want to add a slideshow in the header section of twenty eleven theme instead of header image. I have tried different plugin , but the only work into ...
1
vote
1answer
214 views

Create mobile navigation header with settings integration

I'm a seasoned programmer but a completely inexperienced WordPress developer. I'm trying to figure out how to create a header that only shows for mobile devices, and how to modify properties of that ...
1
vote
1answer
161 views

Different Header Files Wordpress

How do I call a different header files in WordPress. For example, I made ​​a wordpress theme with a variety of different display header. There header1.php, header2.php, header3.php, header4.php, ...
1
vote
2answers
843 views

Using website header, menu and footer on Wordpress blog

I want to use the header, top menu and footer from my website on my Wordpress blog. The website itself is not a Wordpress site but the blog is and resides in a 'blog' folder on my server. So I guess ...
1
vote
0answers
56 views

Permanently modifying the W3 Total Cache's nginx.conf file [closed]

I want to have an add_header directive inside a location block of the nginx.conf (inside the document root) generated by W3 Total Cache like this # BEGIN W3TC Page Cache cache location ~ ...
1
vote
0answers
53 views

Different banner for different section

I have different section like about us, portfolio, gallery. Client want to upload different banner for different section that I have given on every page custom field. But problem is I want same ...
1
vote
1answer
87 views

How to change header image size in custom themes

I'm using WP 3.5 for a CMS for one of our clients. I need to have a bigger header image than 940 × 250 pixels, so I changed width and height parameters, but when I try to upload a new image, it still ...
1
vote
0answers
554 views

Skeleton Child Theme Add Icon Bar to Header Flex Grid

Skeleton Child Theme Version 1.6 WordPress Version 3.4.2 Child Theme installed on main Multisite: public_html, wp-content, themes. My CSS, PHP Coding skills = NOVICE What I've done: Using the ...
1
vote
1answer
1k views

Header and nav menu problem on Thesis site [closed]

Unfortunately I managed to make the header image disappear and the horizontal nav menu distort on this Thesis themed Wordpress site I'm helping a friend with www.euanmitchell.com.au I've pasted the ...
1
vote
2answers
331 views

Additional custom header image

Has anyone seen a way to add a new header_image to a theme? I need to add two configurable images in a theme. It doesn't really matter if it gets added as a new "Header" admin theme menu or if it's ...
0
votes
2answers
519 views

Best practice to update the file header.php

I would like to know, what is the best practice for updating the header.php file: From within WordPress editor: Appearance > Editor or Directly in the header.php file itself (in the www_root)?
0
votes
2answers
2k views

Add additional upload field to Custom Header page

I use the custom header feature for my theme and I’d like to add an additional upload field to the Custom Header page in the backend (page=custom-header) for a custom logo upload. I found this but ...
0
votes
2answers
893 views

Get a sidebar at the top of the page

I want to get a sidebar ( get_sidebar( 'mySidebar' ) ) at the top of the page, so I can't call it after get_header() in the content template. How could I do it?
0
votes
1answer
819 views

Display different header images based on current page

I want to display, based on the current page another header image. Short example: Home -> Image A PageId 1,2,3,4 -> Image B (2,3,4 are childs of page 1) PageId 5, 6 -> Image C ... I tried to ...
0
votes
1answer
40 views

Include different scripts and styles for two separate custom headers?

I would like to have 2 different header files that I can use depending on which section of the website I am on. For example, display custom header#1 if not logged in, and display custom header#2 if ...
0
votes
1answer
67 views

Adding other links on header than LinkedIn, Facebook, Youtube etc

As you can see on the header of my website I have several link buttons to Youtube, Facebook etc... I changed the code a bit to add Soundcloud URL, and that worked. I get the Soundcloud logo on top ...
0
votes
1answer
44 views

Why I am getting Parse error: syntax error when I use 'wp_is_mobile'?

I am getting following error message : Parse error: syntax error, unexpected '{' in /home/otcpaneluser/public_html/mytheme/header.php on line 1 My header.php have very simple lines of code. Those ...
0
votes
1answer
78 views

get_header() in backend - but keep JavaScript and CSS files

I replaced the header and footer in the backend with those from the frontend by the following code: /* add header to backend */ function header_backend() { get_header(); } ...
0
votes
1answer
30 views

Where is the stylesheet code?

I want to change some values in this code on the header of my site: <link rel='stylesheet' id='style-css' href='localhost/wp-content/themes/xxxx/style.css' type='text/css' media='all' /> ...
0
votes
1answer
85 views

where to change text for header?

on the twentyfifteen theme. When I click on the customizer to set my header, There is some text there that says. "While you can crop images to your liking after clicking Add new image, your theme ...
0
votes
2answers
7k views

How to change default header image dimensions in twentyfourteen child theme?

I'm creating a child theme based on twentyfourteen and wish to change the custom header image dimensions. The custom header page states: Images should be at least 1260 pixels wide. Suggested width ...
0
votes
1answer
55 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
220 views

Custom header image, and content, on Posts Page in twentyeleven with Static Front Page

I'm new to Wordpress, so sorry if I've missed something obvious. I have a site using (a local child of) the twentyeleven theme. I've found that if I set Featured Images on pages and posts, then that ...
0
votes
2answers
487 views

Add credit to get_custom_header in alt

Been hunting for a while and I can't figure out how to use get_custom_header to get the alt text associated with the media file, so that I can add photo credits to the headers on my site. Am I missing ...
0
votes
1answer
51 views

Conditional Custom Image Header

I thought there was a conditional for a custom image header that could check whether an image had been added (not whether the feature was enabled, but actually being used). I wanted to use it to add a ...
0
votes
1answer
411 views

Page header menu links change

I am trying to find out where the header menu links on my WP is located so that i can change the URL of the page. the link is: http://blahblah.com/?page_id=11 and i need to change it to: ...
0
votes
1answer
325 views

navigation doesn't work in custom header.php

I've made a custom header-blog.php(for blog page/home.php) in addition to header.php, both of which use the exact same <nav> code. On the pages that use header.php, the navigation works ...
0
votes
1answer
293 views

trouble calling different header.php for home.php

I'm making a site that uses the same header.php for all pages except the blog/home.php. For this, I've created blog-header.php and am attempting to call it using the following: <?php if( ...
0
votes
2answers
718 views

adding meta data using plugin to top of head

It seems if you use the wp_head hook as an action to put your custom metadata into the head tags of your page, it is dependent on where the theme you are using calls the wp_head. In my case, it is at ...
0
votes
1answer
487 views

How to remove header images from all pages except the home page? skeleton theme

I'm using the Skeleton theme and the header image is on all pages. I only want it on the home page. Anyone got a solution?
0
votes
1answer
384 views

twentyeleven theme: Where is the code that handles moving the search bar on resize?

When twentyeleven theme gets too small, the search bar that was in the nav bar is moved up into the header image. My question is, where is this behavior handled in the theme? I would like to modify it ...
0
votes
1answer
63 views

Custom page html headings plugin?

Does anyone know of a plugin that lets you customize the heading area of each page or post with HTML? The heading area I refer to is directly above the main post content. An example is on ...
0
votes
0answers
18 views

WordPress 4.4.2, _s starter theme, problems with custom default header

I'm using the _s starter theme and setting up a custom header image. I've got this code: add_theme_support( 'custom-header', apply_filters( 'xyztheme_custom_header_args', array( 'default-image' ...
0
votes
0answers
59 views

Adding Section tag before get_header(); ?>

I am currently working on a WordPress theme using FoundationPress. I have created a custom homepage template which I have labelled home-page.php and assigned as my front page. I would like to make ...
0
votes
2answers
97 views

How to add text to header below title but above nav

I need the text seen in light gray at the top of the header to be below the site title/tagline but above the tabbed navigation: devtest.lcnlit.org I would prefer learning to do it the proper way ...
0
votes
0answers
25 views

Custom text in header on posts page

I need to add a custom blockquote-style blurb to the header on our home page, which is a posts page (using a child theme to Mantra). Our site: http://www.lcnlit.org Would like to add the blurb below ...
0
votes
1answer
35 views

Add a wrapper in the header

For, my configuration : Wordpress 4.3.1 Theme Nirvana 1.1.3 Main website : stra-tj DOT fr My question seems to be quite easy asking it but I'm on it since 3 days and I don't know how to solve it. I ...