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
(19 posts)
(5 voices)
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
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] <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.
Hello. How can i do that in infocus 2.3?
Hello udroma,
Open up /wp-content/themes/infocus/lib/shortcodes/15-portfolio.php and you can find the text on lines 63, 399.
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?
Sorry, try line 301,
$visit_site = '<a href="' . esc_url( $_link[$id] ) . '" class="post_more_link">' . __( 'Visit Site', MYSITE_TEXTDOMAIN ) . '</a>';.
did you mean line 291? :
$visit_site = '' . __( 'Visit Site', MYSITE_TEXTDOMAIN ) . '';
change both?
also. can i have different text for different categories?
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.
thanks for the portfolio excerpt field tip! didnt think about it!
thanks for the super fast help!
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>';. ";
Thanks in advance.
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.
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.
You change the text, "Visit Site", to whatever you want it to display as.
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.
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>';
Man... You're the best. really.
Thanks.
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.
Awake should be lines 286, 291, 608, 613, make sure to clear your browser cache and refresh any caching related plugins after changing them.
Got it :) Thank you!
You must log in to post.