Logo works on all website pages except the home page:
https://www.earnergetic.com/
When I do browser inspect, I find image url on all website pages except the home page. Why its not inserted on the homepage header as well?
Thanks.
Kind regards,
Bassem Melika
]]>Thank you!
]]>In my child theme the logo html is specified in the “template-part-head” file. The original php code didn’t work:
<header id="site-header" role="banner">
<?php if (get_theme_mod('header-logo', '') != '') : ?>
<div class="rsrc-header-img">
<a href="<?php echo esc_url(home_url('/')); ?>"><img src="<?php echo esc_url(get_theme_mod('header-logo')); ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" /></a>
So I changed the child theme code to be the domain url instead:
<a href="https://collectiblesandmoreinstore.com"><img src="<?php echo esc_url(get_theme_mod('header-logo')); ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" /></a>
Then I changed the child theme code to the exact url instead:
<a href="https://collectiblesandmoreinstore.com/best-collectibles-store/"><img src="<?php echo esc_url(get_theme_mod('header-logo')); ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" /></a>
Then I changed the parent theme template-part-head to use the exact url also. Then I changed the img src php code to reference the specific media file url instead:
<a class="header-logo-link" href="https://collectiblesandmoreinstore.com/best-collectibles-store/"><img src=”https://collectiblesandmoreinstore.com/wp-content/uploads/2021/07/collectiblesandmoreinstore-logo.png” height=”110” width=”350” alt=”collectiblesandmoreinstore logo"/></a>
In addition, I have this code in my child theme functions.php:
add_theme_support( 'header-logo' );
function my_header_logo() {
$header_logo_id = get_theme_mod( 'header_logo' );
if ( $header_logo_id ) {
$header_logo_attr = array(
'class' => 'header-logo',
'itemprop' => 'logo',
'height' => 110,
'width' => 350,
'flex-width' => true,
'header-text' => array( 'site-title', 'site-description' ),
);
$size = getimagesize("https://collectiblesandmoreinstore.com/wp-content/uploads/2021/07/collectiblesandmoreinstore-logo.png");
$image_alt = get_post_meta( $header_logo_id, 'wp_attachment_image_alt', true );
if ( empty( $image_alt ) ) {
$header_logo_attr['alt'] = get_bloginfo( 'name', 'display' );
}
$html = sprintf( '<a href="https://collectiblesandmoreinstore.com" class="header-logo-link" rel="home" itemprop="url" title="Collectibles And More In-Store"/></a>',
esc_url( home_url( 'https://collectiblesandmoreinstore.com/best-collectibles-store/' ) ),
esc_html( get_bloginfo( 'name' ) ),
wp_get_attachment_image( $header_logo_id, 'full', false, $header_logo_attr )
);
}
elseif ( is_customize_preview() ) {
$html = sprintf( '<a href="https://collectiblesandmoreinstore.com" class="header-logo-link" style="display:none;"><img class="header-logo"/></a>',
esc_url( home_url( 'https://collectiblesandmoreinstore.com/best-collectibles-store/' ) )
);
}
return $html;
}
add_filter( 'get_header_logo', 'my_header_logo' );
Additionally, I have cleared my site cache, browser cache, server cache, and image cdn cache. Please tell me what I am doing wrong. I need please to have my logo link back to my domain url (homepage/landing page).
Thank you for your assistance.
]]>I have tried deleting and re-uploading it lets me crop it and the mobile version is showing is fine.
I refreshed my cache and checked the forum but can’t see an answer to help me? I tried Safari and Google Chrome.
Help! please
Thanks
Hayley
I have the issue, that my pre-defined header logo
.header-logo a {
font-size: 40px;
}
shows up on desktop devices very well (originally 150px as found in the style.css), but I have issues with any mobile device that the font size doesn’t scale accordingly.
Is there any suggestion how to make the header-logo appear smaller on mobile devices i.e. tablets AND smartphones as well?
Thanks in adavance.
]]>I am using Illustratr for several blogs. On some of my installs, the option to add a logo image is not available while on others it is available. I’ve tried re-installing the theme several different ways including manually via FTP, disabling plugins, deleting cache, etc.
On some installs I simply do not have the option of adding a logo! I’m stumped.
I have a screenshot of the working and non-working menus here:
https://www.andrewautendrawing.com/logo_issue.jpg
THANKS
]]>I have some troubles with the logo header.
I have two sites : first made 1 year ago, works well. (www.avocat-mazzierli.fr)
I made the second with the same structure and extension.
I param the logo, It doesn’t appear.
I desactivate oceanwp, it appears.
I reactivate oceanwp, it desappears.
(dev.cyberpme.fr)
I try so many things, desactivate all addon and extension. Same move.
I reinstall a new wordpress (www.cyberpme.fr), fresh install, params some things, installs elementor, and oceanwp. Works well until I make my menus…
I uncheck the menu header location. My header logo doesn’t appear anymore.
Any help is welcome.
Thanks in advance.