Search code examples
htmlprestashop-1.6glyphicons

Glyphicon not displaying in Prestashop 1.6


I am working on a prestashop module and I am trying to use a Boostrap glyphicon as a button in my template, but it does not work and I can not figure out why.

<td>
    <button type="button" class="btn btn-default btn-lg">
        <span class="glyphicon glyphicon-cloud-download"></span>
    </button>
</td>

My column stays empty, prestashop documentation shows this example but it it does not work either

<div class="form-group has-warning">
    <label class="control-label" for="input1">Label with warning</label>
    <input type="text" class="form-control" id="input1">
    <span class="glyphicon glyphicon-warning-sign form-control-feedback"></span>
</div>

Is it something to add to prestashop ? Did I miss something ?


Solution

  • It depends on the button you need, for example if it's a "panel-footer" button you can use:

    <button type="submit" class="btn btn-default pull-right" name="submitTest"><i class="process-icon-download"></i> Download</button>
    

    or for link button:

    <a href="#" title="Download" class="btn btn-default">
        <i class="icon-cloud-download"></i> Download
    </a>