• Instead of my custom stocktext: Levertijd: (which means: Delivery) I would like to display an icon/emoji of a delivery truck like:
    https://emojipedia.org/delivery-truck/
    or
    https://fontawesome.com/icons/truck?s=solid
    etc.

    Just adding a code like:
    <i class=”fa-solid fa-truck”></i> binnen 10-14 werkdagen
    <FontAwesomeIcon icon=”fa-solid fa-truck” /> binnen 10-14 werkdagen
    <font-awesome-icon icon=”fa-solid fa-truck” /> binnen 10-14 werkdagen
    Into the input field on the product page itself or via the meta:
    Meta: _in_stock_status (variable products) and Meta: in_stock (simple products) (in .csv upload file)
    Will not be taken and results no text etc, just empty space.
    That plugin does not support icons etc., just plain text.

    The class that takes care of showing a stock/delivery text at all is:
    .woocommerce-variation-availability(I think?)

    <div class=”woocommerce-variation-availability”><p class=”stock in-stock in_stock_color woo-custom-stock-status”>Levertijd: binnen 10-14 werkdagen</p>
    </div>

    How can I add an icon/svg/emoji of a truck instead of the text: Levertijd:
    ? As a prefix maybe?

    Can you please help me with this?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Display a Icon/emoji/svg’ is closed to new replies.