changing 'visit site' link in Awake

resolved (19 posts) (5 voices)

  1. globalmick
    Member

    I found a page here on how to change the 'visit site' link in infocus, but couldn't find one for awake. Could you be so kind as to let me know what line I have to change?

    Thanks

    Posted 1 year ago #
  2. Elliott
    Support

    Hello globalmick,

    Open up /wp-content/themes/awake/lib/functions/shortcode.php and around line 142 you should see this..

    if($portfolio_link){ $out .= '[raw]&nbsp;<a class="fancy_link target_blank" href="' .$portfolio_link. '"><span>Visit Site</span></a>[/raw]'; }

    You can see the Visit Site text there, go ahead and change it to whatever you want.

    Posted 1 year ago #
  3. udroma
    Member

    Hello. How can i do that in infocus 2.3?

    Posted 7 months ago #
  4. Elliott
    Support

    Hello udroma,

    Open up /wp-content/themes/infocus/lib/shortcodes/15-portfolio.php and you can find the text on lines 63, 399.

    Posted 7 months ago #
  5. udroma
    Member

    super fast!
    on line 63, what should i change? no "visit site" standing alone here...
    'visit' => __( 'Disable Visit Site', MYSITE_ADMIN_TEXTDOMAIN )

    did you mean line 389?

    also. can i have different text for different categories?

    Posted 7 months ago #
  6. Elliott
    Support

    Sorry, try line 301,

    $visit_site = '<a href="' . esc_url( $_link[$id] ) . '" class="post_more_link">' . __( 'Visit Site', MYSITE_TEXTDOMAIN ) . '</a>';.

    Posted 7 months ago #
  7. udroma
    Member

    did you mean line 291? :

    $visit_site = '' . __( 'Visit Site', MYSITE_TEXTDOMAIN ) . '';

    change both?

    also. can i have different text for different categories?

    Posted 7 months ago #
  8. Elliott
    Support

    Change just that one.

    You can insert your own buttons in the portfolio excerpt field which would be easier, http://mysitemyway.com/docs/index.php?title=Using_the_Portfolio#Excerpt_Text.

    Posted 7 months ago #
  9. udroma
    Member

    thanks for the portfolio excerpt field tip! didnt think about it!
    thanks for the super fast help!

    Posted 7 months ago #
  10. lossi
    Member

    I'm trying to change the Visit Site button text for the portfolio on infocus 2.4.... I noticed the code

    echo "$visit_site = '<a href="' . esc_url( $_link[$id] )  . '">' . __( 'Visit Site', MYSITE_TEXTDOMAIN ) . '</a>';. ";
    on lines 303 and 635 of my folder..
    (1) Which one do I change
    (2) And more importantly do I change the $visit_site = (at the beginning) to $my_text or do I change the ( 'Visit Site', MYSITE_TEXTDOMAIN ) to ('My Text', MYSITE_TEXTDOMAIN ). Or do I change both instances of "Visit site' to 'My Text' ?
    (3) I tried to insert my own buttons in the portfolio excerpt field...... Didn't work at all.
    (4) How do you change the color of this Visit Site Button?

    Thanks in advance.

    Posted 4 months ago #
  11. Elliott
    Support

    You would change it on both lines. Inserting the button into the portfolio excerpt should be working though, send us a link to your page.

    Posted 4 months ago #
  12. lossi
    Member

    Thanks again Elliot...Still not getting exactly what to change.... On both lines do I change

    (1) the $visit_site = (at the beginning of the code) to $my_text or
    (2) do I change the ( 'Visit Site', MYSITE_TEXTDOMAIN ) to ('My Text', MYSITE_TEXTDOMAIN ).
    (3) Or do I change both instances of "Visit site' to 'My Text' in the line of code?

    Thanks again.

    Posted 4 months ago #
  13. Elliott
    Support

    You change the text, "Visit Site", to whatever you want it to display as.

    Posted 4 months ago #
  14. lossi
    Member

    Damn!!!

    Elliot.... you're one relentless man.... I'm promoting you right now!!!!!!!!!!
    One last thing... How do I change the color of this Visit Site Button (only the visit site button) NOT the Read More button next to it.

    Thanks again.

    Posted 4 months ago #
  15. Elliott
    Support

    You would add a color code to the line like so,

    $visit_site = '<a href="' . esc_url( $_link[$id] ) . '" class="post_more_link green">' . __( 'Visit Site', MYSITE_TEXTDOMAIN ) . '</a>';

    As seen above I changed it to green by adding it to the class. See here for our color codes, http://mysitemyway.com/docs/index.php?title=Using_Shortcode_Colors.

    Or if you need to change it to a hex value then do this,

    $visit_site = '<a style = "background-color: #000000" href="' . esc_url( $_link[$id] ) . '" class="post_more_link">' . __( 'Visit Site', MYSITE_TEXTDOMAIN ) . '</a>';

    Posted 4 months ago #
  16. lossi
    Member

    Man... You're the best. really.
    Thanks.

    Posted 4 months ago #
  17. pixie
    Member

    Hi Elliott,

    We are working with the Awake files and would like to achieve the same.
    Change portfolio posts from > to:
    "Read More" to "Details"
    and
    "Viist Site" to "Buy Now"

    Followed the instructions above with the following edits:

    15-porfolio.php - line 630, 635 updated . __( 'Read More', MYSITE_TEXTDOMAIN ) to . __( 'Details', MYSITE_TEXTDOMAIN )
    framework.php - line 527 updated . __( 'Read More', MYSITE_TEXTDOMAIN ) to . __( 'Details', MYSITE_TEXTDOMAIN )

    But still no changed on the portfolio page.
    Can you please advise how to update the text for both links on the portfolio posts/pages.

    Thank you.

    Posted 4 months ago #
  18. Elliott
    Support

    Awake should be lines 286, 291, 608, 613, make sure to clear your browser cache and refresh any caching related plugins after changing them.

    Posted 4 months ago #
  19. pixie
    Member

    Got it :) Thank you!

    Posted 4 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