Reduce the number of requests in your WordPress theme

Written by on

This simple code will allow you to load all of your themes css files into one request without a plugin.  I have not yet found a plugin that works with other plugins nicely as not all plugin authors play by the rules when enqueueing scripts and styles.  So i figured that I would start with my theme.  I wrote my own theme for this site based on the Twitter Bootstrap.  On its own, there would be a request for the bootstrap css file and one custom one for my theme.  And the javascripts would be one for the bootstrap and one for my custom js.

Collapsable Categories in Post Editor

Written by on

So you have a ton of categories and there are a lot of child categories at the list and the post editor has become unruly? In order to change a posts' category or to add it to a new one the list is unmanageable. Here is a jQuery code snippet that you can use to make the categories collapsable. It removes the label functionality. You cannot click on the name to select the item's checkbox, but it now allows you to click on the name to expand the categories.

Jquery Tabs Without Jquery UI

Written by on

Here is a compact way to replicate jQuery UI tabs without the UI. I wrote this code to account for unlimited tabs and to create dynamic "selected" class on the clicked item and removes the class when you click on another tab. This lends itself to easier styling of the tabs as well.

Simple Javascript Timer

Written by on

This is a simple way to implement a countdown timer with jQuery. I will be working on a feature that says something when the countdown is completed. But for now it just countdowns.

This is counting down until September 1, 2020

  • ...
  • ...
  • ...
  • ...

Calculating HTML Forms

Written by on

This is a topic that I find people are looking to do all the time. Here is a solution that works and is fairly simple. This even takes into account that you might want to maintain the text value of the field option to place into your database.

Quick Jump Menu Without a Go Button

Written by on

This is a nice and clean quick tip to create a jump menu without a "go" button. Say for example you have a list of items in a database that need to have a details page based upon their "id". This will create a dropdown menu that is auto populated with the most up to date list.






Real Time Web Analytics ^