Code Snippets

Kadence Theme – Display 2 Different Menus On Different Pages Using Element Hook, PHP & Plugins

Show Widget Area Using Hooked Element In Kadence Create a PHP function that adds a Widget area to the Kadence “Above All Content” Hook. Step-by-step instructions to register a custom [widget_area] shortcode so it can be used anywhere shortcodes are accepted in WordPress including in Kadence Elements. Add the PHP to site via Code Snippets WordPress plugin Kadence Element …

Kadence Theme – Display 2 Different Menus On Different Pages Using Element Hook, PHP & Plugins Read More »

Dropdown Select Menu Displaying Post Titles of Custom Post Type

Dropdown Select Menu displaying post titles from Custom Term “National Clients” from Custom Taxonomy “Client Status” from Custom Post Type “Clients” This is for a music recording studio, displaying National Clients and Local Clients via a dropdown select menu. The PHP and HTML code is placed on the WordPress site via Code Snippets WordPress plugin. …

Dropdown Select Menu Displaying Post Titles of Custom Post Type Read More »

Kadence WP – Remove Column From Content Flow On Mobile

Goals: 1) On desktop, laptop, tablet: fill screen with 2 columns (that have unique content in each column). 2) On mobile phone: display only 1 column (and its content) and remove the other column (and its content) from the content flow. The final CSS that accomplishes the goal The desktop layout is made using the …

Kadence WP – Remove Column From Content Flow On Mobile Read More »

Add New Menu to WordPress Site Using Code

1. Register a new menu in WordPress admin Use WordPress’s register_nav_menus to register the menu so it appears in Appearance > Menus > Menu Locations. Place the below PHP code in Code Snippets plugin: Important: In the Code Snippet plugin, right below the PHP code, make sure and choose Run snippet everywhere. Otherwise the newly-registered …

Add New Menu to WordPress Site Using Code Read More »

WooCommerce Shop "This is where you can add new products to your store"

WooCommerce Shop – Remove “This is where you can add new products to your store”

Remove “This is where you can add new products to your store” Remove the description text from just below the “Shop” title on the WooCommerce Shop page. I have no idea why this description text even exists! Note: This will NOT remove the description text from other Product Category Pages. Source: https://wordpress.org/support/topic/remove-text-this-is-where-you-can-add-products-to-your-store/#post-11548982 I use the …

WooCommerce Shop – Remove “This is where you can add new products to your store” Read More »

Facebook Pixel – Manual Integration

Notes on: Facebook Pixel Code About Facebook Pixel Standard and Custom Events – Facebook Here’s what your website code will look like with standard or custom events installed: Your website’s original code. Your Facebook pixel base code. Your standard or custom event code. The example above shows an add to cart event, which is a …

Facebook Pixel – Manual Integration Read More »

Scroll to Top