Skip to content

Instantly share code, notes, and snippets.

View rwaterlow's full-sized avatar

Rufus rwaterlow

View GitHub Profile
@rwaterlow
rwaterlow / bootstrap-wordpress-default-widgets
Created August 4, 2017 19:29 — forked from svenl77/bootstrap-wordpress-default-widgets
Add Bootstrap classes to WordPress core html elements - default widgets and comments. If you want to build a WordPress theme using twitter bootstrap, this will help you to add all needed classes to html witch comes from functions inside WordPress like widgets and comments.
// first set the body to hide and show everyhthing when fully loaded ;)
document.write("<style>body{display:none;}</style>");
jQuery(document).ready(function(){
jQuery( 'input.search-field' ).addClass( 'form-control' );
// here for each comment reply link of wordpress
jQuery( '.comment-reply-link' ).addClass( 'btn btn-primary' );