Good morning!
I installed the plugin and saw that it works with videos, that’s what interests me. However, the video appears above the template header, but I would like it as a background video header in the template, with the logo and menu inside. Is this possible? The template is called SKT Gym, and includes a background image in the header or a slideshow.
<body <?php body_class(); ?>>
<div class="header">
<div class="container">
<div class="logo">
<?php skt_gym_the_custom_logo(); ?>
<div class="clear"></div>
<?php
$description = get_bloginfo( 'description', 'display' );
?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
<h2 class="site-title"><?php bloginfo('name'); ?></h2>
<?php if ( $description || is_customize_preview() ) :?>
<p class="site-description"><?php echo esc_html($description); ?></p>
<?php endif; ?>
</a>
</div>
<div class="toggle"><a class="toggleMenu" href="#" style="display:none;"><?php esc_html_e('Menu','skt-gym'); ?></a></div>
<div class="sitenav">
<?php wp_nav_menu( array('theme_location' => 'primary') ); ?>
</div><!-- .sitenav-->
<div class="clear"></div>
</div> <!-- container -->
</div>
The class is specified in the ccs like this:
.header {
background: url(https://www.dofitmind.com/wp-content/uploads/2024/06/DoFitMind-Header.jpg) no-repeat;
background-position: left bottom;
background-size: cover;
height: auto-flow;
}
I tried shortcode several ways in header.php but failed. How could this be done?
Thanks, Stefano
]]>Hello. I’m currently using Unique Headers plugin, it works well for the limited options it covers, pages and posts, but it does not offer the option to provide a unique header for search results pages, or for the “results” page at the top of a selection of posts, or for error pages, etc.
Does your plugin offer those options?
If so, would your plugin conflict with Unique Headers, as I would prefer not to do all that work over again, just leave it in place, and add yours to add headers ot the other functions. I wrote to Unique Headers author to see if he was planning an update (or could do custom work in this case), no answer as of weeks later.
Thanks for your time.
]]>If you go to other pages, WP Header Images works fine, but it is not working on this one page, and I can find no reason why. I checked the source code of the rendered page, and it looks like the image for this page is not being called, and it is instead using the default image.
It works on the following pages:
https://sandiegoballet.org/shows/the-nutcracker/
https://sandiegoballet.org/shows/ritmos-latinos/
It does not work on this page:
https://sandiegoballet.org/shows/jungle-book/
Hola buenas tardes, estoy teniendo problemas con el plugin ya que la imagen que selecciono para el blog no sale y me la cambia por la predeterminada, si la oredeterminada pongo la de imagen de la tiende me aparece en el blog y en la tienda.
?Que solucion tiene?
Hi,
I love this plugin and have used it before, and I don’t know if what I am seeing is the plugin or the theme. The website is hidden behind an under construction page so you won’t be able to see it.
At this point it’s a three page site. The home page and blog each have their own rules. This leaves the About page where when you scroll down the page the header stays in place, effectively blocking the upper half of the viewport. Is your plugin capable of this? Or should I be talking with the theme builders? Everything else is going well…
Thank you!
]]>Phone header image showing up on desktop. I was not using the phone images for header after placing images in all desktop pages where showing the smaller image.
]]>1. The headers display just fine on desktop, but they are not responsive on mobile phones or even when the browser window is made smaller.
2. The video does not display on the home page in mobile devices.
(see my homepage on mobile: https://conferencewebcastingcompanies.com
Note: the theme I am using is Adonis by Catch Themes.
Thanks.
The Gulri Slider is not being displayed on the page header and is only showing the code text(?)
]]>1. The headers display just fine on desktop, but they are not responsive on mobile phones or even when the browser window is made smaller.
Note: the theme I am using is Adonis by Catch Themes.
]]>What can be the problem if I add new pages I get no possibility in the overview Header Picture to select the new created page? So it��s not actualized and I can not add a header picutre for this page. SO at least I can��t see the new page in WP Header Images Overview for all pages.
]]>hello Fahad, I installed WHI and selected images for a few pages. For those pages the selected image is shown but immediately after the ‘default’ header image is shown. Pages with no selected images show only the default header image. I suppose i wrongly inserted the code line <?php do_shortcode(‘[WP_HEADER_IMAGES]’); ?> in the wrong place in header.php of my theme Colinear. The code is as follows:
<?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package Colinear
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="https://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'colinear' ); ?></a>
<header id="masthead" class="site-header" role="banner">
<div class="site-branding">
<?php colinear_the_site_logo(); ?>
<?php
if ( is_front_page() && is_home() ) : ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php else : ?>
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
<?php endif;
$description = get_bloginfo( 'description', 'display' );
if ( $description || is_customize_preview() ) : ?>
<p class="site-description"><?php echo $description; ?></p>
<?php endif;
?>
</div><!-- .site-branding -->
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<nav id="site-navigation" class="main-navigation" role="navigation">
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><span class="screen-reader-text"><?php esc_html_e( 'Primary Menu', 'colinear' ); ?></span></button>
<?php
// Primary navigation menu.
wp_nav_menu( array(
'theme_location' => 'primary',
'menu_id' => 'primary-menu',
) );
?>
</nav><!-- #site-navigation -->
<?php endif; ?>
<?php if ( get_header_image() ) : ?>
<?php do_shortcode('[WP_HEADER_IMAGES]'); ?>
<div class="header-image">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<img src="<?php header_image(); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="">
</a>
</div><!-- .header-image -->
<?php endif; // End header image check. ?>
</header><!-- #masthead -->
<div id="content" class="site-content">
Could you be so kind to have a look?
Thanks in advance and greetings,
Michiel Koekkoek
no me muestra la imagen esta pagina solamente en las demas si ?a que puede ser debido?
]]>ME GUSTARIA QUE FUERA DE 1000 PX POR 300 PX, PERO NO SE COMO HACERLO
]]>Hi,
Plugin is installed and working except for the Postsite.
Wanted situation: Link in menu go to the homepage with the latest posts site and display the header image.
Following situation and things I did:
In the WordPress reading settings you can choose to display the latest post or to have static sites with a homepage and a post site.
Case 1 – display latest post:
I got some WP-Sites that i put in the menu and can add an image Header to them. This works fine. But also I put a link to my Startpage in the menu. This menu item is shown in the list of the plugin, but the header image does not apply.
When i put the image under “Menu – Default/ Home”, my image is displayed on the homepage, but also in all separate post sites.
Case 2 – choose static sites with homepage and posts page:
Static homepage works fine header image. But static posts page does not work with image header. And here also: when i put the image under “Menu – Default/ Home”, my image is displayed on the static post site, but also in all separate post sites.
Is it a bug or a pro feature?
King regards
Alex
I am trying to follow the instructions for inserting a header image. I copied the code snippet and am trying to insert it into header.php, but when I click on the link header.php it says the requested theme does not exist. I am not sure what that means or what I should do from here.
]]>This is just one of the pages on the current deva-dev site intended to launch under a different name over the weekend. I’ve used this plugin before but this is for a new site.
At this point the plugin is installed and activated, the code snippet placed in the header via plugin and assigned an assortment of images to the pages. No images are showing.
One odd thing is that prior to adding the plugin the page intended to display posts had an ugly black banner with “Archives” on the banner. After adding the plugin this disappeared.
How can I get the images to show? Am I missing something?
]]>Hi I can’t work out why the image is so hard to see on this page compared to others.
Same on this one: link
i was using wp header image from a long time and updated yesterday, and now its not showing any images in my header please help me asap.
]]>Hello,
I used this plugin to implement it to help a lot but when I activate, it throwing error on the top of the header like.
]]>Hi,
i installed version 1.8.3 of your plugin. Works fine except for single posts (single.php). I have looked at the code but cannot find the right place to fix it. Pasted some snippets below.
Wordpress: 5.4
Theme: TwentySixteen – created a Child theme.
Page: header.php
<?php if ( get_header_image() ) : ?>
<?php
/**
* Filter the default twentysixteen custom header sizes attribute.
*
* @since Twenty Sixteen 1.0
*
* @param string $custom_header_sizes sizes attribute
* for Custom Header. Default '(max-width: 709px) 85vw,
* (max-width: 909px) 81vw, (max-width: 1362px) 88vw, 1200px'.
*/
$custom_header_sizes = apply_filters( 'twentysixteen_custom_header_sizes', '(max-width: 709px) 85vw, (max-width: 909px) 81vw, (max-width: 1362px) 88vw, 1200px' );
?>
<div class="header-image">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<img src="<?php header_image(); ?>" srcset="<?php echo esc_attr( wp_get_attachment_image_srcset( get_custom_header()->attachment_id ) ); ?>" sizes="<?php echo esc_attr( $custom_header_sizes ); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
</a>
</div><!-- .header-image -->
<?php endif; // End header image check. ?>
</header><!-- .site-header -->
Page: single.php
<?php
/**
* The template for displaying all single posts and attachments
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
*/
get_header(); ?>
]]>
The following error message has appeared in the header since the update to 1.8.2:
Warning: array_key_exists() expects parameter 2 to be array, bool given in /homepages/39/d744599325/htdocs/WordPress/wp-content/plugins/wp-header-images/inc/functions.php on line 285
What can I do?
]]>I upgraded to the premium version.
The settings for custom images works for the main menu, however I would like to use it to customize product pages.
The product pages shows in the list, however when I add and image, and then press ‘save’ it doesn’t save that item. It comes back up as not being set. Post type product.
I have set the Taxonomy – product_cat but they save, but they do not show on the page.
Hi there!
I’ve supported a few users using your plugin today. It looks like after your recent update, an undeclared function was set on line 298 of your functions.php.
PHP Fatal error: Uncaught Error: Call to undefined function is_home_page() in /srv/htdocs/wp-content/plugins/wp-header-images/inc/functions.php:298
Adjusting is_home_page()
to the correct is_home()
resolves the issue but I suspect many just opt to deactivate your plugin.
Best,
Joshua
]]>The admin images were not showing … so I Needed to update admin-styles.css changed style line 147:
.wphi .wphi-settings > ul.menu-class > li > div.banner_wrapper span.dashicons{
font-size:60px;
position: absolute;
color: #006799 ;
}
to
.wphi .wphi-settings > ul.menu-class > li > div.banner_wrapper span.dashicons{
font-size:60px;
position: absolute;
color: #006799 ;
min-height:300px;
}
]]>
Hello.
Since midday I have received the following error message from my WordPress installation:
An unexpected fatal error occurred on the site.
Fatal error: Uncaught Error: Call to undefined function is_home_page () in /wp-content/plugins/wp-header-images/inc/functions.php:298
Stack trace:
# 0 /wp-content/plugins/wp-header-images/inc/functions.php(360): get_header_images_inner ()
# 1 /wp-includes/shortcodes.php(325): get_header_images (”, ”, ‘WP_HEADER_IMAGE …’)
# 2 [internal function]: do_shortcode_tag (array)
# 3 /wp-includes/shortcodes.php(199): preg_replace_callback (‘/ \\ [(\\ [?) (WP_HEA …’, ‘do_shortcode_ta …’, ‘[WP_HEADER_IMAG …’)
# 4 /wp-content/themes/lawyeriax/header.php(42): do_shortcode (‘[WP_HEADER_IMAG …’)
# 5 /wp-includes/template.php(722): require_once (‘/ home / xxxxxxxxx / …’)
# 6 /wp-includes/template.php(671): load_template (‘/ home / xxxxxx / …’, true)
# 7 /wp-includes/general-template.php(41): locate_template (array in /wp-content/plugins/wp-header-images/inc/functions.php on line 298
A backup didn’t do anything … I haven’t made any changes recently.
I hope the bug can be fixed ??
]]>Good Day,
I am attempting to get this plugin working by category, but I think the Theme I am using is blocking it somehow. The theme is “The Box Plus” by DesignLabs (https://www.designlabthemes.com/the-box-plus-wordpress-theme/). I currently have this plugin setup in auto and it does not work. The theme seems to use the customizer correctly. I have also tried applying the code snippets in the page and cannot get that to work either. It seems something is completely blocking this plugin.
What can I do to get it working, short of changing themes?
Thanks,
Josh
]]>Hello,
I am using the free version and it puts the header where I want.
I have created a mobile version version of the image which I want to display at a certain breakpoint.
How can I go about doing this, as I am bit confused on the templates in the plugin. Also would I need the premium version?
Thank you
]]>Hello,
I’ve set new header image for pages, and category. I’ve choosed an image for each taxonomy, but i can’t find a way to display any image as header on posts.
Can you help me ?
Thank you in advance for your answer.
]]>Hi,
The site I am working on is currently hidden by a Coming Soon page. I have added headers to all of the pages��a great improvement. Thank you for that.
The problem is that I would also like to give posts a banner image, with the image dictated by the assigned category. In the admin of the plugin I have done this, but the posts aren’t displaying with the images.
]]>Hello everyone,
I am trying to change the header image in each category, but I can��t do it.
I cannot find an option to either remove the header image or add a new one.
I installed the ��WP header image�� plugin, but it let me only choose some default images, and I couldn��t find a way to add new ones.
I am also trying to remove the ��Category�� text from the header image, as well as the ��test 6�� text, which is a title of one of my test posts.
I have deleted my cache and also my browser history and cookies, but it didnt help.
I am a bit confused ??
Any help would be greatly appreciated ??
]]>