Random thoughts on art, technology, stuff, and occasionally Real Estate: Thesis Theme Notes: Custom Banner

Thesis Theme Notes: Custom Banner

For anyone not familiar with my style here:  Active Rain is one of my favorite places to save miscellaneous notes to myself.  But I also figure, if I need to save these notes, maybe someone else will also find them helpful. 

To use a customer banner in the Thesis Theme for WordPress.

Create the banner.

Upload it to your host site.

FTP to your Thesis Theme files on your host server.   wp-content -> themes -> thesis_16

Change the file name  "custom-sample" to just "custom" if you haven't done that already.  Open the "custom" file.

Open (Edit) custom-functions.php (The menu command will depend on which FTP program you are using - the file will open in Notepad or in whatever text editor you have associated with code files)

Paste this code into custom-functions.php at the end of the file, below the instructions and the default bookmark code:

 function mycustom_banner() {
?>
<div id="mycustom-banner">
  <a href="http://www.bobtaylorproperties.info" title="Bob Taylor Properties Inc. Home">
  <img src="http://www.bobtaylorproperties.info/bobtaylorpropertiesbanner.png"
 alt="Bob Taylor Properties, Inc." ></a>
  </div>
<?php
 }

add_action('thesis_hook_before_header', 'mycustom_banner');

You'll probably want to change the alt titles and URLs to your own.  Although if you want to use mine I won't complain.  :-)

Thesis works with "hooks" and "functions". 

The "function" is the actual executable code - in this case the insertion of a banner image.

The "hook" is the LOCATION on the page you want the "function" placed - in this case before the Thesis default header.

Now, close the FTP program, go to the wp-admin panel for the site. Click Thesis Options at the bottom of the left menu column.

Under Display Options -> Header uncheck "Show site name in header" and "Show site tagline in header"

Save.

One last thing:  You may want to reduce the spacing before your banner image, to do that, go back to the Thesis files via FTP.  In the custom file, open up custom.css and add this line of code to the end of the file

.custom #header  { padding: 0px; margin: 0px; }

12 commentsCheryl Johnson • January 31 2010 06:50AM

Comments

I don't even use Word Press, and this is all Greek to me, but...you gained a subscriber.  Now, if I can just figure out all those Latin phrases you used....

Posted by Don Sabinske, Sabinske & Associates Inc. 7 months ago

Your post is a keeper and beyond any random thoughts. Thanks for the road map to Thesis custom banners.

Posted by Emily Medvec ~ CRS RSPS SRES ~ 505-660-4541 (Santa Fe Realty Partners) 7 months ago

someday

Posted by Maureen McCabe | Worthington OH (Real Living HER (HER Realtors) | (614) 388 - 8249) 7 months ago

Maureen,  Once you get the hang of it, it actually isn't too hard .... and anyway, real coders copy and paste......

Posted by Cheryl Johnson, Bob Taylor Properties, Inc., Los Angeles, CA 7 months ago

What a concept, AR as note depository. All along, I just thought you were exceptionally sharing. I love the double use you get from AR. Please keep sharing, it is why I subscribe to you and have for a long time.

Posted by Jim Little, Your Sun City Arizona Realtor (Ken Meade Realty) 7 months ago

Jim,

You'd probably Laugh Out Loud to discover how many times I forget how to do something or another, and end up referring back to my "notes" here on AR to refresh my memory.  :-)

Posted by Cheryl Johnson, Bob Taylor Properties, Inc., Los Angeles, CA 7 months ago

Cheryl- As usual you have shared useful information and thank you for that.  Also I am chuckling her because I too use my blog posts as guides for myself.  I refer to them many times- they are like notes to self.

Posted by Rebecca Levinson, Real Estate Marketing Consultant (Real Skillz-Clear Marketing for Your Real Estate Vision) 7 months ago

Cheryl ~ I decided to change my banner and searched ActiveRain for banner tips. I will save this and try it out in my wordpress. Thanks!

Posted by Monique Hailer (CENTURY 21 New Millennium) 6 months ago

Monique,  This only applies to the Thesis Theme for WordPress.  Thesis works a little different than most other themes out there....

Posted by Cheryl Johnson, Bob Taylor Properties, Inc., Los Angeles, CA 6 months ago

Lost me at "Create the Banner" - gotta find some time away from selling real estate!

Posted by Robin Sherman, CRS, Broker Associate Robin@PensacolaForYou.com (Keller Williams) 6 months ago

Thanks Cheryl, do you ever use the plugin thesis open hook?

Posted by South Austin Real Estate Blog (Sky Realty South Austin) 5 months ago

Open Hook was a BIG help as I learned my way around Thesis!  http://activerain.com/blogsview/1454818/wordpress-thesis-theme-openhook-plug-in

As I gradually got the hang of working with the customfunctions.php and custom.css files, I used Open Hook less.

Yes, I would highly recommend the Open Hook plugin...

Posted by Cheryl Johnson, Bob Taylor Properties, Inc., Los Angeles, CA 5 months ago

This blog does not allow anonymous comments