• Resolved swiftevolutions

    (@swiftevolutions)


    I want to add an image that’s approx. 468×60 inside the navigation container. However, I don’t see a spot where I can do this inside the PHP. I’ve looked at the Functions.php, Header.php, and Index.php and was unable to find something. Can somebody tell me where to edit this please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author presscustomizr

    (@nikeo)

    Hi,
    You can use the ‘__nav_bar’ hook. Like this for example :

    add_action ( '__navbar', 'picture_in_navbar',20);
    function picture_in_navbar() {
    	?>
    	<div style="overflow:hidden; height:100px;display: inline-block;">
    		<img width="1000" src="https://eebfa6e5d2c5429094d6-4131c45348359b05377a52f08bbf10dc.r88.cf1.rackcdn.com/wp-content/uploads/2013/05/laverie-1200x500.jpg" class="attachment-slider-full" alt="laverie" style="" />
    	</div>
    	<?php
    }

    Play with the priority parameter (here 20) in add_action to place the image where you want.
    Hope this will help you.

    Thread Starter swiftevolutions

    (@swiftevolutions)

    That helped alot thanks. However, it made the navigation menu even BIGGER. Is there a way NOT to make the nav bigger by just adding an image?

    Thread Starter swiftevolutions

    (@swiftevolutions)

    Ty

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding Image inside Navigation’ is closed to new replies.