Support » Plugin: WordPress Shortcodes Plugin β€” Shortcodes Ultimate » Tooltip with font awesome

  • Resolved VinceGledhill

    (@vincegledhill)


    Hello people. I have been using font awesome icons as a legend on my airfield cards website and I would like to have nice big tool tips. So, I thought I would use this shortcodes ultimate in my template. So, I put this in my template, and it works OK.

    <?php echo do_shortcode( '[su_tooltip style="yellow" position="top" title="Tooltip title" content="Tooltip text"]Text for the tooltip[/su_tooltip]' );
          ?>

    However, I come out of php and back into php in order to put in the font awesome icon like this. But it doesn’t work. What am I doing wrong? Anyone show me a fix?

    <?php echo do_shortcode( '[su_tooltip style="yellow" position="top" title="Tooltip title" content="Tooltip text"]?><i class="fas fa-plane-arrival my-blue fa-3x"></i> <?php[/su_tooltip]' );
          
          ?>

    Thanks in advance
    Vince.

    The page I need help with: [log in to see the link]

  • The topic ‘Tooltip with font awesome’ is closed to new replies.