irislines web design
irislines web design

Author Archive

Default Country

Wanting to help out U.S. based users of The Events Calendar, I tracked down a place to set the default country.


I changed this:

public function country() {
    return array( '','');

to this:

public function country() {
    return array( '','United States');

United States is preselected, and a selection of states is generated. All other countries are still available, should they be needed.

It appears other defaults could be set as well, but I didn’t try it.

This file will need to be re-modified when updates are applied, as it is not in a location that can be accomplished with a template override.

All Seasons Tree Service

One of my original clients, All Seasons Tree Service, was ready for an update.  We went from a static site of 5 or 6 pages, to a single page design that is responsive, fresh looking and mobile friendly.   When the need for frequent updates is absent, it’s good to find a solution that doesn’t require a database or ongoing updates to software and plugins.  

WP Fastest Cache Settings

I had an intense afternoon:

Using Chrome with WP Fastest Cache turned ON,  homepage slide show, email list accordion, and calendar map view all worked.

But,,,  with WP Fastest Cache turned OFF,  these same elements failed in Safari and Firefox.

I finally found that by tweaking the settings of WP Fastest Cache, I could get all working in all 3 browsers.

I turned off option to combine css files and to combine js files.

WP sites not loading after updates

May, 2018.

This turned out to be a problem with the php allocation.

From Liquid Web tech support:

During our conversation, we found that your site was not loading properly due to the memory_limit being lower than what was needed to load the site. I raised it from 64M to 128M, which brought it back into working order.

I did this by adding the following line to public_html/.user.ini:


Category as body class in WordPress

Wanting more handles for CSS styles — to style a widget in different colors for different categories of posts — I found this snippet:

// add post category slug to body class in wordpress
function wcs_add_category_slug_body_class( $classes ) {
global $post;
if ( is_single() ) {
foreach ( get_the_category( $post->ID ) as $category ) {
$classes[] = $category->category_nicename;
return $classes;
add_filter( 'body_class', 'wcs_add_category_slug_body_class' );;

which did the trick!

The site that had the snippet:

Add Post Category Slug to Body Class in WordPress



New Captcha fails if server clock is not synced

If you are comfortable with WHM this is easy to do via WHM> Server Time> Sync Time With TimeServer.

This has happened a few times — it took lots of research the first time, the second, I called and asked my host company to snyc the clock.

After they fixed it, they let me know this was something I could do myself. I just need to remember!

IrisLines LLC
101 Washington Street
Brattleboro, VT 05301

802 257 7391