Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [custom-header]

Custom Header is a WordPress theme feature introduced with Version 2.1. Custom header is an image that is chosen as the representative image in the theme top header section. To use this feature, it must be activated in the theme with `add_theme_support`.

1
vote
2answers
12 views

How to output php between header and woocommerce container

I am customizing my product detail page. I put the code before the single product summary in content-single-product.php As you can see here: Link to product page But i want it like this: Can some ...
1
vote
2answers
525 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
604 views

How to add custom header to Twenty seventeen single post in wordpress

I am trying to add my own custom header to twenty seventeen theme i have updated the header file but its only working for front page.I want to add same header to single post page also.But i am unable ...
-2
votes
2answers
38 views

Image is very blurry

I'm using Tevolution. I can't find where I can re-size the flag at the top of this website: isupportblack.com It is blurry and shouldn't be. Any suggestions? Thanks!
1
vote
1answer
124 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
61 views

Modify wp-admin page header 'viewport' meta data

The 'wp-admin/admin-header.php' file outputs 'viewport' meta data. It seems the value of the viewport is hard coded into the file. (See: https://github.com/WordPress/WordPress/blob/master/wp-admin/...
0
votes
1answer
852 views

How to insert a Button or custom text on twentyseventeen header

Is it possible to add a button, svg and extra text paragraph to header image on the twentyseventeen theme? This is an example of what look I'm trying to achieve https://github.com/ppass5/...
0
votes
1answer
39 views

Disable header banner on specific Posts

I Need to disable/block the header banner (Adsense code) on specific posts. I'm not a developer, I manually added the script in the header.php. Is there any way to disable that banner by specific post ...
0
votes
1answer
21 views

Blog page is not showing properly

I am working on my site http://coregroupus.com/blog/ due to some problem my blog page is not displaying posts properly. Its showing the content of some other page in header, however all the posts are ...
0
votes
1answer
46 views

Header and Footer options in pages and posts

I wanted to add a custom option to select header and footer in every pages and post. I have two headers and two footers so I wanted to select every page. So please suggest me how can I possibly?
0
votes
1answer
99 views

Images appear in the header on all pages, but not category.php

EDIT: I've narrowed this down to the img tags within a tags getting stripped out at some point. They show up in the Page Source, but not in inspect element. I've added a custom category.php, and my ...
0
votes
1answer
425 views

Different custom header video on different pages

I have problem with creating multiple different video headers on different pages. I'm using lattest Wordpress 4.7 and using "Twenty Seventeen" template. For now i manage how to add "video header" to ...
0
votes
1answer
17 views

accessibility of an object created in a plugin, from the header

I have a simple OOP plugin with a class $MyClass in it. I create the instance MyObject of this class in my theme 'functions.php' file. Thanks to this, I can use any method MyObject->MyMethod from my ...
0
votes
1answer
90 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
59 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
114 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
1answer
397 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
102 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
455 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
56 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
1answer
107 views

Creating a custom header

I am using the greyzed theme and want to create a custom header using my own image. my computer skills are limited and i have no idea where to start or how to even open the php files if that's what I ...
0
votes
1answer
1k views

Multiple Custom Headers

I am trying to add this function: add_theme_support( 'custom-header' ); I would like this to somehow combine with multiple headers. I saw some code that was PHP that checked which template was ...
-1
votes
1answer
2k 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-header'...
4
votes
0answers
161 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
0answers
11 views

Want to create Custom Header based on Geo Location

I am having 2 header UK & US Header. I want to redirect the US header & footer based on US location. I am using Geo Redirection Plugin, but by using this plugin i can modifiy the URL ...
1
vote
0answers
67 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
0answers
613 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 ...
0
votes
0answers
11 views

If i use a child theme to add new code blocks to header.php, how does it get inserted in the right place in parent's header.php?

I want to add <ul><li><a href="link">Link</a></li></ul> to my theme's header.php. This is new code that doesn't already exist anywhere. I have created a child theme....
0
votes
0answers
19 views

Woocommerce + Astra Pro + Elementor header shop not change

I'm using a astra sites template for build my e-commerce. Customizing the header of my site I realized that in the shop page the header did not change according to the customization of the theme I ...
0
votes
0answers
15 views

How to make custom_header_setup() image as background image?

I have created a function that enables Header Image in Wordpress (5.0.3) ACP. My HTML code treats that image as normal image (not background). <img src="<?php header_image(); ?>" height="<...
0
votes
0answers
8 views

disable header top menu

im working on this theme http://contextodigital.es/v2/diseno-pagina-web-245 i need help to disable the header top menu I appreciate some help Regards
0
votes
0answers
20 views

How can I add a logo to the hamburger menu?

I have a mobile hamburger menu setup, but I am having trouble adding my logo to the left of it. This is coded to go against the theme. Any idea on how I can add a clickable logo to the left of the ...
0
votes
0answers
16 views

Include an infogr.am link in header of twenty seventeen theme

Is it possible to use the infogr.am link with a graph in the header of the twenty seventeen theme? The result would be a graphic that is automatically refreshing itself whenever there is a change in ...
0
votes
0answers
22 views

Custom banner / header for certain posts or pages

Below is the code for my template-banner.php file. However depending on the post or page I want to display a custom banner. I have tried some plugins made for this however these do not work for my ...
0
votes
0answers
19 views

Trying to put text and links into a header

I am trying to add some items to a header. I want to put some text in the center and I would like to add social media icons and links. I have no programming expertise, so type slowly and in short ...
0
votes
0answers
36 views

WordPress Multisite header img src is lost from staging to production

I'm working on a Multisite where each site has its own header image. I have a staging and production setup where everything is edited on staging. A new site gets created and it has its own header ...
0
votes
0answers
177 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
28 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
75 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 ( !...