• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

WordPress Tips and Tricks

  • Home
  • WordPress Tutorials
  • Useful Links

Code Snippets

Home - Code Snippets

Prevent Links in Gravity Forms Paragraph Text Field

December 27, 2020 by wptricks

I was having an issue with link spam in a Gravity Forms paragraph text field. Here is a code snippet that validates the field and prevents link submissions. Place the code in your theme’s functions.php file. Replace ‘[form number]’ with your form number. Replace ‘[field number] with the field number.

Read morePrevent Links in Gravity Forms Paragraph Text Field

Meta Description on Pages

November 20, 2020 by wptricks

Enable the automatic generation of the meta description on pages in WordPress.

Read moreMeta Description on Pages

Remove Product Types Options in WooCommerce

October 3, 2020 by wptricks

I needed to remove several of the options from the product type dropdown in WooCommerce. This may not be the correct way to do it but it does hide them. From This: To This: Code:

Read moreRemove Product Types Options in WooCommerce

Preload Icomoon Font

September 8, 2020 by wptricks

Preload Icomoon Font in <head> for Avada theme.

Read morePreload Icomoon Font

Add Custom Taxonomy to WooCommerce

August 19, 2020 by wptricks

Add a custom taxonomy to WooCommerce products.

Read moreAdd Custom Taxonomy to WooCommerce

Change Yoast SEO NoIndex Meta Robots Tag

November 21, 2019 by wptricks

Yoast SEO was adding noindex to the robots meta tag on all custom post types archives. The following code changes it to index.

Read moreChange Yoast SEO NoIndex Meta Robots Tag

A Few of Our Favorite Products


Copyright © 2023 · WordPress Tips and Tricks · All Rights Reserved

Back to top