JoomlaFAQs.org

JoomlaFAQsBanner
How To Groom Your Dog At Home

Favourites Create PDF Email Print

How To Add Space Between The PDF, Print And Email Icons In VirtueMart

Author:
technojoom
Hits:
2362
Rating:
 
Vote for this:
Good - Bad
favoured:
0 Favour

Answer

Component : VirtueMart 1.1.3

If your VirtueMart pages are having the PDF, Print and Email icons sticking to each other, side-by-side, you may want to add spaces in between the icons. Here's how to do it.

  1. Go to yoursite/components/com_virtuemart/themes/default/templates/common/buttons.tpl.php
  2. Open the buttons.tpl.php file
  3. To add 3 non-breaking spaces in between the icons, do as per below from line 7 >
    < ?php echo vmCommonHTML::PdfIcon
    ( $pdf_link )."& nbsp ;& nbsp ;& nbsp ;" ; ? >
    < ?php echo vmCommonHTML::
    PrintIcon()."& nbsp ;& nbsp ;& nbsp ;" ; ? >
    < ?php echo vmCommonHTML::EmailIcon($product_id); ? >
  4. Save the file

Note: In order to display the HTML code for non-breaking space, I'd added a space in between & and nbsp. Also added a space in between nbsp and ;

Please delete the space if you copy and paste the code.

Cheers!


SITE NOTE: To display the HTML tags on JoomlaFAQs, there is a space between the name of the tags and the enclosing "less than" (<) and "more than" (>) brackets. If you copy the code, make sure you delete the spaces to make it work!

If you have found this site to be useful and has helped you, kindly consider to donate. Your donation will encourage me and help to upkeep JoomlaFAQs.org! Cheers!





Category

Tags for this item

Add comment


Security code
Refresh

JoomlaFAQs Categories