e107sk.com

Fix for core glyphicon icons

on Wednesday 18 December 2019
comments: 0

I use define("FONTAWESOME", 4);  but there are still glyphicons from the core on Frontend.

The list is from the Gaia theme, extended for martik (bootstrap4). Maybe some of them were fixed, not time to check

$('span.glyphicon.glyphicon-home').each(function() {
$(this).removeClass('glyphicon glyphicon-home');
$(this).addClass('fa fa-home');
} )

$('i.glyphicon.glyphicon-search').each(function() {
$(this).removeClass('glyphicon glyphicon-search');
$(this).addClass('fa fa-search');
} )

$('span.glyphicon.glyphicon-search').each(function() {
$(this).removeClass('glyphicon glyphicon-search');
$(this).addClass('fa fa-search');
} )


$('i.glyphicon.glyphicon-move').each(function() {
$(this).removeClass('glyphicon glyphicon-move');
$(this).addClass('fa fa-arrows');
} );

$('i.glyphicon.glyphicon-trash').each(function() {
$(this).removeClass('glyphicon glyphicon-trash');
$(this).addClass('fa fa-trash');
} );

$('i.glyphicon.glyphicon-lock').each(function() {
$(this).removeClass('glyphicon glyphicon-lock');
$(this).addClass('fa fa-lock');
} )


$('i.glyphicon.glyphicon-chevron-up').each(function() {
$(this).removeClass('glyphicon glyphicon-chevron-up');
$(this).addClass('fa fa-angle-up');
} )

$('i.glyphicon.glyphicon-envelope').each(function() {
$(this).removeClass('glyphicon glyphicon-envelope');
$(this).addClass('fa fa-envelope');
} )

$('i.glyphicon.glyphicon-print').each(function() {
$(this).removeClass('glyphicon glyphicon-print');
$(this).addClass('fa fa-print');
} )

$('i.glyphicon.glyphicon-flag').each(function() {
$(this).removeClass('glyphicon glyphicon-flag');
$(this).addClass('fa fa-flag');
} )

$('i.glyphicon.glyphicon-edit').each(function() {
$(this).removeClass('glyphicon glyphicon-edit');
$(this).addClass('fa fa-edit');
} )

$('i.glyphicon.glyphicon-share-alt').each(function() {
$(this).removeClass('glyphicon glyphicon-share-alt');
$(this).addClass('fa fa-share');
} )

$('i.glyphicon.glyphicon-cut').each(function() {
$(this).removeClass('glyphicon glyphicon-cut');
$(this).addClass('fa fa-scissors');
} )

0 Comments

Other links

Follow us