After a recent bulk product import for a WooCommerce installation we noticed an issue with the gallery images. The featured image for each product was set to the first image within the gallery for that product. This created a duplicate image issue where the image gallery on the product detail page would show the first […]
For a client’s site we wanted to add some ACF fields to the Edit Term page for global attributes. If the attribute list were fixed, this would be a simple task of targeting the specific taxonomies in the field group’s location parameter. What complicated this particular instance is that we wanted ALL attribute edit pages to have […]
This snippet will replace the existing post ID displayed in the WooCommerce product edit screen with the variation’s SKU if one exists. Often times the variation SKU is far more useful to an admin than the internal WordPress post ID so having it displayed on the edit screen makes the administration process much easier.
Often times, a design will call for separate areas within a page to have their own unique styles applied to them. Whether it’s a different background color, font size, or available space, editing those areas can be frustrating when the backend editor does not have those same styles. By default, ACF does not have the […]
Recently I was tasked with adding some custom tabs to a WooCommerce store using the Storefront theme. There was a commercial solution available but I felt this was something that could fairly easily be done via Advanced Custom Fields and the built-in Storefront filters. 30 minutes later and a solution was in place. Here’s a […]
If you’ve run across this error when trying to restore a site via the iThemes ImportBuddy tool: ERROR #83893a: unable to decode JSON restore data “. Restore halted. Here are a couple steps you can follow to diagnose the issue: Verify the source of the issue – Look in your browser’s debug console and check […]
If you notice that page elements are missing from browser to browser with no obvious source, verify that AdBlock is installed and then check that the offending element does not meet the criteria of being an advertisement. Here is a list of the classes, IDs, and various other selectors that AdBlock currently looks for: #advert1, #advert2, […]
I wrote this extender to more easily handle outputting observable arrays in row+column layout. Typically, when running a simple foreach loop to display the content of an observable array you’re forced to include the row+column logic within the view itself or you have to write additional helper functions in the view model. I ran in […]
In previous versions of Bootstrap it was a one-step process to localize it to a container element. This would allow you to use Bootstrap within the WordPress admin and not affect the rest of the built-in WordPress styles. After version 3 of Bootstrap this method no longer works as Bootstrap started using more descendant selectors […]
This walker class will generate a clean unordered list. It removes the numerous classes added to each list item by the default WordPress but will keep any custom classes that have been added directly via the menus admin.