If logging in over SSL in WordPress two cookies are set, one secure one and one not. If you need to ensure both are secure, you will need to do some WordPress core editing. Perhaps there is a better way of doing this, but I have not yet found itRead More
Yii has a pre-built class that you can use in your
columns array to add a checkbox column to your
CGridView. From there you can assign other functionality to the checkboxes.
WordPress automatically assigns a css class of
current_page_parent to navigation items of current pages. However it is not so kind when it comes to custom post types.
Shopify does not provide a filter to properly encode a url. Most social media sites like Facebook or Twitter don’t care and sharing your article with unencoded urls still works. But Tumblr is very strict.Read More
Shopify has a very limited blog functionality. Unfortunately a lot of people have gotten used to the goodness of WordPress and expect some of the same features. One thing that is definitely missing is the ability to set featured images for your blog posts, especially if you’d like to have a nice blog landing page.Read More
Accidentally committing debug messages is never fun. Here is a quick Git pre-commit hook to search for common debug functions such as
print_r and git conflict merge errors
WordPress generates some extra code in the
<head> tags, that well make it look like it’s a WordPress site. Not that there is anything wrong with that…
In order to enqueue a LESS stylesheet using
wp_enqueue_style a filter has to be applied to declare the stylesheet as
If you need to add some custom css to your rows in CGridView use rowCssClassExpression.Read More
How to call a custom model function from inside a CGridView or TbGridView widget.Read More