Hello,
I need to remove the link from the main image of the header in the pages
I’m not sure what link you mean, do you mean header button?
Kind Regards, Roman.
of the header logo,sorry (My English is very bad) 🙂
Thanks @romanbon but in the header.php I don’t have the code for that topic, the one I have is this:
<?php if ( get_theme_mod('site_logo') ) : ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>"><img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" /></a>
<?php if ( is_home() && !is_front_page() ) : ?>
<h1 class="site-title screen-reader-text"><?php bloginfo( 'name' ); ?></h1>
<?php endif; ?>
-
This reply was modified 6 years, 4 months ago by
cerrajeros.
Hello, you can try to replace this row:
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>"><img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" /></a>
…with this:
<a title="<?php bloginfo('name'); ?>"><img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" /></a>
Please note that you have to override the modified header.php file in a child theme if you don’t want to repeat this modification after each theme update.
Kind Regards, Roman.