WordPress.org

Forums

Match
Changing Site brand text with image (2 posts)

  1. hardcoredesign
    Member
    Posted 1 year ago #

    Hi, I like to change Site brand text with image/logo/. How can I do it? Thank you!

  2. Zenoble
    Member
    Posted 11 months ago #

    I'm not sure about what you really want. If you are looking for an image instead of a text in the header, you have to create a child theme, download the header.php file, upload your logo, and replace the bloginfo('name') by your image file. Something like this :

    Replace default site-title :
    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>

    By this :

    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="you-image-path" alt="your-image-alt"></a>

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.