Hi there
Can anyone advise on changing the envelope icon for the "recommend a friend" link into wording on the product details page so it looks like "ask the seller a question" link?
Any help much appreciated
Thanks
Laura
echo '<a href="'.$MailLink.'" rel="nofollow" class="ask-a-question" >Email a friend</a>';
[attachment cleanup by admin]
And edit productdetails/tmpl/default.php to remove the icon display - use the edited file as an override. Code block begins
// PDF - Print - Email Icon
Many thanks for that swift response. The conversion from icon to text worked a treat but now the link shows the Ask A Question pop up instead of the "Recommend A Friend"
What is this fix for this?
Thanks in advance
Laura
opps - wrong class
echo '<a href="'.$MailLink.'" rel="nofollow" class="recommened-to-friend" >Email a friend</a>';
as written with wrong spelling...
but you then need to add this class to your css and style to get a button like ask
Great stuff!
Thanks for your help!
Quote from: GJC Web Design on November 25, 2013, 18:29:10 PM
echo '<a href="'.$MailLink.'" rel="nofollow" class="ask-a-question" >Email a friend</a>';
Hi!
what line are we replacing, and In which file/folder? Sorry, need more details like file directory. Thanks!
[SITE ROOT]/components/com_virtuemart/views/productdetails/tmpl/default.php
copy that to :
[SITE ROOT]/templates/[YOUR TEMPLATE]/html/com_virtuemart/productdetails/default.php
and edit line 172