Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1017

    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

    #33651

    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

    #33652

    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.

    #33653

    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

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘replacing "Our Work" Button’ is closed to new replies.