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 ...
0
votes
1answer
18 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/...
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
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
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
1
vote
1answer
21 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.
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
1answer
29 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 ...
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 ...
0
votes
2answers
86 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 ...
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
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/...
-2
votes
2answers
41 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 ...
1
vote
1answer
14 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 ...
1
vote
1answer
23 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 ...
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
204 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 ...
-1
votes
2answers
403 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 ...
-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
2answers
63 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 ...
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 ...
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
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 ...
1
vote
1answer
2k 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 ...
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
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
2answers
2k 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:...
0
votes
1answer
214 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 ...
5
votes
1answer
2k views

Adding custom fields to the header.php

I want to add advanced custom fields/custom fields to my header.php as it contains text and phone numbers that we may change - I have tried referencing them but it didn't work. I have also Googled and ...
0
votes
1answer
80 views

WordPress add script with custom type (x-jquery-tmpl)

I would like to a add the following script into WordPress: <script type="text/x-jquery-tmpl"> ... </script> but using: wp_add_inline_script( 'my-script', '...' ); will give me: &...
0
votes
1answer
708 views

Child theme does not override parent theme values (custom-header)

I have issues with putting my own default custom-header image for my child theme, but am unable to do so without altering the parent theme (twenty seventeen). I'm able to remove the custom header ...
0
votes
2answers
914 views

Conditional Site Logo(Category Based)

I'm trying to setup a multi-topic blog. My topics are: Food Lifestyle Fiction Digital Reality I have 4 different logos for each category and want to display them depending on the category of the ...
1
vote
1answer
485 views

Hide header texts (Title & Tagline) in custom-header.php

I am currently trying to enhance my theme development skills and still have a lot to learn in php. I'm investigating the code of Underscores and Twenty Seventeen themes. I simply do not understand ...
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
3answers
2k views

adding script tag in head of specific pages

I just added a new page which needed some javascript to pull json(with setInterval) and display content in that page div tag, On digging i discovered we can add script tag in themes/header.php file . ...
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 ...
1
vote
3answers
449 views

How to Handle CSS for Multiple Header header.php Files?

So, I'm building a new theme based on Underscores. So far, I've managed to get ACF Pro to call different header files from a dropdwon selction in the Options page but, now I am faced with the task of ...
0
votes
1answer
298 views

How to disable site title and description when custom header is uploaded on the customizer?

I'm builting my own wordpress theme and I'm trying to create a function with an if else statement to diseble the title and description of the blog when i have a custom header. if I have a custom ...
0
votes
2answers
31 views

Social icons on my index page don't take visitor to specific site(s) [closed]

My index page has three button on top upper right corner. They are Facebook, Twitter and RSS. I have accessed my header.php to add the appropriate URL's for both Facebook & Twitter (I did not add ...
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 ...
1
vote
1answer
624 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 ...
7
votes
1answer
125 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 ...
1
vote
1answer
1k 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
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' ...
2
votes
2answers
4k 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: ...
0
votes
1answer
120 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 ...
1
vote
2answers
1k 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 (...