Hi all,
Ran into another problem I need to replace the our work button with a static image 210 x 130px, I can work out how to do this can anyone help me ?
regards fred
Hi all,
Ran into another problem I need to replace the our work button with a static image 210 x 130px, I can work out how to do this can anyone help me ?
regards fred
You need to replace following code in index.php
echo '<a href="'.get_permalink($k_option['mainpage']['buttonLink']).'" class="big_button heading ie6fix">';
echo '<strong class="ie6fix">'.$k_option['mainpage']['buttonText'].'</strong><span class="buttonBg dynamicBg"></span></a>';
with:
echo '<a href="'.get_permalink($k_option['mainpage']['buttonLink']).'" class="my_button heading ie6fix">';
echo '<strong class="ie6fix">'.$k_option['mainpage']['buttonText'].'</strong></a>';
in your stylesheets you define .my_button, maybe you need to adjust size, etc.:
.my_button
{
background: url(../path/to/button.png);
}
If you only have a button image you can also use this code:
echo '<a href="'.get_permalink($k_option['mainpage']['buttonLink']).'">';
echo '<img src="path-to-img" style="border:none;" /></a>';
The Dude
Hi The Dude
Thank you for the help. Ive tried to use the second bit of code, as all I need is a static image.
Update i got it working using teh second line of code but it appears above the headline text not at teh side like the view work button does.
Try to but the image in the original code like:
echo '<a href="'.get_permalink($k_option['mainpage']['buttonLink']).'" class="heading ie6fix">';
echo '<strong class="ie6fix"><img src="path-to-img" style="border:none;" /></strong></a>';
Maybe you need to add a float:right; attribute to style, so it looks like:
echo '<a href="'.get_permalink($k_option['mainpage']['buttonLink']).'" class="heading ie6fix">';
echo '<strong class="ie6fix"><img src="path-to-img" style="border:none;float:right;" /></strong></a>';
The Dude
You must log in to post.