Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Submit button a fontawesome icon HOW??

    papalife

    • Mitglied
    • Beiträge: 174
    Submit button a fontawesome icon HOW??
    am: 09. März 2014, 11:21:57
    Hello,

    I would like to change the submit button picture with an icon from

    http://fortawesome.github.io/Font-Awesome/icon/chevron-circle-right/.

    I want to do this at newsletter code where there is this

    $box_smarty->assign('BUTTON',xtc_image_submit('button_login_newsletter.gif', IMAGE_BUTTON_LOGIN));

    Can someone help me ???

    Thanks

    Linkback: https://www.modified-shop.org/forum/index.php?topic=29610.0

    Modulfux

    • Experte
    • Beiträge: 3.590
    • Geschlecht:
    Re: Submit button a fontawesome icon HOW??
    Antwort #1 am: 09. März 2014, 11:45:15
    Quick & Dirty solution:

    Instead:
    Code: PHP  [Auswählen]
    $box_smarty->assign('BUTTON',xtc_image_submit('button_login_newsletter.gif', IMAGE_BUTTON_LOGIN));
     

    Write:
    Code: PHP  [Auswählen]
    $box_smarty->assign('BUTTON', '<button type="submit"><i class="fa fa-chevron-circle-right"></i>' . IMAGE_BUTTON_LOGIN . '</button>');
     

    Greets
    Ronny

    papalife

    • Mitglied
    • Beiträge: 174
    Re: Submit button a fontawesome icon HOW??
    Antwort #2 am: 09. März 2014, 12:23:16
    Thanks again but I want only this icon to be a button. I dont want a button with this ICON.

    Modulfux

    • Experte
    • Beiträge: 3.590
    • Geschlecht:
    Re: Submit button a fontawesome icon HOW??
    Antwort #3 am: 09. März 2014, 12:27:29
    Then capture the graphic and change the button graphic.

    Greets
    Ronny

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.988
    • Geschlecht:
    Re: Submit button a fontawesome icon HOW??
    Antwort #4 am: 09. März 2014, 12:43:26
    I offer an ajax css-button manager with the help of which you can edit all buttons in the backend of the shop system.
    You can determine style, text, icon (of course font icons are used), which means,
    you may style one button only with an icon, the next with icon end text, the next only with text and another with a different layout.
    The whole thing certainly works for each used language seperately if desired.

    Cheers,
    noRiddle
    13 Antworten
    7652 Aufrufe
    27. September 2011, 12:42:25 von Tomcraft
    4 Antworten
    3775 Aufrufe
    19. Oktober 2011, 09:18:46 von onlineshop11
    5 Antworten
    3075 Aufrufe
    02. Dezember 2015, 16:51:42 von Bonsai
               
    anything