WordPress.org

Ready to get started?Download WordPress

Forums

Highwind
Header Logo in the middle (3 posts)

  1. sebastiansm
    Member
    Posted 9 months ago #

    Hi, thank you for the theme, is awesome!

    I used this code to remove the gravatar and add my own logo

    remove_action( 'highwind_header', 'highwind_site_title', 20 );
    add_action( 'highwind_header', 'my_custom_logo' );
    function my_custom_logo() {
    ?>
    <img src="path/to/image.png" alt="" />
    <?php
    }

    It works great, but the logo align on the left and i want it in the middle of the header. Can you help me, please?

    thank you!

  2. Tareq
    Member
    Posted 9 months ago #

    Hi, this should work:

    <img src="path/to/image.png" alt="" style="margin 0 auto;" />

    Let me know,

    Tareq

  3. adelehbt
    Member
    Posted 8 months ago #

    Hi,

    Where do we have to put this code ?
    In the childtheme ?

    Thanks

Reply

You must log in to post.

About this Theme

About this Topic

Tags