The custom header is a WP feature that gives special support to header images. To use this feature it must be activated in the theme with `add_theme_support`.

learn more… | top users | synonyms

0
votes
1answer
490 views

How can I customize the size of the header of my theme?

I want to change the size of my header using the Sparkling theme. In functions.php, right below this: /** * Implement the Custom Header feature. */ I added this: add_theme_support( 'custom-...
-1
votes
0answers
30 views

Header.php toggle navigation button not working [on hold]

I am using bootstrap to customise my blog theme. Then I have used collapsable navigation bar in my header.php page. The problem is the toggle button is not toggling the navigation menu. I am not able ...
1
vote
1answer
24 views

From where the header-text can be changed in WordPress custom header?

I am developing a small theme as I am beginner. I am setting up custom-header using add_theme_support() function. From there I can change the header image in the front end. Ok, so far is good. Now In ...
1
vote
2answers
867 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 ...
6
votes
1answer
57 views

When cropping a header image, retain meta data (i.e. name, description, etc.) from original image?

I'm currently using WordPress's built in Custom Headers to get images for a slideshow on the homepage of my website. For the most part, this has worked as intended; it allows me to upload a set of ...
0
votes
0answers
15 views

Assigning custom-single.php based on category

The code below looks like exactly what I need but I dont know how to update it to work for 3 custom single.php files plus the default single.php for any other posts not in one of these 3 categories (...
2
votes
2answers
391 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: ...
1
vote
1answer
46 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 ...
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 ...
1
vote
3answers
558 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 ...
0
votes
0answers
22 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' ...
2
votes
2answers
943 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, ...
0
votes
0answers
60 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
1answer
47 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
2answers
124 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
28 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
39 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 ...
0
votes
1answer
74 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
0answers
26 views

How to make btn nav work with secondary menu: wordpress header

I'm very noob with code but somehow (lol) I was able to change a secondary menu to a btn which I expect to open and close on click but I have not been able to make them (btn and nav) work together. ...
0
votes
0answers
81 views

Custom header image inserted into inline-CSS as background image not displaying/Too few args

my issue is as follows. I am trying to display the custom header of my site as a background image using inline-CSS. However, while the correct url and image is received by the inline-css, the image is ...
0
votes
1answer
126 views

Change the location of add_theme_support( 'custom-header' ) in the customizer

I'm using add_theme_support( 'custom-header' ) to upload images for an image slider. The slider also has other settings in the customizer (duration, fade, overlay color, etc). Because there are ...
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
88 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(); } add_filter('...
0
votes
1answer
33 views

How to create a custom header?

I would like to create a custom header with a background image, as well as the ability to adjust the height and width of the header, and the ability to adjust the logo size. Here is my code: header { ...
0
votes
1answer
197 views

How to remove WP Title Tag?

I have add custom title tag for a custom post type in header.php like this if(is_singular( 'news' )){ global $wp_query; $postid = $wp_query->post->ID; echo '<title>'. get_the_title() .' ...
8
votes
1answer
222 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 ...
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
93 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 ...
-1
votes
1answer
59 views

header_image not returning header image url

I have following setup: //set defaults $args = array( 'default-image' => get_template_directory_uri().'/images/banner.png', 'random-default' => false, '...
1
vote
2answers
333 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 ...
1
vote
1answer
554 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 ...
0
votes
0answers
26 views

How to display the link that says “Edit Header Image” on header image

I have a website which featured with WP custom header image without plugin. I would like to ask that, is it possible to display a text with link which allows website owner easily change the header ...
0
votes
1answer
213 views

Different custom header image on different page

I am now creating a website for my client, this client wants me to make each page of the section of header image able to be easily uploaded by them in wordpress admin panel. This is the code I have ...
0
votes
0answers
84 views

Access to the header cropping tool in modal

For the moment I access the media uploader via a meta box from the edit post screen. The code works: no problem. However, I would like to know how to be redirected to the crop tool right after the ...
1
vote
1answer
221 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 ...
0
votes
1answer
91 views

Different header image 'Home' and Pages

I want to use two images in the header. In the home page and single.php is the image I've uploaded in the panel (named logo.png). For pages I want use the image 'logopage.png' (directory: /images/...
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 ...
3
votes
1answer
711 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(); ?>" height="&...
1
vote
1answer
165 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, ...
0
votes
1answer
125 views

Adding theme support for a custom header image

I'm using add_theme_support( 'custom-header', $defaults ); to support custom header images in my theme. The $defaults are described in the Custom Headers article $defaults = array( 'default-image'...
0
votes
1answer
65 views

Adding header function to theme

I changed the theme of my website this weekend but did not see that it wasn't supporting headers... I am now trying to create the get header image function manually, I managed to do someting in the ...
0
votes
1answer
359 views

add_theme_support('custom-header') does not add the option to customize

I am using this to get custom header support to my new theme: function my_add_header_support() { $ch_defaults = array( 'default-text-color' => '', ...
1
vote
0answers
557 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 ...
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 ...
0
votes
2answers
952 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
2answers
83 views

Display the current post author and his url in the post header

I'm making some changes in my theme. I want that when they visit a Post the header should contain the post author and his URL. right now I'm using this: echo '<a href="'.get_author_posts_url().'"&...
0
votes
1answer
169 views

Dynamic Title for custom post types

I use a custom post called "abschreibungstabelle". For all posts, I want to set the meta title dynamically: "This is a test: " & the post title Is there any easy way to do this: Actually I use ...
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
226 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
1answer
365 views

Trouble with responsivitizing my twentythirteen header

I'm using the twentythirteen theme and trying to get the header to adapt to screen resolution. I've uploaded several image files with the required resolutions, and changed my custom-header.php source ...