Evenly space div items across row using CSS

So this is a problem I am had for a while and now I have an answer to the question of how to evenly spread items such a divs across a row that is mobile responsive without using floats. Here is the HTML <div class=”wrapper”> <div>Item</div> <div>Item</div> <div>Item</div> <div>Item</div> </div> <!– EOF wrapper–> and here…

Read More

Scam: Email Server De-activation Notice

An email with the following subject has been doing the rounds recently: “Server De-activation Notice” The message itself starts as follows: “Dear {{-Email-}}, Our record indicates that you recently made a request to shutdown your e-mail and this request will be processed shortly. If this request was made accidentally and you have no knowledge of…

Read More

WordPress and ModSec using the OWASP Rule Set

Running WordPress and Mod Security together can be a challenge but we have been doing it successfully for a few years now so I thought I’d share our Global Disable list and User configuration settings. These rules are globally disabled in /usr/local/apache/conf/modsec2.whitelist.conf: 981261 950901 981244 981243 981248 981257 960015 958979 981245 973343 950109 981249 973336…

Read More

Filtering Referral Spam in Google Analytics

Referral spam can seriously mess with your data in Google Analytics. Using the filter function can block spammy domains and improve the accuracy of your stats. Edit the View for the website (Property) in question Create a New Filter Set Filter Type to Custom Set to Exclude Select filter field to Referral Create regex expression…

Read More

Enable or Disable Automatic Updates of WordPress Core, Themes and Updates using Functions.php

Placing this in functions.php will enable automatic updates of the WordPress core, plugins and themes. /* configure automatic updates */ add_filter( ‘auto_update_core’, ‘__return_true’ ); add_filter( ‘auto_update_plugin’, ‘__return_true’ ); add_filter( ‘auto_update_theme’, ‘__return_true’ ); Changing __return_true to __return_false disables said updates. These can be further refined to limit the level of updates and include only certain plugins.…

Read More

Child Themes Done the Right Way using functions.php

Was a time when linking a child theme to the parent theme was done via an import in the style sheet. No more, now the best way to do this is via the functions.php file as follows: function my_theme_enqueue_styles() { $parent_style = ‘parent-style’; wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ ); wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array(…

Read More

Migrate Multiple Domains to New Domain Using .htaccess

Ok so you have multiple domains all pointing to your main domain where your site lives. But now you want to change the main domain, so you need to redirect all requests, for all the alias domains, to the new main domain and generate a 301 response so search engines and browsers know that the…

Read More

Scam – NZ Post – The agent was not able to bring your package

I received and email purporting to be from NZ Post this morning telling me that they could not deliver a package. It all looks very genuine but didn’t feel quite right. However when you dig a bit deeper it all starts looking nasty: The from address is *****.cierpiala@slawa.com.pl The link of the “Save Label” button…

Read More

cPanel Email Error: "retry time not reached for any host after a long failure period"

This can be caused by a corrupt database file. Fix it by running the following SSH commands as root: cd /var/spool/exim/db rm -f retry retry.lockfile rm -f wait-remote_smtp wait-remote_smtp.lockfile service exim restart or /usr/sbin/exim_tidydb -t 1d /var/spool/exim retry > /dev/null /usr/sbin/exim_tidydb -t 1d /var/spool/exim reject > /dev/null /usr/sbin/exim_tidydb -t 1d /var/spool/exim wait-remote_smtp > /dev/null /scripts/courierup…

Read More

International Online Database of Registered Trade Marks -Scam

We recently received an unsolicited letter from IDRTM (International Database of Registered Trademarks) asking for the princely sum of $1,638 to include one of our Trade Marks in their online database. They do indeed have a website on which you can search for trade marks etc but you have to ask yourself why would you…

Read More