Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5371

    Hi,

    How do I add an image to the header – using code, so I can manually adjust the location, e.g., right-adjusted, left-adjusted, centered?

    Jack

    #49912

    Hey,

    I’d add the image code in header.php after following code:

    <?php
    /*
    * display the main navigation menu
    * modify the output in your wordpress admin backend at appearance->menus
    */
    $args = array('fallback_cb' => 'avia_fallback_menu');
    wp_nav_menu($args);
    ?>

    You can position the image by wrapping it in a div – i.e.like:

    <div class="banner">
    <img src="my-image.jpg" alt="" title="" />
    </div>

    At least add following css to css/custom.css:

    .banner {
    position: absolute;
    right: 0px;
    top: 90px;
    }

    #49913

    this saved my day. thanks!

    #49914

    Glad that I could help you :)

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Add image to header’ is closed to new replies.