+64-3-3595735

Category Archives: Website Development And Support

How do you stop a Bootstrap accordion from closing all tabs

Summary This how to demonstrates how to stop  a Bootstrap accordion from closing all tab which leaves an empty space in your page which can cause unsightly resizing. The Problem The Bootstrap accordion  allows you to display information by having a series of tabs which can be clicked to display the information under them. When […]

Coding an HTML button that works on mobile and desktop ( touch and mouse)

Summary This howto demonstrates one method for getting a button to work on both mobile and desktop ( touch and mouse click) without using jQuery. it uses vanilla JavaScript and should work on most platforms. The Problem While coding a site I wanted a button to fire an event that hid some items on the […]

Getting Child and Parent Categories For Custom Post Type (CPT) in WordPress

Jump to: Get CPT Parents   ||   Get CPT Children Summary I use CPTs a lot for WordPress as it can capture field data for a client making it easier to get pages easily laid out with information. One issue with this is working with Taxonomies / Categories becomes difficult as WordPress functions ( like get_categories) […]

.HTAccess Redirect to Maintenance Page

The following .htaccess code will allow you to set a 301 redirect on your site – using a set of ip addresses that can still log in. Ideal for fixing up things if there has been a hack or other issue. # MAINTENANCE-PAGE REDIRECT RewriteEngine on #add IP addresses that are allowed to access the […]

Contact Form 7 And Akismet With Styled forms

We use contact Form 7 forms for our contacts  and Akismet as our anti spam plug in. All our forms are styled with HTML to make them tidier and we also style the messages sent to clients via the forms. We found that when adding the Akismet fields to our forms errors / misconfiguration warnings […]