Comment on WordPress Theme Development by SEO Dave.
If you put your code between code tags CODE —- /CODE it should render it correctly without having to edit the code (can be a bit temperamental). I edited your code.
If you look at the Talian 5 code I used you’ll see a lot of if statements that I’m not clear if your code has removed them.
Original Talian 5 header code.
<?php if (is_page("archives") || is_year() || is_month() || is_day() || is_home() || is_404() || is_author()) { ?><h1><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></h1><?php } ?> <?php if (is_category() || is_single() || is_page() || is_search()) { ?><span><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></span><?php } ?> <?php if ( function_exists('is_tag')){ ?><?php if (is_tag()) { ?><span><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></span><?php } ?><?php } ?>
Try something like this
<?php if (is_page("archives") || is_year() || is_month() || is_day() || is_home() || is_404() || is_author()) { ?><h1><a href="<?php echo get_settings('home'); ?>"><img alt="<?php bloginfo('name'); ?>" src="/images/logo.png" /></a></h1><?php } ?> <?php if (is_category() || is_single() || is_page() || is_search()) { ?><span><a href="<?php echo get_settings('home'); ?>"><img alt="<?php bloginfo('name'); ?>" src="/images/logo.png" /></a></span><?php } ?> <?php if ( function_exists('is_tag')){ ?><?php if (is_tag()) { ?><span><a href="<?php echo get_settings('home'); ?>"><img alt="<?php bloginfo('name'); ?>" src="/images/logo.png" /></a></span><?php } ?><?php } ?>
The above basically replaces the anchor text with an image.
You will also have to edit your CSS to take into account the above isn’t just a H1 tag, it’s span tags as well. The H1 code is used on the home page and monthly archives basically, the span code for posts,pages and categories and tags which have a H1 tag using the name of the post or cat/tag and we don’t want the site name asa H1 on those pages. Didn’t check your CSS in detail, but as is I think it would work on the home page and archives, but not posts and pages etc…
Possible SEO issue with this is it’s not clear how Google treats image links with keyword rich alt text surrounded by a H1 header in place of a text link with keyword rich anchor text surrounded by a H1 header.
Anchor text is visible, alt text is semi-hidden, if I had to hazard a guess I’d say it’s given less SEO value than anchor text and the H1 might even be ignored – I don’t know which is why I stick with either body text or anchor text within the H1, you can be reasonably confident Google counts it as a H1.
David
More Comments by SEO Dave
Responsive WordPress Theme Development
WordPress SEO and Google PageSpeed Insights
Have spent a LOT of time in development and have solved most onsite issues.
Currently working on performance issues (the sort you get from Google PageSpeed Insights), have added a new Performance options page to Stallion with advice and tools. For …
Continue Reading Performance WordPress Theme Development
Responsive WordPress Theme Development
WordPress Theme CSS Color Switcher
Working on a new feature to add CSS color overrides.
Just started on the feature, so far added the ability to change the background colors independent of the Stallion color scheme selection. Using a color selector wheel, so easy to choose …
Continue Reading Performance WordPress Theme Development
Responsive WordPress Theme Development
WordPress Theme Featured Slider Mobile Responsive
Managed to make the Stallion Featured slider mobile responsive, in Stallion 8 won’t matter which Stallion layout or colour scheme used the Stallion featured slider will scale to fit the smaller mobile and tablet windows.
When viewed in a 480px screen …
Continue Reading Performance WordPress Theme Development
Responsive WordPress Theme Development
Mobile Responsive WordPress Theme
Converting the Stallion theme to mobile responsive code, for those not familiar with what Mobile Responsive means it’s changing the layout on the fly to match the screen size.
Currently Stallion 7.* lacks responsive code, it’s best viewed in a device …
Continue Reading Performance WordPress Theme Development
Responsive WordPress Theme Development
Talian 5 SEO Theme vs Stallion SEO Theme CSS Layouts
If you bought Talian three years ago you were automatically upgraded to Stallion when I was looking for feedback on Stallion 6.0: basically when Stallion 6 was in beta release gave all Talian 5 users Stallion for free. Info about …
Continue Reading Performance WordPress Theme Development
Responsive WordPress Theme Development
Stallion Theme Staggered 3 Column WordPress Layout
When I first read the comment (via email) thought it was for the Stallion Theme which has a Talian colour scheme and the 3 column layout and answered the question for Stallion, Doh!
As you’ll read below it’s not easy for …
Continue Reading Performance WordPress Theme Development
Responsive WordPress Theme Development
WordPress SEO : Use a H1 Widget to Replace the H1 Header Code
To add to the above if you wanted to keep it simple you could strip out all the H1 code and add a replacement H1 as a widget.
In the Stallion SEO Theme there’s a lot more options and layouts than …
Continue Reading Performance WordPress Theme Development
Responsive WordPress Theme Development
Stallion WordPress SEO Theme Support
Got your email you are a Stallion theme user for Stallion support go to the Stallion SEO WordPress Theme Support otherwise it gets confusing.
The Stallion theme style.css file isn’t used like it is with Talian
You’d need to add it to
style-delicate.css
to …
Continue Reading Performance WordPress Theme Development
Responsive WordPress Theme Development
WordPress Theme CSS Code
Works when I use that type of CSS.
What site you using it on?
David …
Continue Reading Performance WordPress Theme Development
Responsive WordPress Theme Development
WordPress Recipes Theme
I run a couple of recipe sites and they do quite well traffic wise. I’m lazy and not added photos or videos :-)
Depending on how you organize it, it will probably look a bit like one of my wife’s sites …
Continue Reading Performance WordPress Theme Development
Responsive WordPress Theme Development
How to Change a WordPress Theme Header Image
It’s difficult to change the header in Talian 5, but easy in Stallion 6.
Stallion has header images (over 20 of them + custom slots for your header images), the search form can be disabled, navigation links moved to the top …
Continue Reading Performance WordPress Theme Development
Responsive WordPress Theme Development
How to Change the Talian 5 Banners into a Clickable Banner Link
Change the Talian 5 banners into a clickable banner link
Edit the landscape-images.php file and replace:
<?php if(bannerson()==1){ ?><div id=”put-image-here” style=”background: url(<?php bloginfo(‘template_url’); ?><?php _e(‘/banners/’ . bannerset() . ‘/landscape-‘); ?><?php echo(rand(1,bannersize())); ?>.jpg)”></div>
With
<?php if(bannerson()==1){ ?><div id=”put-image-here”><a href=”http://www.domain.com/”><img src=”<?php bloginfo(‘template_url’); ?><?php _e(‘/banners/’ . …
Continue Reading Performance WordPress Theme Development