Making Theme Widget Areas More Dynamic - Featured Post

By Jeremy Clark   Filed In Featured, wordpress  |  Tagged , , ,

While designing a new theme for a client a problem came up that has come up before. Making a horizontal area a widgetized area, ie the header area next to a logo. This could also be in the footer of a theme. Instead of hardcoded the widths of each widget and making the layout static, I decided to make it have dynamic widths. By dynamic I’m not just talking about using percentage widths, but making the widths dependent on how many widgets are added to the area. Lucky WordPress has a handy function that will give counts of all the widgets currently active and in which area they are active. The documentation on the function is quite sparse wp_get_sidebars_widgets Read more »

1 Star2 Stars3 Stars4 Stars5 Stars |  (2 votes, average: 4.00 out of 5)
Loading ... Loading ...

Comments Off

Holiday Shopping Tips

By Jeremy Clark   Filed In Internet, security  |  Tagged 

During the holiday seasons countless people spend more and more money online. Online shopping is becoming more popular, for many reasons. It’s easier than fighting crowds at large stores. Many online stores run special sales during holidays. Overall it’s just a more convenient way to shop, but the convenience could also have a price. Scams and phishing attempts rise during holidays. There are a few simple steps that can be taken to reduce the risks.

  • Always be sure of the website your visiting. IE Bookmark your favorite store’s website.
  • If that email offer seems to good to be true, it usually is.
  • Always verify offers from the retailer’s website.
  • When checking out verify the payment method
  • Probably the most important is to use a good security software to protect your computer from malware that could compromise your personal information
  • Read more »

1 Star2 Stars3 Stars4 Stars5 Stars |  (No Ratings Yet)
Loading ... Loading ...

Google Maps API

By Jeremy Clark   Filed In wordpress  |  Tagged , , , , , ,

In a recent project it was asked to provide a Google map on a number of pages. It would have been too time consuming to create a custom map and manually place the code on each page. Instead using the Google Maps API was a better choice because the address could be pulled from a custom field in the post and used to create the map. With the code below adding a Google Map is simple.

The first step is signing up for a API key, as with most Google products is free and only requires a Google account. After you’ve received your key, you can then edit the functions.php file of your current theme. The below code has some key spots to take note of and maybe change some values. I will highlight these after the full code.

Read more »

1 Star2 Stars3 Stars4 Stars5 Stars |  (5 votes, average: 4.40 out of 5)
Loading ... Loading ...

Have a plugin that can’t be submitted to the official repository?

Code is now on GitHub please see here for updated version.

Many reasons exist but the biggest is that the plugin/support is sold therefore can’t be downloaded for free. But why should the end user be punished after all they bought the plugin and updates should be just as seamless as from the official repo. With this script this can be accomplished. Examples and a package of sample code can be downloaded below.
Read more »

1 Star2 Stars3 Stars4 Stars5 Stars |  (10 votes, average: 4.30 out of 5)
Loading ... Loading ...

While doing some work for a client, they were wanting to tie into the update notifications that a user gets when a theme has an updated version in the WordPress theme directory. The catch is this was a premium theme that was being sold so couldn’t be submitted to the directory. While not as robust as the WordPress update system it doesn’t need to be most premium themes require you to log in to download updates. So a simple notification was sufficient. Please read more to see code and explanations. Read more »

1 Star2 Stars3 Stars4 Stars5 Stars |  (7 votes, average: 5.00 out of 5)
Loading ... Loading ...