Questions tagged [header-image]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

Changing Theme produced a problem on some pages

When I changed the Theme to Twenty Seventeen a few of the pages had the following text instead of the Header image: Notice: Only variables should be assigned by reference in /var/www/wp-content/...
chrisgray13's user avatar
0 votes
0 answers
72 views

How to force Cover block to use the full size image resolution

Is there anyway to force Cover block to use the full size image resolution? It changes it based on the screen dimension and some times it gets so blurry which is awful! Should I write some lines of ...
Poorya Ghorbani's user avatar
0 votes
0 answers
55 views

How to get dimension of Logo and Crest

I want know width and height from (images) Logo and Crest, current I use standard PHP function getimagesize in my theme /** * Get dimensions for image */ if (!function_exists('get_image_dimensions'...
salsan's user avatar
  • 121
0 votes
2 answers
315 views

website images getting corrupt automatically

I have just migrated my website from hostinger to hostinger manually. And now when I upload any picture on my website the photos getting corrupted automatically. Although the picture was shown on my ...
GULSHAN's user avatar
0 votes
1 answer
287 views

Custom Theme functions.php – Using add_settings_field and input type="file" to set custom logo

I've seen several examples for "add custom logo" to wordpress theme, most of which use this basic code, specifically function display_logo_element() { ?> <input type="...
Sylvester DeMouser's user avatar
0 votes
1 answer
61 views

How Change Wordpress header image from admin menu

I have created a section inside the admin menu, Where it is possible to upload the logo, How can I replace this uploaded image with wordpress logo(header_image())? //admin dashboard page <img alt=&...
pooyan golkar's user avatar
1 vote
1 answer
832 views

Add more then one site logo - custom-logo theme support

We can add one site logo to site customize with add_theme_support( 'custom-logo' ); How can add another logo? Seems like the custom-logo theme support only allows to add one site logo and I need to a ...
BenB's user avatar
  • 795
0 votes
1 answer
22 views

Is there a standard technique or API for getting the site header image?

There is this function: get_header_image() which can be called from within WordPress. Is there a way to access this externally, i.e. from the API? The use case might be a header for an external RSS ...
John Dee's user avatar
  • 503
0 votes
2 answers
208 views

How to echo images Urls from a wordpress post, that are relally in the post

I have a question. I use the following code to output the image URLs of a wordpress post. The image URLs are related to the "attached images" of a wordpress post and not the ones that are ...
soo29's user avatar
  • 1
0 votes
1 answer
418 views

How to make my banner (logo image) position on the center

I'm trying to redesign my website, and I'm not sure how to make the banner (logo image) positioned on the center of the website. I tried editing the CSS of the theme to set it do display: flex and the ...
someone12321's user avatar
0 votes
1 answer
702 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 ...
Rasmus Lian's user avatar
0 votes
1 answer
207 views

Add custom version to an image

I have scoured the web for plugins and articles to help me solve something that seems pretty basic, but couldn't find anything. I want a way to create custom versions, particularly sizes, of an image ...
user3505886's user avatar
0 votes
1 answer
139 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 ...
beta's user avatar
  • 203
0 votes
1 answer
21 views

Header banner link is forwarding to dev. subdomain, how do I change this?

bear with me I'm very new with wordpress and have just been thrown into something where I'm a bit over my head. We have a site built with fusion builder using the Avada theme. Our headers use a ...
Jeremy Kalgreen's user avatar
0 votes
1 answer
148 views

How to set a header image?

I can get the image header with get_header_image() ex: wp eval "echo get_header_image();" But how can I change that ? I tried set_header_image(url) and Custom_Image_Header::set_header_image ...
yarek's user avatar
  • 127
0 votes
1 answer
37 views

How to get the Page featured image, not the Post featured image

I currently have in my header.php: <?php $backgroundImg = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'header-large' ); ?> <?php if ( has_post_thumbnail() ) { ?> &...
iamonstage's user avatar
0 votes
2 answers
202 views

Replace header with large image on home page only, using Genesis child theme

Having looked at Show TwentyEleven header image only on home page, Replace Home with image link inside custom header menu and more, I don't see what I am trying to do. We want to replace the header ...
JimLohse's user avatar
0 votes
1 answer
501 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 ...
Anudeepsyamprasad's user avatar
0 votes
1 answer
13 views

Exiting Customizer alert

I get an browser alert when exiting Customizer that my changes will be lost if I navigate off this page. Everything is saved in customizer, so when I navigate back to it, it shows the logo and ...
R. Koljo's user avatar
0 votes
1 answer
127 views

Restoring Wordpress Header Image

Wordpress twenty thirteen theme. I have no idea how this arose. The opening page had a header image which started just beneath the green menu bar to just above the main central (yellow) text panel. ...
Graham's user avatar
  • 1
-1 votes
1 answer
3k views

header image sizing in twenty seventeen theme

I've seen some posts about resizing the header image but haven't managed to get anything to work. I want to reduce the height of the header image on the homepage as it takes up about 50% of the ...
colintr's user avatar
0 votes
1 answer
43 views

How to overlay a webcomic plugin on top of a header image?

I'm trying to build a (visually) simple webcomic site using the Hestia theme. I'd like to replace the text and links in the center of the banner image (the text that reads "Slick Material Design ...
Blackwood's user avatar
4 votes
4 answers
20k views

"There has been an error cropping your image" when cropping image

I am setting the header image in WordPress and when I click on the crop button, it shows me the following error: There has been an error cropping your image.
Dead Pool's user avatar
0 votes
1 answer
501 views

Image zoom vs cut in Twenty Seventeen header image

I am using the Twenty Seventeen theme and am trying to control the behavior of the header image/media for different screen resolutions/sizes. The standard seems to be just cutting the picture and ...
Benjamin BS's user avatar
0 votes
1 answer
26 views

Change the template of my Blog entries

My blog entries always display as background of the title an image that I'd like to eliminate. I'd like to have only the title and below the image selected by me in every entry. How could I eliminate ...
Stefano's user avatar
  • 91
0 votes
1 answer
194 views

Header background image just stopped working

So for no reason by header background image stopped working. It doesn't display anything at all. I spent an hour debugging but couldn't find anything. I checked the network tab and can see that only ...
Limpuls's user avatar
  • 307
1 vote
2 answers
214 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 ...
Vinayak's user avatar
  • 15
0 votes
2 answers
1k views

header_image() with CSS

Forgive my ignorance in the matter, as i've only just started delving into wordpress. But, i was wondering if theres a way to use header_image() in CSS. So, for example my functions.php is allowing ...
Krono's user avatar
  • 103
0 votes
0 answers
109 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 ...
kaplan's user avatar
  • 129
1 vote
1 answer
3k views

Changing Header scroll height for Twenty Seventeen theme on ALL pages

I've been editing the Twenty Seventeen theme via a child theme on my Wordpress blog, and I've tried to adjust the scrolling height of the Header as it took up way too much space before. I wanted more ...
hessam zare's user avatar
0 votes
2 answers
994 views

Set a featured image as a replacement to the header image

I am setting a header image as a background image to the .blog__header block via inline styles in functions.php: $header_image = get_header_image(); if ( $header_image ) { $header_image_css = " ...
Deka87's user avatar
  • 131
0 votes
1 answer
244 views

Is it possible to take over a WordPress site if the old administrator is MIA?

I do have a username and password, yet cannot make key changes through the dashboard. For ex. I have not been able to change the site header image. I've gone through the steps I've found online to ...
Gloria Johanna D's user avatar
0 votes
1 answer
381 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 ...
Daniele Squalo's user avatar
0 votes
1 answer
127 views

get_header_image() causes "Prioritize visible content" issue in Page Speed Insights

I am trying to optimize my site's speed using PageSpeed Insights. I got the critical CSS inlined by using grunt criticalcss. That's all fine, but in my header, I use get_header_image() to show the ...
Jordan Carter's user avatar
0 votes
1 answer
91 views

Custom CSS rules only apply to home page

I have the following problem with my website. On bigger screens (1300px width and up) my logo in the header "collides" with the body. I have resolved the issue on my home page by adding the following ...
Robert Maidla's user avatar
11 votes
8 answers
32k views

How do I change the header image height in Twenty Seventeen?

How do I change the height of the header image (specified in the Header Media section) in the Twenty Seventeen Theme? Specifically I want to change it on the home page because here it fills up nearly ...
User's user avatar
  • 241
0 votes
1 answer
284 views

Change header image on a particular page

In my WP Project i have used "Multiple Domain Mapping" Plugin & "Woocommerce" Plugin. In my child theme i'm mapping the url of the pages which has a top level product category "furniture" with ...
Zammuuz's user avatar
  • 788
1 vote
1 answer
1k 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 ...
Chayan Biswas's user avatar
0 votes
0 answers
187 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' ...
Larry Lawless's user avatar
0 votes
1 answer
168 views

How to edit the header banner in the search page in woocommerce?

When I enter the search page , the link is https://www.travelairy.com/?s=test&post_type=product But at this page the function: $product_taxonomies = get_the_terms($post->ID, $queried_object-...
user3538235's user avatar
0 votes
1 answer
801 views

Header Logo Scaling

Im using customiser to load and image into the header of my theme, since its customiser its inserting it via css as a background image, however when loading it, it won't appear unless padding is added ...
Nicholas Ritson's user avatar
0 votes
1 answer
88 views

Get Two Sizes of Header Image

My theme uses header_image(); function to echo out a header image <img src="..."> it is set to 200x50px with add_theme_support(...); - all good here. My problem comes when I want to get the url ...
pbe's user avatar
  • 69
0 votes
1 answer
16 views

header .png doesn't upgrade

I uploaded the new header image via ftp, when it used to take effect immediately, today the header stay the same. Even though I have erased the website and browser cache, but nothing changed. Please ...
compil2rai's user avatar
1 vote
1 answer
890 views

Change header image loaded by jQuery to use HTTPS

My theme contains a parallax header image. How can I change the URL of the header image so that it uses HTTPS? I want to do it manually. Currently the URL is: http://example.com/themes/abc/header....
Cijo's user avatar
  • 119
0 votes
1 answer
2k 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, '...
me_digvijay's user avatar
0 votes
1 answer
571 views

Insert Facebook button into header [closed]

I am trying to add a Facebook button to the center of my header image. I have tried adding a link to my header.php on different sections, but it either displays the button above or beneath the logo, ...
CustomX's user avatar
  • 115
1 vote
0 answers
96 views

Getting the ID of header image, even when set to random

I was looking for a solution to reliably get the ID of the header image, either the user had choose a single or a random image. The only way i've found to do this relies on accessing a Wordpress's ...
Luis Martins's user avatar
0 votes
1 answer
112 views

Banner appearing on Pages but not Posts; call it conditional confusion

I have a banner image that appears on Pages that I want. However, I also have a Page designated as a Blog where it doesn't appear. Is there any way to have this banner appear on a Page that is using a ...
Chris's user avatar
  • 5
0 votes
0 answers
31 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 ...
Jornes's user avatar
  • 743
0 votes
2 answers
2k views

Multiple post image, echo url (path of image)

Currently I'm trying to create a large header (jumbotron) on my website. The large header is loaded as inline css with the following code: <div class="fill" style="background-image:url('<?php ...
rwzdoorn's user avatar
  • 375