Arclite is still by far my favourite theme available on WordPress. At some point in time I wanted to have both my snazzy Sigma/E logo up along with the logotype “Ed’s Big Plans”. Arclite doesn’t allow this (at least there is no such setting in this version), so after some more digging in header.php, I found this chunk of code.
<?php // logo image? if(get_option('arclite_logo')=='yes' && get_option('arclite_logoimage')) { ?> <h1><a href="<?php bloginfo('url'); ?>/"> <img src="<?php print get_option('arclite_logoimage'); ?>" title="<?php bloginfo('name'); ?>" alt="<?php bloginfo('name'); ?>" /></a></h1> <?php } ?>
The above is code that checks if the user has selected to use an image logo– when this logo is available, Arclite displays the image and moves on down the page. Alternatively…
<?php else { ?>
<h1><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>
<?php } ?>
…when the user has selected not to use an image, Arclite handily prints out logotype.
Since I want Arclite to render both the image logo and logotype when they’re available, I’ve simply slapped the logotype printing in with the former snippet of code to make this…
<?php // logo image? if(get_option('arclite_logo')=='yes' && get_option('arclite_logoimage')) { ?> <h1><a href="<?php bloginfo('url'); ?>/"> <img src="<?php print get_option('arclite_logoimage'); ?>" title="<?php bloginfo('name'); ?>" alt="<?php bloginfo('name'); ?>" style="vertical-align:text-bottom;" /> <?php bloginfo('name'); ?> </a></h1> <?php }
Quick and painless
Some inline CSS was used to get the logo and the text to sit inline with one another; by default, the logo goes out of line up high and the text goes down low.
Note that when one chooses not to use an image logo in Arclite’s settings, it just goes back to the default logotype behaviour– exactly as you’d expect.
Ed's Big Plans