[Theme: Twenty Twelve] Replace Site Title With Image
-
I am totally new to this so please bear with me. I have installed Twenty Twelve and created a Child Theme. I want to replace the Site Title with an Image and have made the following changes I found on a closed thread :
edit header.php
insert this before <hgroup>:
<img class=”site-logo” src=”<?php echo get_stylesheet_directory_uri(); ?>/images/site-logo.png” alt=”site logo” />
this assumes that the site-logo.png is saved in an /images folder of the child theme.add this to style.css to hide the site title and tag line and restrict the size of the logo for small screens:
.site-header hgroup { display: none; }
.site-logo { max-width: 100%; height:auto; }This has worked to a point but the image appears as a file icon as opposed to the image itself. Can someone explain where I have gone wrong.
- The topic ‘[Theme: Twenty Twelve] Replace Site Title With Image’ is closed to new replies.