Load Bootstrap 4 CSS And JS From MaxCDN – The Right Way

Load Bootstrap 4 CSS And JS From MaxCDN – The Right Way

By OutsourcedContent — on October 25, 2017 Add this to the functions.php of the active theme. /** * Load Bootstrap CSS and JS from MaxCDN – the right way * * @refer https://millionclues.com/wordpress-tips/load-css-and-js-the-right-way/ */ function mcabl1226_load_css_and_js() { // Load Boostrap CSS wp_enqueue_style( ‘bootstrap-css’, ‘https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css’ ); // Load Theme’s style.css wp_enqueue_style( ‘style’, get_stylesheet_uri() ); …

Prevent WordPress From Checking Update For Plugins

Prevent WordPress From Checking Update For Plugins

Many developers were concerned about the data WordPress should send back to WordPress.org when checking update for plugins and themes. Some have expressed concern that private plugins developed for a specific client or website may contain some sensitive information in their headers, like contact information for the developer, etc and it should not be send…

Smooth Scroll Page When Clicking Anchor Link – jQuery

Smooth Scroll Page When Clicking Anchor Link – jQuery

By OutsourcedContent — on November 16, 2017 Add this to your jQuery file. // Smooth scroll When Clicking Anchor // @refer https://stackoverflow.com/a/7717572/8255629 var jQueryroot = $(‘html, body’); $(‘a[href^=”#”]’).click(function () {   jQueryroot.animate({     scrollTop: $( $.attr(this, ‘href’) ).offset().top   }, 1000);   return false; });

Add Bootstrap4 Form Styling To WooCommerce Checkout Fields

Add Bootstrap4 Form Styling To WooCommerce Checkout Fields

By OutsourcedContent — on November 19, 2017 Add the following code to functions.php or to a custom plugin to style WooCommerce checkout form fields with sweet Bootstrap 4 styling. /** * Add Bootstrap form styling to WooCommerce fields * * @since  1.0 * @refer  http://bit.ly/2zWFMiq */ function iap_wc_bootstrap_form_field_args ($args, $key, $value) {      $args[‘input_class’][] = ‘form-control’;…