WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Browser Check
Names under the icons (2 posts)

  1. Theo Houtman
    Member
    Posted 1 year ago #

    I've tried to place the names of the browsers under their icons. However, for Internet Explorer I get ie and for FireFox ff as the names.

    Is there a way to fix this? This is my code: (line 39 of output.php)

    $html .= '<li style="float: left;"><a href="'. $link .'" class="'. $browser .'" target="_blank"><img src="'. plugins_url('/img/'. $browser .'-128x128.png', __FILE__) .'" alt="'. $browser .'"><br />'. $browser .'</a></li>';

    http://wordpress.org/extend/plugins/advanced-browser-check/

  2. Mattias
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    I might add the option to show/hide the browsers name in the future, for now, you have to find your own solution.

    An easy way to display the right name is to use a php if statment like the following:
    <?php if($browser == 'ff') { echo 'Firefox'; } ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.