by Garth | Jun 22, 2022 | bash, Snippets
Step 1 : Find your .bashrc file Step 2 : (.bashrc is found in root directory)(You can type cd in the terminal and hit enter to get to root and use ls -la to see list of files in directory)- Edit your .bashrc file. Use whatever editing tool of your choice.or you can...
by Garth | Dec 12, 2018 | Snippets, Themes, Wordpress
Create these files first functions.php style.css style-mobile.css script.js for functions.php <?php function my_theme_enqueue_styles() { $parent_style = ‘../Divi’; wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’...
by Garth | Jul 30, 2018 | PHP, Snippets, Woocommerce, Wordpress
Click link below WPBeginner
by Garth | Jul 26, 2018 | Javascript, Snippets, Tools
print();
by Garth | Jul 26, 2018 | Javascript, Jquery, Snippets
let timer = setInterval(function() { // The dispatch date is just the variable name. You can change it wo whatever. As long as you change it where ever else it is been used as well. // the format for dispatch_date is (‘2018-10-17 17:00:00′) which is been...
by Garth | Jul 24, 2018 | PHP, Snippets, Wordpress
Here’s the Stackoverflow link Here’s the improved answer //The Function function in_array_r($needle, $haystack, $strict = false) { foreach ($haystack as $item) { if (($strict ? $item === $needle : $item == $needle) || (is_array($item) &&...