The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
6 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
21 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() .' ...
0
votes
1answer
54 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
24 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
40 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 ...
8
votes
1answer
126 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 ...
-1
votes
1answer
27 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, ...
0
votes
0answers
36 views

<Solved> Code to Add Text Blocks Above Navigation in Custom Header for Home Page?

I am looking for a tut/blog/whatever to provide me guidance on how I can add a small block of text above a navigation bar in a custom header-home.php file. I am building a wordpress/bootstrap theme ...
0
votes
0answers
54 views

TwentyFifteen color schemes with custom header default-image

I'm writing a child theme off twentyfifteen and customizing the color schemes. What I'd really like to do is change the default custom header image when the user changes the color scheme. This seems ...
0
votes
0answers
93 views

how do I add a responsive header image to my theme?

Building a super simple theme but would like the header image to be responsive from full size computer browser to small phones. I've looked at twentyfourteen theme and read up on responsive images ...
0
votes
1answer
157 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
25 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
0answers
90 views

Select which header to use from custom theme options and change index.php

I have my own writen theme which is running on 4 sites with WP multisites. I want to use an different header on 1 site and I have a theory that it would be possible to select which header to use in a ...
0
votes
1answer
133 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
27 views

Network Wide Logo Plugin

I created a simple plugin that I use to add and edit my logo's. I have a multi install so I use many different themes. The only problem I am having is that I have to add the plugin code to each ...
0
votes
0answers
62 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
168 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
255 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( ...
0
votes
1answer
85 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: ...
0
votes
0answers
57 views

Define Mutiple Header Images Using the Theme Customization API

The Header Image control from the Theme Customization API allows for a single header image to uploaded and used sitewide. Using this control, is it possible to save to a custom setting to allow for ...
3
votes
1answer
426 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(); ?>" ...
1
vote
1answer
116 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
72 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( ...
0
votes
1answer
52 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
2answers
5k 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
269 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' => '', ...
0
votes
2answers
389 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
111 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
2answers
54 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 ...
0
votes
1answer
48 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 ...
1
vote
2answers
691 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 ...
0
votes
1answer
191 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
297 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 ...
0
votes
1answer
466 views

How to set “lang” attribute for post/page title?

I am creating multilingual website in Urdu & English lanugage on Wordpress. Major part of site is in English. Only article's body (i.e paragraph & headings etc) are in Urdu. To assign Urdu ...
0
votes
1answer
188 views

How to change the background color of my header dynamically based on a Custom Posts types color value?

I've been able to figure out how to include the custom field i'm referencing within an inline style within a div that wraps my header. The problem is that it's in my header and so when a particular ...
1
vote
0answers
51 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 ~ ...
-2
votes
1answer
320 views

How to implement a custom sliding banner? [closed]

I need to make a custom slider with images (same images on all pages) in a template I am crafting for a client. Each of the slides could have a link to one of the pages. How and where should I store ...
0
votes
1answer
49 views

Set header for default posts page?

In Settings/Reading I set Testimonials as post page. How can I change the header of that page?
1
vote
0answers
47 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 ...
2
votes
2answers
67 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?
1
vote
1answer
75 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 ...
0
votes
1answer
50 views

header specific meta box result detect url

I've got 3 header.php files and 1 detects whether their either on page 1 or page 2. I have a custom meta box thats outputting the results onto each header - that all works fine. However when I go a ...
0
votes
1answer
48 views

Custom Menu based off custom header

I'm using my Child of TwentyTwelve Just for your knowledge, I have two sections to my one WordPress site... one is called pain, the other called anesthesia (It's a medical site for the curious). I ...
0
votes
0answers
57 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 ( ...
1
vote
3answers
429 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
2answers
714 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
2answers
409 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
435 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
717 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 ...
2
votes
1answer
487 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/ ...