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

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

force preload jquery in header

I'm using the following code to preload the jquery script, and it works fine in the theme's header.php <?php function getWPVersion() { include '/wp-includes/version.php'; return $wp_version;...
user avatar
0 votes
0 answers
15 views

Custom Header added within Dashboard pages, is this possible with custom template files?

I created a custom template and called it Header Home"header-home.php" <?php /** * Template Name: Header Home */ ?> <?php if( have_post() ) { while( have_post() ){ ...
user avatar
1 vote
0 answers
64 views

Headers Content-Security-Policy CSP Major Issue

Im trying to add CSP : Header add Content-Security-Policy "script-src 'self';" - to my htaccess, seems like this line keeps breaking my site, The blocks gets broken, Unable to edit ...
user avatar
0 votes
0 answers
17 views

My theme header is stuck on a low resolution image?

My responsive header is stuck on the medium-large srcset regardless of width UNLESS I'm in DevTools. I have disabled all CDN's and image resizing, but now this seems to be browser behavior i cannot ...
user avatar
0 votes
1 answer
31 views

create a button in the header of the mobile menu in the middle of the logo and the menu accordion

good evening everybody, I would like to implement a button in the mobile menu in the header between the middle of the logo and the middle of the menu accordion (explanation in the image that I will ...
user avatar
0 votes
0 answers
20 views

How to Hide the header globally with Elementor?

In Elementor pro you can delete the template header and customize a new one, but this header appears on the home page only, but in Article shows the original template header. Is there a code that can ...
user avatar
0 votes
0 answers
17 views

Design Header meta on single posts wordpress

I want design my header_meta on single posts like this, please help me Thank you,
user avatar
0 votes
1 answer
87 views

Wordpress theme header.php should I add title meta?

I am making a theme for WordPress and I have noticed that most themes does not have meta in them Is there any specific reason for this? Am I allowed to put custom metas such as keywords that are SEO ...
user avatar
0 votes
0 answers
39 views

How to enable admin to upload multiple images to support header carousel slider theme in WordPress?

I am creating a Bootstrap Carousel WordPress Theme. Thus Carousel Slider at the top of the pages is a part of theme which should be supported out of the box. That's why creating a separate plugin ...
user avatar
  • 101
0 votes
0 answers
26 views

I want to add my website name in wordpress source code like this

How can I add my website name to the top of the page 'view source' like the example above?
user avatar
  • 1
3 votes
1 answer
1k views

How can I add a custom header to a custom template in a plugin without using the theme folders

There is a lot of documentation on how to create custom headers for a theme. For example, if I wanted to add a header named: header-custom.php I would add this to my template file: get_header('...
user avatar
  • 31
-1 votes
1 answer
77 views

How to laod wp_enqueue_style to another header i created my self

How to laod wp_enqueue_style to another header i created my self name of the header manga-single-reading.php wp_enqueue_style code in wp-manga.php the code is wp_enqueue_style( 'wp-manga-plugin-css', ...
user avatar
0 votes
0 answers
35 views

Add helper text in custom-header section in admin

In my custom theme I created a custom header section : add_theme_support( 'custom-header', array( 'video' => true, 'flex-width' => true, 'flex-height' => true, 'width' => ...
user avatar
0 votes
1 answer
524 views

Create custom API endpoint to change custom header image

My goal is to create a custom API endpoint that I can call with an API call that changes the custom header image in Wordpress to another image (which would be passed along the API call, or maybe just ...
user avatar
1 vote
0 answers
230 views

Remove elementor header and display default theme header

I am using Elementor pro and I am using Tabor wordpress theme(Here theme link: https://themebeans.com/themes/tabor/). I create custom footer within elementor pro and I noticed that the default theme ...
user avatar
0 votes
0 answers
309 views

Loading different header and footer in woocommerce templates (AMP)

I would like to use different header and footer in my woocommerce AMP templates instead of default one. I already achieved this but I can’t manage to do it for WooCommerce templates. So let me explain ...
user avatar
  • 1
1 vote
1 answer
909 views

Show Different Header on a Specific Post ID

I am needing to show a different header for a specific page. I created a custom page template that calls/shows the normal header that the entire website uses. I am using this page template for about ...
user avatar
  • 63
1 vote
0 answers
20 views

Determine what pages are in my header [closed]

I'm using the Howe's family of themes for my WordPress site. Two pages ("about" and "sample" at least one of which came with the installation) appear in my header. I'd like to add more, but I wouldn't ...
user avatar
  • 111
0 votes
1 answer
60 views

Change position of header image with default 2019 theme

I am currently setting up a Wordpress website based on the default Twenty Nineteen theme. The theme allows to use a header image. The default position is on the top left as can be seen in the ...
user avatar
  • 203
0 votes
1 answer
101 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' ...
user avatar
0 votes
1 answer
104 views

Where is the Javascript attribute window._wpCustomHeaderSettings defined?

I'm trying to modify the behaviour of the Javascript function defined in wp-includes/js/wp-custom-header.js, to change the minimum windows height to display a video header. For this, I need to modify ...
user avatar
0 votes
1 answer
99 views

is_page_template showing partial results

Trying to load conditional content thru the header, but only front page is being identified correctly. Archive, post and custom type templates aren't. Using Query Monitor to identify correct ...
user avatar
  • 181
0 votes
0 answers
286 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 ...
user avatar
1 vote
2 answers
560 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 ...
user avatar
0 votes
1 answer
316 views

Embed Form In Header

I'm using WordPress theme Twenty Ninteen and trying to make a travel blog with the help of travel affiliate API get from Travelpayouts. <script charset="utf-8" src="//www.travelpayouts.com/widgets/...
user avatar
  • 103
0 votes
0 answers
19 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....
user avatar
  • 107
1 vote
2 answers
2k 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/...
user avatar
  • 115
0 votes
1 answer
263 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="<...
user avatar
  • 1
1 vote
1 answer
204 views

Is there a way of registering a default logo image for custom-logo?

Similair to custom-header with register_default_headers() in version 4.5 and above.
user avatar
  • 25
0 votes
1 answer
483 views

How do I remove header/page-title image in farvis theme? [closed]

I'm working with farvis theme. In that theme I removed background image in customize >> page titles & Breadcrumbs >> background image >> remove. But after I clicked save and reloaded the site ...
user avatar
1 vote
0 answers
69 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 ...
user avatar
0 votes
2 answers
1k views

Insert HTML in post, below nav bar but above content?

I'm trying to insert a dropdown (via HTML string) in to every post I have. I'd like to add it before the post information, but below the website nav. bar and header. In the screenshot, you'll notice ...
user avatar
0 votes
0 answers
26 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 ...
user avatar
  • 101
1 vote
1 answer
2k 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/...
user avatar
-2 votes
2 answers
142 views

Editing Header with a Page Builder [closed]

Is it possible to edit my site's header with a page-builder plugin, such as Page Builder, Elementor, or Gutenberg? I don't want to be stuck in the constraints of the theme and/or Wordpress's idea of ...
user avatar
1 vote
1 answer
105 views

My menu bar dissapeared with autooptimize [closed]

After setting up auto optimize my menu bar is gone. You can still click the buttons where they would be but it is invisible. Please help. This is a production website I can't have it like this for ...
user avatar
  • 111
1 vote
1 answer
24 views

Which header is served

I am using theme (Knowledgedesk) that includes a header.php in its child theme's directory. However the changes I make by editing header.php are not visibles. It cannot be the cache, I already checked ...
user avatar
  • 21
0 votes
1 answer
66 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 ...
user avatar
  • 41
1 vote
1 answer
514 views

How to Edit the style of header title of Twenty Eleven Theme?

I would like to change the style of Twenty Eleven theme's site title and site description. I tried with style.css file but nothing happens when I refresh the website in a browser. Then I found the ...
user avatar
  • 21
-1 votes
2 answers
2k views

How can I add a google play badge to my header and footer?

How I can add images or edit html for the header and footers within wordpress. I am looking in the header and footer sections under both "Theme Panel" and "Appearance" but can't figure out how to ...
user avatar
-2 votes
2 answers
65 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!
user avatar
1 vote
2 answers
192 views

Want to make header and footer CMS driven sothat Editors can modify its content from wordpress admin section

First time I am working on WordPress CMS but have fair experience in other CMS products such as Umbraco, Tridion , sitecore etc. I am using ACF (advance custom field) to create the content forms in ...
user avatar
  • 15
0 votes
2 answers
766 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 ...
user avatar
  • 1
0 votes
1 answer
36 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 ...
user avatar
  • 1
0 votes
0 answers
23 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 ...
user avatar
1 vote
1 answer
5k views

Changing custom logo link

I am trying to change my custom logo url on wordpress to go to a different website. I have tried many different ways to do this with php and child themes but every time I try something it just breaks ...
user avatar
  • 171
0 votes
1 answer
87 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?
user avatar
  • 72
0 votes
0 answers
95 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 ...
user avatar
  • 129
0 votes
2 answers
4k views

Dynamically changing logo on scroll function [closed]

I am migrating a static site over to WP. Currently I have a header function that changes the inverted logo to full color on user scroll using JS. See Function on scroll Current JS for Scroll function:...
user avatar
0 votes
1 answer
343 views

Automatically generate multiple image sizes for <picture> element

Suppose i want to implement a responsive header with compliance for multiple devices. To do so (with a beautiful result ofc), i need different versions of the picture, resized and cropped by their ...
user avatar