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.
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.
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...
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.
Glad that I could help you :)
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!
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>';
You must log in to post.