Plugin / WooCommerce Twitter's Bootstrap
Bass JobsenDescription
Description
This plugin wraps your Woocommerce views in the Twitter’s Bootstrap Grid. Makes your views full responsive. No changes to your theme or other plugins needed.
Twitter’s Bootstrap version
Select you Twitter’s Boostrap version in the settings Panel.
You could choose between version 2 and 3.0.
Number of columns (Shop page)
Choose the number of columns in the Shop Page.
This will be result in the grids shown below:
/* the grid display */ /* | columns | mobile | tablet | desktop |per page | ----------------------------------------------------|-----------| | 1 | 1 | 1 | 1 | 10 | |---------------------------------------------------|-----------| | 2 | 1 | 2 | 2 | 10 | |---------------------------------------------------|-----------| | 3 | 1 | 1 | 3 | 9 | |---------------------------------------------------|-----------| | 4 | 1 | 2 | 4 | 12 | |---------------------------------------------------|-----------| | 5 | n/a | n/a | n/a | n/a | |---------------------------------------------------|-----------| | 6 | 2 | 4 | 6 | 12 | |---------------------------------------------------|-----------| | >=6 | n/a | n/a | n/a | n/a | |---------------------------------------------------------------| * * */ /* the grid display Twitter's Bootstrap 2.x*/ /* | columns | mobile / tablet| desktop |per page | ------------------------------------------------------| | 1 | 1 | 1 | 10 | |-----------------------------------------------------| | 2 | 1 | 2 | 10 | |-----------------------------------------------------| | 3 | 1 | 3 | 12 | |-----------------------------------------------------| | 4 | 1 | 4 | 12 | |-----------------------------------------------------| | 5 | n/a | n/a | n/a | |-----------------------------------------------------| | 6 | 2 | 4 | 12 | |-----------------------------------------------------| | >=6 | n/a | n/a | n/a | |-----------------------------------------------------| * * */
Theme integration
To use this plugin in your themes copy the files to for example {wordpress}/wp-contents/themes/{yourtheme}/vendor/ and add according to this the code below to your functions.php:
if( !function_exists( 'wts' ) ):
function wts()
{
wp_deregister_style ( 'woocommerce-twitterbootstrap');
wp_dequeue_style( 'woocommerce-twitterbootstrap');
wp_register_style ( 'woocommerce-twitterbootstrap', get_stylesheet_directory_uri() . '/vendor/woocommerce-twitterbootstrap/css/woocommerce-twitterboostrap.css', 'woocommerce' );
wp_enqueue_style( 'woocommerce-twitterbootstrap');
}
endif;
add_action( 'wp_enqueue_scripts', 'wts', 200 );
remove_action('admin_menu',array($woocommercetwitterbootstrap,'add_menu'));
add_action('admin_menu','woocommerce_twitterbootstrap_add_menu');
/** * add a menu */
function woocommerce_twitterbootstrap_add_menu()
{
global $woocommercetwitterbootstrap;
add_theme_page('WooCommerce Twitter Bootstrap Settings', 'WooCommerce Bootstrap', 'manage_options', 'woocommerce-twitterbootstrap', array($woocommercetwitterbootstrap, 'plugin_settings_page'));
} // END public function add_menu()
Contribute!
If you have suggestions for a new feature or improvement, feel free to contact us on Twitter. Alternatively, you can fork the plugin from Github.
Requirements
- WordPress tested with >= 3.6
- Twitter’s Bootstrap >= 3.0.0 (Twitter’s Bootstrap 2 tested with v2.3.2.)
- WooCommerce tested with >= 2.0.13
Support
We are always happy to help you. If you have any question regarding this code. Send us a message or contact us on twitter @JamedoWebsites.
Todo
- Make Cart and Check out pages responsive too
Ratings
Rating breakdown
Details Information
Version
First Released
Total Downloads
Wordpress Version
Tested up to:
Require PHP Version:
Tags
Contributors
Languages
The plugin hasn't been transalated in any language other than English.
DIRECTORY DISCLAIMER
The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.
The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.
Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.
While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.
wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.