Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Plugin: bbPress Mobile Edition

I would suggest using the following to stop the avatar plugin from working in the mobile version until I can figure out a way to make all images smaller or non-existant with this plugin.

Put this over the code for the avatar plugin in post.php in /my-templates/

<!-- Diable Avatar for BB-Mobile -->

<?php if ( mobile_check() ) : ?>

<!-- <?php post_avatar(); ?> -->

<?php else : ?>

<small><?php post_avatar(); ?></small>

<?php endif; ?>

<!-- Diable Avatar for BB-Mobile -->

I have now tested this out and know that it works on my site.

In fact, any code that you do not want shown or changed in the mobile version of your site can be elminated or changed with the following structure!

<!-- Code for BB-Mobile -->

<?php if ( mobile_check() ) : ?>

CODE YOU WANT SHOWN ON MOBILE

<?php else : ?>

CODE YOU WANT SHOWN ON MAIN SITE

<?php endif; ?>

<!-- Code for BB-Mobile -->

Trent

Skip to toolbar