SimonPadbury / WBST

Starter theme for WordPress, with Bootstrap and WooCommerce compatibility
MIT License
29 stars 14 forks source link

WBST

Version 1.4.4

WBST WordPress starter theme with Bootstrap and WooCommerce compatibility. It also has my popular two scripts – Hovernav (Bootstrap navbar dropdown on hover) and Meganav (Bootstrap navbar megamenu).


WBST Plus has a little brother – BST, Bootstrap Starter Theme https://github.com/SimonPadbury/bst. WBST shares the same basic features as BST, but adds a few more features.

If you want even more features, you may find them in the biggest member of this family – BST-Plus https://github.com/BST-Plus/BST-Plus.


Basic Features of WBST

Notes on Hovernav and Meganav

Hovernav is comprised of some jQuery and CSS that together restore "sub-menu appears on hover (mouseover)" to Bootstrap, for screen widths > 786px. Screen tap functionality (e.g. tablets) is not changed. If you don't want Hovernav, simply delete these styles and scripts and the normal Bootstrap behavior is restored.

Meganav is comprised of some jQuery and CSS that enable the bootstrap navbar dropdown to appear as a megamenu if there is a sub-sub-menu (i.e. grandchild menu) present. On small screens (<=768px) the sub-sub-menu appears within the big dropdown (i.e. it is available on small screens too). If you don't want Meganav, simply delete these styles and scripts and the normal Bootstrap behavior is restored.

To set up a mega-menu in WordPress, simply use the menu builder in the normal way, dragging menu items to the right until you have sub-sub-menus, e.g.

Parent link 1
Parent link 2
    Child link 2.1
        Grandchild link 2.1.1
        Grandchild link 2.1.2
        Grandchild link 2.1.3
    Child link 2.2
Parent link 3