- WordPress Tutorials
- Artisteer Tips
- Add Button Class to Widget
- Add Style to Text Widget
- Add a Sidebar in the Header
- Create Custom Post Header
- Create Unique Page Template
- Create Secondary Menu
- Create Styled Donate Button
- Create Widget Style – Part 1
- Create Widget Style – Part 2
- Hide Category Titles
- Styling Featured Image
- Styling Sheet Borders
- Using Theme Options
- Design Tips and Tricks
- Recent Projects
Backgrounds, Icons, and Buttons
Well, as you can see if you’ve visited my site before, I’ve just updated the theme again. I like to create new design themes for my own site both for variety as well as to demonstrate some nice Artisteer, Photoshop, and WP tweaking techniques. I’ll list a few of those techniques in this post.
Photoshop:
Designing your own site elements really helps to tie the whole site together completely. By creating your own glare image, buttons, header images, etc. you can give your site a completely customized look without much work. For example, I created the background pattern using Photoshop. All I did was grab a plaid image off of the web (make sure you always only use copyright free images or pay for stock images!) I then, added the green, semitransparent crisscross stripe on a 100px x 100px image of the pattern. I also made sure to define it as a pattern so that I could use it in other elements of the design.
Artisteer:
The beautiful part of Artisteer is that it allows you to easily add your own graphics as texture, backgrounds, glares, etc. I uploaded my 100px x 100px image of the plaid and chose a tile repeat. I also chose the Overlay setting for the blending option in Artisteer and gave it a tiny bit of transparency so that the gradient I chose for the background would still show through nicely.
Artisteer comes with its own texture and pattern designs as well, which are nice to use. The header, button header, and footer are all sporting one of the many built in Artisteer texture graphics.
A great tip for Artisteer is to choose a nice solid background image or texture as a canvas for buttons and a logo you add to the code later. Note: Always make sure to make your header text as small as possible, the same color as your background, and put it in an out of the way spot in your header. This way, search engines will still find the text, but you will also be able to add a graphic as your main title.
WordPress Trick:
Because I had a relatively plain header to start with, I was able to add my own clickable logo button and social icons to make the header look complete and give it nice interactivity. To do this, simply follow these steps:
- Create your images and upload them to your theme’s image folder.
- Add appropriate div classes and links to your Header PHP. It should look something like this (added code in orange):
<div class=”art-Header>
<div class=”logo-png”><a href=”url” title=”Your Title”</a></div>
You’ll need to copy and paste this same code for as many images that you want to add. Just make sure that you label them each based on what they represent, and of course change the display title url to match. You’ll need to use the exact name for the CSS.
- Add code to your CSS to display your images in the way that you want. Go to your Style Sheet CSS and find this /* begin Header */ Here is an example of the CSS code you should add for the example above (note, make sure to keep the div order the same as it is in the Header PHP):
.logo-png a
{
position: absolute;
z-index:0;
top: 13px;
left: 5px;
width: 503px;
height: 206px;
background-image: url(‘images/header.png’);
}
You’ll need to make the width and height appropriate to your image size, change the position as desired, and most importantly make sure that your img url is the name that you saved your image is into your themes image folder.
Always make sure to save the php file before doing any editing in case you make a mistake. You’ll most likely need to tweak the CSS several times in order to position your graphics exactly where you want them.
WordPress Pluggin:
I made good use of the Display Pluggin available through WordPress. This pluggin allows you to decide which pages you want certain widgets to be displayed on. Very helpful, and you could really have a lot of fun displaying a different graphic button for each page if you wanted to. (The images I added to the sidebar of the About and Welcome page is just some html I added to a text widget.)
I hope you enjoy this new theme, and please let me know if you are interested in a customized WordPress or Blogger theme with setup included.
© 2009 – 2011, Sarah Roberts – Reflecting the Designer. All rights reserved.
25 Responses to Backgrounds, Icons, and Buttons
-
Hi, I stumbled across your website for an article about adding and editing buttons in a WP header and I really like your work. Do you do design work and customization for other people? What are your prices.
God Bless
-Josh
-
Hey I really like the layout of this theme. I have used artisteer to generate a theme I really LOVE over anything I have seen commercial or not. The only thing I can not figure out is how to expand the header and footer like you have done here. I really want to know how to do this. I Would love the layout of this site. I would really REALLY appreciate it if you would share some code with me or give me a little direction as to get me theme to have the charicteristics of this one.
Thanks,
Daine -
Thank you Sarah I replied at artisteer to your comments and thank you so much for your advice. I love your design you have here on this site. You have really shown some great graphics skill. It is very artistic and one of the better WP themes I have seen! I am a country recording artist and this layout will really help ALOT with what I want to achieve on my site if I can manage to achieve something similar. Thank you again for finding the time to help me out. Your advice and information will definately get me going in the right direction. Thank you again,
Daine -
Excellent Site and article however I cannot the wordpress trick to work. I have in the header.php
and in the style.css
/* begin Header */
div.art-Header-Logo-png
{
position: absolute;
z-index:0;
top: 13px;
left: 5px;
width: 503px;
height: 206px;
background-image: url(‘images/clickforfreelesson.png’);
}
can you tell me where I am going wrong? I used artisteer 3 to make the theme -
wierd this part got cut out
that is what I have in the header.php the rest is in the style sheet -
i put it right after begin header. gave the z-index a huge number and nothing.
-
sorry, i misread your Q, i put it as you have in the example
-
Still not working. Here is exactly what I have, notice I replaced all the divs with the word give so it shows up here… I have tried every single combination of things to fix this and cut and pasted to and from a notepad doc
<a href=”http://learnyourenglish.com/?page_id=10”title=”clickforfreelesson”
/* begin Header */
div.art-Header-logo-png a
{
position: absolute;
z-index:20000;
top: 13px;
left: 500px;
width: 200px;
height: 49px;
background-image: url(‘images/clickforfreelesson.png’);
} -
no not a stupid Q at all it is easy to overlook the simple things but believe me I checked that and even cut and pasted to avoid typos. i even cut and pasted the quotations that were already in the css and php over what I had to make sure they were right. darn i saw that it took it out. what can I change so it does not get stripped out?
-
Hi Sarah, I’m desperately wanting to add social icons to the header of a new theme i’ve created in Artisteer. I’ve got all the image files ready (the main header, plus 3 buttons); exported the theme as a zip file, gone in and added the images to the right folder.
Then, i’ve opened the header php file from the zip, but there’s no div in it at all. Even for me this is an early crash and burn
I’m trying to edit the files directly rather than installing into wordpress and using the editor there, does that change anything?Second daft question – if i’ve added the main header background image to the artisteer theme already, do i need to include that in the extra code as well, or is it just one instance of the php and css code per icon i’m adding?
Sorry, i’m really clueless but learning !
-
Hi Sarah, I’m using the latest full release, 2.6.
The header.php file is pretty short and it’s the first situation – I’m looking for the div class “art header” to add the new code underneath, but it’s not there. Neither can i find any other div tags at all in the file.
many thanks, Kate -
I’ve just upgraded to artisteer 3 as the full release came out today. I think i’ve edited the header.php ok but haven’t tried putting it live yet as i’m still working on the design in artisteer.
Editing the style css file, i’m confused by what you mean about “most importantly make sure that your img url is the name that you saved your image is into your themes image folder.” – do i need to edit this line: background-image: url(‘images/header.png’); if i’m just adding buttons over a header image I uploaded within the Artisteer theme?
many thanks, Kate -
Thanks a lot for this great tutorial
It works for me very well




