Posted - 09/25/2017 : 03:40:03
This tip is true for any of the store buttons really but here's how to add icons to the Ask A Question / Email A Friend button using FontAwesome so they match the other social media buttons with their logo icons Add this to your proddetail.asp / .php <HEAD> section (You can add it to other pages if you are going to use icons on other buttons) <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> Add font-family:FontAwesome, sans-serif; to the input.askaquestion / input.emailfriend class in your main css file eg input.askaquestion, input.emailfriend{ background:#2868B2; color:#fff; height:21px; border:0; border-radius:4px; font-size:12px; cursor:pointer; margin-top:8px; font-family:FontAwesome, sans-serif;} In proddetail.php, just before <?php include "vsadmin/inc/incproddetail.php" ?> add <?php $xxAskQue="#xf27a; Ask A Question"; $xxEmFrnd="#xf0e0; Email A Friend"; ?> or for the ASP version In proddetail.asp, just before <!--#include file="vsadmin/inc/incproddetail.asp"--> add <% xxAskQue="#xf27a; Ask A Question" xxEmFrnd="#xf0e0; Email A Friend" %> You can see an example on our demo store here http://www.ectdemostore.com/blue-jeans-straight.asp All the FontAwesome icons are listed here http://fontawesome.io/cheatsheet/ Andy Please feel free to review / rate our software
|