I'd like to link the 'get started' button to an external URL. How would I do that please?
Thanks in advance....jeni
(9 posts)
(4 voices)
I'd like to link the 'get started' button to an external URL. How would I do that please?
Thanks in advance....jeni
Hi,
Go to the theme folder, and open the file "lib/includes/featured-custom.php". In line #110 you will find this code:
<a href="<?php echo $link; ?>"></a>
Replace it with:
<a href="http://yourlink.com"></a>
Then, open the file "lib/includes/featured-categories.php" and in line #81, make the same replacement.
Try that and let us know the results.
I have downloaded yesterday the wp3.2 version of infocus, but in the folder lib there is no folder includes. Where can I find the file you mentioned?
Hope you can help me.
Regards,
Hans
Hello,
In the new version of the theme, the code is located in a different place. Open the file "lib/functions/theme.php". In line #675 you will find this code:
$home_text .= '<a class="button_link call_to_action alignright" href="' . esc_url( $btn_link ) . '"><span>' . stripslashes( $teaser_button_text ) . '</span></a>';
Replace it with:
$home_text .= '<a class="button_link call_to_action alignright" href="' . esc_url( $btn_link ) . '" target="_blank"><span>' . stripslashes( $teaser_button_text ) . '</span></a>';
Try that and let us know the results.
Hi,
Original text and proposed text are the same in your post. BTW, I want to link to an internal link. Can you give me both options?
Thanks in advance.
Regards,
Hans
Hello,
I provided you a code tweak, so the link is opened in a new tab. You can define the URL of the button in the theme options panel, inside the "Homepage" section.
Take a look at this guide, it might be helpful: http://mysitemyway.com/docs/index.php?title=Homepage#Call_to_Action
I was able to solve this issue with the "Get started"-button on the homepage. Thanks for your help.
How can i link to an internal page via the "Get started"-button in the "Pricing boxes"?
Regards,
Hans
Hello Quantmania,
You can navigate to Dashboard -> your theme -> Homepage and set a custom link for your get started button. As for linking inside a page see here, http://w3schools.com/html/html_links.asp.
Problem solved. Thanks for your help!
Regards,
Hans
You must log in to post.