Set Up LMD Maldet and ClamAV on ServerPilot and VULTR
…with Clam AV Scanner which can speed up file scanning. SSH into your server and cd to /root Get Linux Malware Detect wget http://www.rfxn.com/downloads/maldetect-current.tar.gz Extract It tar -xvf maldetect-current.tar.gz Remove…
Read MoreKeep Github Original Repository and Forked Repo in Sync via the command line
…need to add that as an upstream remote… git remote add upstream https://github.com/theirname/the-repo.git Then run git remote -v origin git@github.com:yourname/the-repo.git (fetch) origin git@github.com:yourname/the-repo.git (push) upstream https://github.com/theirname/the-repo.git (fetch) upstream https://github.com/theirname/the-repo.git (push)…
Read MoreDeploying a WordPress site via Git Hooks on a ServerPilot Server
…and to destinations #!/bin/sh git –work-tree=/srv/users/sysuser/apps/domain-app-name/public –git-dir=/srv/users/sysuser/wpstaging.git checkout -f So above change the app name and system user name to your settings and save the file. Make sure the hook…
Read MoreInstalling Gulp on macOS Ventura – Intro guide to Gulp
…-gn $USER) /Users/{username}/.config Just run the command below to fix – change {username} to your username sans curly braces. sudo chown -R $USER:$(id -gn $USER) /Users/{username}/.config Save Dependencies Once we…
Read MoreChange WordPress Database Table Prefix Back To wp_
…sql command. SQL command to change other reference prefixes update wp_usermeta set meta_key = ‘wp_capabilities’ where meta_key = ‘weirdprefix_capabilities’; update wp_usermeta set meta_key = ‘wp_user_level’ where meta_key = ‘weirdprefix_user_level’; update…
Read MoreCreate Tabbed Content in WordPress with ACF Repeater and Tabslet
This tutorial walks through how to create a Tabbed content section in WordPress using Advanced Custom Fields and Tabslet. ACF (Advanced Custom Fields) Pro comes with an addon called the…
Read MoreAdd Search Toggle Icon at End of Menu in WordPress
…items at the end of the targetted menu, add a slideToggle with jQuery for the show/hide effect and a bit of CSS. Targetting the Menu https://gist.github.com/neilgee/4a9fccd79bf5c2307508b1dfa4adb004#file-themelocation-php So in the above…
Read MoreHow to create a TwentySixteen Child Theme in WordPress
…parent theme : /* Theme Name: yourchildthemename-can-be-anything-you-like Theme URI: http://www.greatwebsite.com Description: Designed by <a href=”http://www.greatwebsite.com”>Neil Gee</a>. Author: Neil Gee Version: 1.0.0 Template: twentysixteen Tags: bold purple clean & elegant and…
Read MoreImage Carousel Thumbnail Slider with SwiperJS and ACF in WordPress
…you can check out on the SwiperJS site. https://gist.github.com/neilgee/4bdaad5361a89b0818ae79f6de8c2c9c#file-swiperinit-js Build the ACF Gallery Loop Looking at the SwiperJS mark up for html https://gist.github.com/neilgee/4bdaad5361a89b0818ae79f6de8c2c9c#file-swiper-html-html The ACF gallery field code can be…
Read MoreAdding a Site Login/Logout Link to an existing Menu in WordPress
…$loginoutlink .'</li>’; return $items; } } So here all menus are targetted and the login and logout destinations are different depending on whether the user is logged in or not….
Read More