badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

How to add a logo before web name and web description?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27142
    ludveek
    Participant

    Hello.

    Could you please advice me how to add a small logo in front of web page name and description in header?

    Thank you very much in advance.

    ludveek

    #27153

    Hi ludveek,

    This feature is not available in our theme. You can either display image or text only. We have designed our theme this way. It needs code customization and you need to hire a developer.
    Before making any changes in the code first of all create a child theme and then customize the code to be safe from data loss while updating to new version.

    Thank you!

    #27160
    ludveek
    Participant

    Hi,

    Could you please give a hint in which file (code part) could such a modification be done?

    Thanks a lot in advance.

    #27199

    Hi ludveek,

    go to theme folder -> library-> structure -> header-extension.php you will see this below code
    ` <hgroup id=”site-logo” class=”clearfix”>
    <?php
    if( $options[ ‘header_show’ ] != ‘disable-both’ && $options[ ‘header_show’ ] == ‘header-text’ ) {
    ?>
    <h1 id=”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>
    </h1>
    <?php $site_description = get_bloginfo( ‘description’, ‘display’ );
    if($site_description){?>
    <h2 id=”site-description”><?php bloginfo( ‘description’ ); ?></h2>
    <?php } ?>
    <?php
    }
    elseif( $options[ ‘header_show’ ] != ‘disable-both’ && $options[ ‘header_show’ ] == ‘header-logo’ ) {
    ?>
    <h1 id=”site-title”>
    <a href=”<?php echo esc_url( home_url( ‘/’ ) ); ?>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”>
    <img src=”<?php echo $options[ ‘header_logo’ ]; ?>” alt=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>”>
    </a>
    </h1>
    <?php
    }
    ?>`

    Now you need to customize your the above code in header-extension.php

    Before making any changes in the code first of all create a child theme then only customize the code. So that while udpating to new version you will not lose any data.

    Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.