Author: Support Admin

Load CSS and JS the right way
[ad_1] By OutsourcedContent — on August 27, 2017 /** * Load CSS and JS the right way * * @since 1.0 * @refer https://developer.wordpress.org/reference/functions/wp_enqueue_style/#comment-340 */ function firerooster_load_css_and_js() { // Load Boostrap CSS wp_enqueue_style( ‘bootstrap-css’, get_template_directory_uri() . ‘/includes/bootstrap4/css/bootstrap.min.css’ ); // Load style.css wp_enqueue_style( ‘style’, get_stylesheet_uri() ); // Load Boostrap JS wp_enqueue_script( ‘bootstrap-js’, get_stylesheet_directory_uri() . ‘/includes/bootstrap4/js/bootstrap.min.js’, array(‘jquery’),…

Auto Link Keywords in Post Content And Excerpt
[ad_1] If you are a blogger and make some cash from affiliate marketing then you probably insert affiliate links into the articles on your website, so that you get paid when a visitor purchase a product that you recommended. But if you are just starting out on affiliate marketing and want to insert affiliate link…

Escaping Text With Links In WordPress – The Right Way
[ad_1] By OutsourcedContent — on August 29, 2017 Escaping a text with links can be replaced if escaped with __() during localization. This not ideal since the person writing the localizing file could replace links with their own. The proper way to do this is explained with an example below: sprintf( __( ‘If you like…

Embed YouTube Videos On Bootstrap 4 Popup Modals With AutoPlay
[ad_1] By OutsourcedContent — on August 30, 2017 Bootstrap 4 does not natively support embedding videos on its modal popup windows. Here is how to embed YouTube videos on modal windows. Code from this Stack Overflow post has been modified for this tutorial. Features Video will start playing once the modal window loads. This can…

Add Social Sharing Buttons to Posts in WordPress
[ad_1] I was working on a WordPress theme for a client and he requested me to add couple of social sharing buttons on his website. So I started browsing through the social sharing plugins for WordPress and found that most were either too complicated or bloated for the simple feature my client needed. I didn’t…

Call to undefined function boolval()
[ad_1] By OutsourcedContent — on September 12, 2017 boolval() is a PHP function that was introduced in PHP 5.5. If you try to use it on a server that runs PHP 5.4 and lower, you will get an error like this: Fatal error: Call to undefined function boolval() in /path/to/file/file.php on line 12 To fix…

https://millionclues.com/wordpress-tips/making-classes-php-7-compatible/
[ad_1] https://millionclues.com/wordpress-tips/making-classes-php-7-compatible/ [ad_2]

Load Contact Form 7 Scripts & Styles Only When Needed
[ad_1] Without any doubts, the Contact Form 7 is one of the best WordPress plugin for creating and adding contact forms to your website. The plugin is very easy to set up and use. The only issue with this plugin is that it includes required JavaScript and CSS file on every page regardless of the…

Using WordPress Menu As Bootstrap 4 Navbar
[ad_1] By OutsourcedContent — on September 29, 2017 This tutorial will help you use a WordPress menu with the Navbar component of Bootstrap 3 and Bootstrap 4. Please refer this guide for how to do it directly with Bootstrap. Here is the code to use WordPress navigational menu as the Navbar component. <nav class=”navbar navbar-expand-lg…

Get First Category By Post ID In WordPress (Outside The Loop)
[ad_1] By OutsourcedContent — on September 29, 2017 Use this code snippet to display the first category of a WordPress post. <?php $smello = (array) get_the_category($post_ID])[0]; echo $smello[‘cat_name’]; ?> where $post_ID is the ID of the post whose category is required. Change [0] to [1] to get the second category. Not all posts…