changed logo link to xarxaprod manually

This commit is contained in:
jorge-vitrubio 2023-02-03 11:40:12 +01:00
parent 87a7100548
commit 9d6b78cbb4
1 changed files with 10 additions and 3 deletions

View File

@ -29,14 +29,21 @@
<div class="main">
<div class="site-branding">
<?php
the_custom_logo();
// the_custom_logo();
// https://developer.wordpress.org/reference/functions/the_custom_logo/#comment-2037
if( has_custom_logo() ):
$image = wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' );
?>
<a href="https://xarxaprod.cat" title="Xarxa d&rsquo;espais de procucció i creació de Catalunya" class="custom-logo-link"><img class="custom-logo" src="<?php echo esc_url( $image[0] ); ?>" /></a>
<?php
endif;
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>
<h1 class="site-title"><a href="https://xarxaprod.cat" title="Xarxa d&rsquo;espais de procucció i creació de Catalunya">Xarxaprod</a></h1>
<?php
else :
?>
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
<p class="site-title"><a href="https://xarxaprod.cat" title="Xarxa d&rsquo;espais de procucció i creació de Catalunya">Xarxaprod</a></p>
<?php
endif;
$ofisuport_description = get_bloginfo( 'description', 'display' );