- Copy
bb-mobile.phpinto your/my-plugins/directory - Copy
mobile.cssinto your/my-templates/directory - If you don't already have a
header.phpin/my-templates/, copyheader.phpfrom/bb-templates/and place it in/my-templates/ Edit
header.phpin a text editor changing:<link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" />
To:
<!-- BB-Mobile Plugin -->
<?php if ( mobile_check() ) : ?>
<?php $stylesheet = (bb_get_option('uri') . 'my-templates/mobile.css'); ?>
<link rel="stylesheet" href="<?php echo $stylesheet; ?>" type="text/css" />
<?php else : ?>
<link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" />
<?php endif; ?>
<!-- End of BB-Mobile Plugin -->
- Navigate a mobile phone or PDA device to your site!
Note: If you are using an internationalized version of bbPress, you have to also do step 6!
If internationalized, also change:
<link rel="stylesheet" href="<?php bb_stylesheet_uri( 'rtl' ); ?>" type="text/css" />
To:
<!-- BB-Mobile Plugin -->
<?php if ( mobile_check() ) : ?>
<?php $stylesheet = (bb_get_option('uri') . 'my-templates/mobile.css'); ?>
<link rel="stylesheet" href="<?php echo $stylesheet; ?>" type="text/css" />
<?php else : ?>
<link rel="stylesheet" href="<?php bb_stylesheet_uri( 'rtl' ); ?>" type="text/css" />
<?php endif; ?>
<!-- End of BB-Mobile Plugin -->