Change Footer logo only

Asked

Viewed 35 times

0

I’m using a theme that has as default memas logo for header and footer, I wanted to change only the logo of footer,a down the current code referring to the footer logo.

        <a class="brand pull-left" href="<?php
        echo esc_url( home_url( '/' ) ); ?>">

            <?php
            $logo = get_theme_mod( 'bauhaus_logo_small' );
            $logo_text = get_theme_mod( 'bauhaus_logo_text' );
            $logo_name = get_theme_mod( 'bauhaus_logo_name' );
            if ( isset( $logo{2} ) ) {
                ?>
                <img alt="" src="<?php echo esc_url( $logo ); ?>">
                <div class="brand-info">
                    <div class="brand-name"><?php if ( isset( $logo_name{0} ) ) {
                            echo wp_kses_post( $logo_name );
                        } ?></div>
                    <div class="brand-text"><?php if ( isset( $logo_text{0} ) ) {
                            echo wp_kses_post( $logo_text );
                        } ?></div>
                </div>

                <?php
  • Because within that CRS <img alt="" src="<?php echo esc_url( $logo ); ?>"> you don’t put the path of your logo in the same kind of hand <img alt="" src="img/logo-footer.png">?

1 answer

0

Just edit the logo on <img alt="" src="<?php echo esc_url( $logo ); ?>">, can exchange <?php echo esc_url( $logo ); ?> by the image path you want, or if it’s just the image size, you can fix by CSS.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.