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`.

41 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
163 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
76 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
1answer
306 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/...
1
vote
0answers
16 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
1answer
128 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
619 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
2answers
544 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
0answers
10 views

Move custom-header menü-point to own panel?

Is it possible in own theme to move the custom-header menu-point to own panel?
0
votes
0answers
9 views

Tweenty Seventeen Header as whole page?

I am looking to make my header the whole page, I don't want a home page there, I would just like the image or just the video. not sure how to do it?
0
votes
1answer
21 views

My custom header does not change the header image height and width

Here is my code in functions.php $custom_header_args=array( 'default-image' => '', 'width' => 500, 'height' => 500, 'flex-height' ...
0
votes
0answers
17 views

Header with both normal menu and sidebar navigation menu

I'd like to have something like the tinder homepage, with a few text menu icons, followed by a hamburger widget, that opens a sidebar menu. Currently I have tried using oceanwp, and astra themes, and ...
0
votes
0answers
53 views

How to add markup to the wp-custom-header div

I have a custom header video on my WordPress site and I have an overlay (an svg I repeat in the background of a div) that I want to live on top of the video. I accomplished this like so <?php ...
0
votes
0answers
12 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
62 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
1answer
28 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
11 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
19 views

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

Is it possible to use the Infogram 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
1answer
1k 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
48 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
0answers
20 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
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
0answers
38 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
1answer
112 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
450 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
0answers
178 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
1answer
97 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
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
1answer
432 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
106 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
462 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
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 ( !...
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
2answers
680 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 ...
0
votes
1answer
23 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
2k 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'...
-2
votes
2answers
40 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!