Viewing 1 replies (of 1 total)
  • BERJAYAying

    (@yingscarlett)

    Hi there,

    GP uses svg icon for the back to top button, the examples site is using a font.

    If you can find the SVG icon you want, you can use this PHP code to switch out the icon. Replace the <svg ...</svg> with your own SVG code.

    add_filter( 'generate_svg_icon_element', function( $output, $icon ) {
    if ( 'arrow-up' === $icon ) {
    $output = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"/></svg>';
    }
    return $output;
    }, 10, 2 );
Viewing 1 replies (of 1 total)

The topic ‘Back to top button font icon’ is closed to new replies.