Trying to add a navigation Home icon Failing to work.
Here's my nav:
<nav id="site-navigation" class="main-navigation" role="navigation">
<h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
<a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
</nav><!-- #site-navigation -->
I've tried adding:
<img src="/home.png"/>
to the second line, still no success.
I have tried:
<img src="http://fullpathtoimage/home.png" /><h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
Thanks
<img>
? – Krzysiek Dróżdż♦ Dec 2 '13 at 11:46<img src="http://fullpathtoimage/home.png" /><h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
Have you considered setting it as a background image, then declaring in in css? – user38891 Dec 2 '13 at 16:51