Add a CSS class on a current active menu item
…= new RegExp(url.replace(/\/$/,”) + “$”); // now grab every link from the navigation $(‘.menu a’).each(function(){ // Swap to your menu CSS Class or ID // and test its normalized href…
Read MoreAdding Expires Header to htaccess
…# CSS, JavaScript ExpiresByType text/css “access plus 1 month” ExpiresByType text/javascript “access plus 1 month” ExpiresByType application/javascript “access plus 1 month” # Others ExpiresByType application/pdf “access plus 1 month” ExpiresByType…
Read MoreAdding 7G WAF Firewall for NGINX to CloudPanel
…currently not available from developer only in Apache version – for directory restrictive access have a look at these two URLS: https://community.hetzner.com/tutorials/restrict-access-by-ip-or-password-in-nginx and https://serverfault.com/questions/279517/nginx-restrict-directory-access-by-ip ar Could you write a manual…
Read MoreSet a Minimum Subscription Period in WooCommerce Subscriptions
…$50 a month, set the Sign-Up fee at $150 and put 3 months for the free trial Problem on the front end is the wording – it’s not a free…
Read MoreInstalling Homebrew on macOS Ventura or Monterey, Package Manager for Linux Apps
…Homebrew is the latest and most popular of the trio. Install Homebrew on macOS To download install Homebrew run the install script on the command line as below and let…
Read MoreMacBook Pro 13-inch without Touch Bar Review 2017
…Since I am going to be doing more travel in the near future I needed something that is just as capable as my desktop computer and the latest MacBook Pro…
Read MoreAdding in Google Plus Authorship and Publisher Profile to Genesis WordPress Theme
…tag with the rel=”author” or in the case of a Google+ Business page rel=”publisher” attribute set. Like so: <link rel=”author” href=”https://plus.google.com/100574451041083020591“/> or <link rel=”publisher” href=”https://plus.google.com/100574451041083020591“/> You may also have or…
Read MoreUsing Navgoco as a Vertical Multi-Level Menu in a WordPress Genesis Theme
…Dashboard with multi levels and place into position via a widget area or simply use HTML mark up on a post or page, this example uses a course menu with…
Read MoremacOS Forbidden 403, You don’t have permission to access /~username/ on this server
…sudo nano /etc/apache2/httpd.conf Find: User _www Group _www Change to: User usershortname Group staff Just change it to your short username and group, group will be staff and restart…
Read MoreGit WordPress workflow for Local Development to Staging Site
…-f So here we are declaring the actual working directory and where the data is coming from. Save the file and make it executable chmod +x post-receive Test a commit…
Read More