One road block I've come across recently was the request to change all of my Drupal headers into stylized font headers. This didn't surprise me as far as the asthetics of the pages, but it did concern me about the "Search Engine-Friendly" aspect of the site. Fortunatly I came across this solution from Mustardseed Media.
CREATE GRAPHIC HEADERS WITH CSS
At first this doesn't seem like a solution at all! What difference does it make if I drop the graphic in there in the HTML, or in the CSS? Well, it turns out it makes a big difference. Here's the gameplan:
- Hide the plain-jane header text so it doesn't make the page ugly.
- Use the graphic as a <div> background image.
- Allow the search engines to crawl the <h2> tags and give them the proper authority they deserve!
Here's how we do it:
- Create your header graphic - noting the width and height dimensions - and upload it to the server
- Remove the Title from the node type that you are wanting to replace. This could be by removing the print $title function in the node.tpl.php, or create a tpl.php file specifically for the content type that you want to use this function with. Another way to do this is to create a style for that title where you use the display:none; in the CSS.
- Enter the header in the body section of the content and wrap it in <h2> **** </h2> tags. Be sure to set the input format for Full HTML, or make sure the <h2> tag is accepted in the filtered HTML (Administer>Site Configuration>Input Formats).
- KEY STEP: set a class ID for the <h2> tag, like <h2 class="graphic-header">
- In your style.css file, create a line for the h2.graphic-header and follow these style rules
- Set the Width to match the width of the header graphic - if the graphic is 200px wide set it as { width:200px;}
- Set the Padding at the top to match the height of the graphic - if the graphic is 50px high set it as {padding-top:50px;}
- Set the Height to 0 {height:0px;} - This will essentially push the text down below the border of the graphic.
- Set the overflow to hidden {overflow:hidden;} - This will hide anything that exceeds the border (which is now the text and we've hidden it efficiently)
- Call the graphic as the background image {background-image: url(/images/sweetgraphic.jpg);} - This fills the empty space that we've just created with the sweet graphic that we want to show up instead.
- Set the background to no repeat {background-repeat: no-repeat;} - This saves our butts if we're off on the dimensions, they won't see the top of your graphic in the bottom margin.
Now that I've explained it all, the final stylesheet should look something like this:
h2.graphic-header
{
width: 200px;
padding-top: 50px;
height: 0px;
overflow: hidden;
background-image: url(/images/sweetgraphic.jpg);
background-repeat: no-repeat;
}
And when the spiders crawl your page, they will see this:
<h2 class="graphic-header">This is a sweet header because it looks cool and it's friendly</h2>
Check it out by inspecting the graphic above that says "Create Graphic Headers with CSS" in Firebug if you don't believe me!
October 24 & 25Making a bus trip to get there, me and other members of the Indy Drupal Group are making an appearance, since we're not having a Drupal Camp for our area this year. This started out as a trip between me and one other fellow Drupaler, but it turns out Indianapolis will be represented there, so that is VERY cool!
Review of Drupal Camp Chicago
The trip reminded me why I am involved with a community like the Drupal community. Such comradery as what I experience refreshed my drive to better myself as well as do what I can to better others in the knowledge and application of Drupal. The Chicago Drupal Meetup Users Group (CDMUG) refreshed our ideas of what we are looking for in our Indianapolis community.
There were 2 sessions going on at all times - a beginner session and an advanced session. To my surprise, there was a large number of beginners attending! I thought this was great because it shows the influence that the members of the CDMUG have on the community around them. They are spreading the word, and making it appealing. They actually had more people show up than what was expected, but they handled this very well. The money they raised with this event went to the Drupal Association.
Over all, I met a lot of great people and walked away with a connection with the Chicago-land Drupalers. Who knows, this may even be the beginning of a Midwest Drupal Alliance as we begin to contact other user groups in the midwest as well and ultimatley make a statement about our demographics and contribute to the Drupal Community.
Drupal Rocks!
October 24-26, 2008
This is a web conference that brings together some of the most interesting and exciting developers, designers, creatives, and thought leaders from around the web to share with you their passions and expertise. The sessions cover a wide range of timely topics including web standards, accessibility, web application development, Flash, Flex, and scalability.
You may be wondering.... How can you attend 2 conferences at the same time?? The conference is an internet conference! They have hubs in the US and the UK and attendees either meet at the hubs, or attend in the virtual world! An awesome concept - I had to be a part of it!

Hardcore Drupal
I created this logo when I was feeling creative.
This will be my logo when I become a Drupal Rockstar!
Friendly Expert Drupal Consulting - The Lullabots mission statement says it all. In addition to providing friendly consulting, the Lullabots also travel the world training newbies and web developers alike on the best practices of Drupal. They are an enormous asset to spreading the word about Drupal as well as promoting community involvement. They lead by example and sustain a large number of Drupal modules and are constantly contributing back. Having attended two Lullabot Workshops, I have come to greatly respect the work ethics and attitude of the Lullabots. They have fun with what they do and it shows, and spreads. The workshops have been invaluable for developing a better understanding of both what Drupal can do and how to use it efficiently. These guys are heavy hitters in the Drupal world and help push the advancement of the Drupal CMS platform.
- « first
- ‹ previous
- 1
- 2
- 3



