Ed's Big Plans

Computing for Science and Awesome

Archive for the ‘Arclite’ tag

Arclite Theme – Invisible Text in Submenu Fix

without comments

Brief: The Arclite WordPress Theme is great, but the default CSS for the submenu causes the text to be almost completely invisible when moused over. The fix is an easy edit in style.css.

ul#nav ul a:hover, ul#nav ul a:hover span,
ul#nav a.active ul a:hover span,
ul#nav li.current_page_item ul a:hover span,
ul#nav li.current_page_ancestor ul a:hover span,
ul#nav ul li.current_page_parent a:hover span,
ul#nav ul li.current_page_item a:hover span,
ul#nav ul li.current_page_parent li.current_page_item a:hover span{
  //color: #fff;
  color: #2d83d5;
  background: #CCCCFF;
}

To make the text look like a deep blue on light blue, I changed the default white colour for a:hover in the sub-menus section to match the text colour of the blue in the rest of the theme plus a lighter blue as its background.

Written by Eddie Ma

March 5th, 2010 at 7:51 pm

Posted in Web Programming

Tagged with , , ,

Logo and Title with Arclite Theme v2.02

without comments

This is an update to this post.

It’s even easier in this version of Arclite 2.02 to throw up both a logo and title.

Edit header.php as follows…

Before:

<?php
      // logo image?
      $logo = (get_arclite_option('logo'));
if($logo): ?>
      <h1 class="logo"><a href="<?php bloginfo('url'); ?>/"><img src="<?php echo $logo; ?>
      "title="<?php bloginfo('name');  ?>" alt="<?php bloginfo('name');  ?>" /></a></h1>
<?php else: ?>
      <h1 class="logo"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>
<?php endif;  ?>

After:

<?php
      // logo image?
      $logo = (get_arclite_option('logo'));
if($logo): ?>
      <h1 class="logo"><a href="<?php bloginfo('url'); ?>/"><img src="<?php echo $logo; ?>"
      title="<?php bloginfo('name');  ?>" alt="<?php bloginfo('name');  ?>"
      style="vertical-align:text-bottom;" /><?php bloginfo('name'); ?></a></h1>
<?php else: ?>
      <h1 class="logo"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>
<?php endif;  ?>

That’s it!

  • style="vertical-align:text-bottom;"
    • This chunk is used to keep the logo in line with the title text as last time.
  • <?php bloginfo('name'); ?>
    • This chunk produces the title text.

Written by Eddie Ma

February 15th, 2010 at 1:48 pm

Posted in Web Programming

Tagged with ,

Having an image logo AND logotype in Arclite (WordPress)

with 3 comments

Update: See this post if you have Arclite 2.02.

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 :D

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.

Alex says...

Hi Ed
I have a quick question. Where is the palace where you can actually define the location of image logo? I do not see any references in the code to the image location.
When you say: “user selected to use image logo” where do we have such an uption in this template?
Thanks

Eddie Ma says...

I wrote this post a long time ago so I had to check for you. I switched back to Arclite to see if I could find the dropdown, checkbox or radio button for it — but I don’t think there is an explicit control for it; however, looking at the PHP, it looks like just having an uploaded image will cause Arclite to show just your logo while having no uploaded image makes the theme fall back to printing out your site’s title (defined in your general settings). Hope that helps :D Let me know if you find something to the contrary.

Alex says...

Thanks for the reply, however I found the place where you can control it: appearance/article settings (just in case someone else will come across this post

Written by Eddie Ma

December 22nd, 2009 at 3:03 pm

Posted in Web Programming

Tagged with ,