Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #3515

    How can i get the Main page button on Clean Cut to link to an external site? Cheers -Josh

    FYI, I am not super duper code savvy.

    #42589

    Hey,

    open up index.php and search for following code:

    echo '<a href="'.get_permalink($k_option['mainpage']['buttonLink']).'" class="big_button heading ie6fix"><strong class="ie6fix">'.$k_option['mainpage']['buttonText'].'</strong></a>';

    Replace it with:

    echo '<a href="http://my-external-link.com" class="big_button heading ie6fix"><strong class="ie6fix">'.$k_option['mainpage']['buttonText'].'</strong></a>';

    and instead of “http://my-external-link.com” fill in your external link url…

    #42590

    Awesome you guys, rock. FYI, I think I’ve bought about 3 of your websites, and will continue to support you guys as they are the easiest and smoothest running sites. And thanks for the quick support as always.

    #42591

    Glad that I could help you :)

    #42592

    I have tried this solution and am probably doing something wrong but am unable to get the button to link to an external link. I am not all that familiar with code. I modified the index (found within the theme) with the code specified but it still links to an internal page rather than an external link. Any assistance would be greatly appreciated. The website is http://www.lasclex.org Thanks!

    #42593

    Hey,

    do you mean you’d like to open the link in a new window/tab or are you having trouble linking the button whatsoever? In the first case you can use Dude’s code and add target=”_blank”

    Like so:

    echo '<a href="http://my-external-link.com" target="_blank" class="big_button heading ie6fix"><strong class="ie6fix">'.$k_option['mainpage']['buttonText'].'</strong></a>';

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

The topic ‘Main Page Button Link’ is closed to new replies.