• Skip to main content
  • Skip to primary sidebar
  • Business
  • WordPress
  • Security
  • Marketing
  • Publicity
  • Computing
  • Resources
  • Whatevs

Purely Wordpress

Just The Tech, News, and Info We Deem To Post

  • Home
  • About
  • Contact
  • Contribute
You are here: Home / Archives for Code Snippets

Code Snippets

Prevent WordPress Search from listing Pages

Iframe Sample Code

Add the following code to your theme's function.php file, or a functionality plugin to prevent the WordPress Search function from listing Pages. … [Read more...] about Prevent WordPress Search from listing Pages

Override Genesis Page Layout Theme Settings

Genesis Theme Framework Code Snippets

Add the following code to your WordPress theme's function.php file, or a functionality plugin to override Genesis Page Layout Theme Settings. … [Read more...] about Override Genesis Page Layout Theme Settings

Disable Genesis SEO When SmartCrawl is Enabled

Genesis Theme Framework Code Snippets

As of the posting of this code snippet, the Genesis Theme Framework will disable SEO functionality for Yoast SEO, and All In One SEO. But if you use an alternative SEO plugin like SmartCrawl by WPMUDEV the Genesis SEO will stay active leading to SEO conflicts with SmartCrawl and confusion for Contributors, Editors, and Admins. The good news is you do not need to change … [Read more...] about Disable Genesis SEO When SmartCrawl is Enabled

WordPress Email Spambot Shortcode

Screenshot of WordPress plugin php and html code

The WordPress Email Spambot Short Code encodes email address when placed inside the short code. Usage Example: Code to hide email addresses from spambots: … [Read more...] about WordPress Email Spambot Shortcode

Add Empty Cart To WooCommerce Cart Page

Woocommerce Code Snippets

Add the following code to your theme's function.php file, or a functionality plugin to add an empty cart button on the Cart Page. … [Read more...] about Add Empty Cart To WooCommerce Cart Page

Add Navigation Bar Widgets to Genesis Child Themes

Genesis Theme Framework Code Snippets

How to add Primary and Secondary Navigation Widgets to Genesis Navigation Bars. Add the following code to your WordPress theme's function.php file, or a functionality plugin to add Primary and Secondary Navigation Widgets to Genesis. … [Read more...] about Add Navigation Bar Widgets to Genesis Child Themes

Prevent product category from displaying on WooCommerce shop page

Woocommerce Code Snippets

Add the following code to your theme's function.php file, or a functionality plugin to modify the WooCommerce Shop Page in order to prevent specific categories from displaying on the WooCommerce Shop Page. … [Read more...] about Prevent product category from displaying on WooCommerce shop page

Open GitHub Gists in New Window in WordPress

Screenshot of WordPress plugin php and html code

Add the following code to your theme’s function.php file, or a functionality plugin to modify Open GitHub Gists in New Window in WordPress. To open GitHub Gists in a new Window in WordPress adjust the jQuery in the Gist to include the "Target = _Blank" code. … [Read more...] about Open GitHub Gists in New Window in WordPress

Change the number of WooCommerce Related Products

Woocommerce Code Snippets

Add the following code to your theme's function.php file, or a functionality plugin to modify the number of WooCommerce Related Products that are displayed. … [Read more...] about Change the number of WooCommerce Related Products

Re-position the price on the single product page

Woocommerce Code Snippets

Add the following code to your theme's function.php file, or a functionality plugin to move the price under the excerpt in the short description on the WooCommerce shop page. … [Read more...] about Re-position the price on the single product page

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Interim pages omitted …
  • Page 9
  • Go to Next Page »

Primary Sidebar

Categories

  • Code Snippets
  • Development
  • File Management
  • Genesis Framework
  • Hosting
  • Legacy
  • Plugins
  • SEO
  • Tech Terms
  • Themes
  • User Experience
  • User Interface
  • WordPress Core
  • WordPress Functionality

Warning! Use at your own risk!

As always, use at your own risk and remember to backup your site prior to inserting new code.

© Copyright Jack Alltrade & Associates 2025 · Purely Supplemental™ is a trademark of Jack Alltrade & Associates