Link 'get Started' button to external URL - infocus

resolved (9 posts) (4 voices)

  1. jenij
    Member

    I'd like to link the 'get started' button to an external URL. How would I do that please?

    Thanks in advance....jeni

    Posted 1 year ago #
  2. Ruderic
    Support

    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.

    Posted 1 year ago #
  3. Quantmania
    Member

    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

    Posted 8 months ago #
  4. Ruderic
    Support

    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.

    Posted 8 months ago #
  5. Quantmania
    Member

    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

    Posted 8 months ago #
  6. Ruderic
    Support

    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

    Posted 8 months ago #
  7. Quantmania
    Member

    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

    Posted 8 months ago #
  8. Elliott
    Support

    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.

    Posted 8 months ago #
  9. Quantmania
    Member

    Problem solved. Thanks for your help!

    Regards,
    Hans

    Posted 8 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme