Recently had a problem with a client getting an error message: Warning: array_merge(): Argument #2 is not an array in /home/anotherfolder/public_html/example.org/wp-includes/load.php on line 63 It appeared suddenly and changing the wp-config.php file from define(‘WP_DEBUG’, false); to ini_set(‘display_errors’,’Off’); ini_set(‘error_reporting’, E_ALL ); define(‘WP_DEBUG’, false); define(‘WP_DEBUG_DISPLAY’, false); had no affect. Then I found this article by Mark Root-Wiley…
Read More
Add Top Bar Widget to Genesis
Those bars running across the top of sites are great for getting attention, but most of the Genesis themes don’t have an option to add them. Here’s how to get one that looks like this: Add this to your functions.php file: (Remember to always, always back up your php files before making changes to them.)…
Read More
WooCommerce 3.0 Lightbox Not Working? Try This Fix
Great article by Colm Troy that helped me figure this out. He does a great job of explaining everything in detail, but the gist is that Woo removed the PrettyPhoto lightbox option in 3.0 and added some new options. But they don’t seem to take affect automatically. You’ll need to add a little code to…
Read More
Responsive Site Screwed Up After iOS 9 Update? Here’s How To Fix It:
The iOS 9 update on the iphone has caused countless problems, not only with the phone itself, but also for people sending MailChimp emails and websites. Don’t get me wrong, it came with a lot of great new features. But the problem is that when you view your site on the iphone, what used to…
Read More
How to Auto Refresh a Web Page on iPad Orientation Change
I found this handy little javascript snippet: window.addEventListener(‘orientationchange’, function () { var originalBodyStyle = getComputedStyle (document.body).getPropertyValue(‘display’); document.body.style.display=’none’; setTimeout(function () { document.body.style.display = originalBodyStyle; }, 10); }); Thanks to Dan Dascalescu.
Views Conditional Statements
Views is great for helping people who don’t want to write PHP code set up custom templates, but sometimes the documentation isn’t as clear as it could be. Recently I had a situation where a client wanted to be able to upload a pdf of a book review with a link to open the review,…
Read More
Genesis: Display Full First Post and Then Excerpts
If you are using the Genesis Framework and you want to display your first post in it’s full content length, but want the other posts below it to display as excerpts only so the page doesn’t get too long, you can add this code to your functions.php file: add_action(‘template_redirect’, ‘sp_custom_post_content’); function sp_custom_post_content(){ // only work…
Read More