Category: Snippets

Amazon Native Ads Trigger Issues In Lighthouse

Here is a snippet to use if you are receiving warnings regarding Accessibility and Best Practices when running a Lighthouse test in Chrome Dev (F12)… View More

WordPress Modal Media Uploader Not Displaying Properly

In the event the modal window that displays WordPress media uploader stops working properly, displays at the bottom of your content, or is display CDATA… View More

Show A Different Theme For Admin Without A Plugin

Switching to a different theme as Admin is a convenient way to create a new theme or edit an existing theme without having to take… View More

Removing WordPress Attachment Image Width Size Attributes (Responsive Images)

If you are creating your own theme and notice that image attachments, specifically those with captions, are not responsive it is because the image width… View More

How To Display Conditional Login Or Logout Links In WordPress

  In this example, we’re adding custom conditional links to a mega menu depending on whether the user is logged in or not, and adding… View More

WordPress wp_link_pages Pagination Examples

How To Programmically Add <!–nextpage–> To WordPress Template

The short answer is that you can’t programmically add <!–nextpage–> to your single.php template or custom file. But there is a fairly easy workaround using… View More

How To Find Duplicate Post Meta In WordPress

To locate and compare all duplicate postmeta rows in WordPress, use phpMyAdmin to run the following query:   select T1.post_id, T1.meta_key, T1.meta_value, T1.meta_id, T2.post_id, T2.meta_key,… View More

How To Disable The WordPress Register Text And Registration Page

If you are using a plugin or other method to register users other than the standard registration page, you can disable the “Register” text on… View More