Add Modern Tribe Event Categories as CSS classes in Event Posts

Modern Tribe Event Category

Event Categories are not added as CSS classes to individual Event Posts in the Modern Tribes Event Plugin for WordPress,  however you can use the body_class filter to add them in. add_filter( ‘body_class’, ‘cp_event_taxonomy_in_body_class’ ); // Ref – https://theeventscalendar.com/support/forums/topic/add-category-name-as-body_class/ // Add event categories terms to body class of event posts function cp_event_taxonomy_in_body_class( $classes ){ global…

Read More

Add Search & Filter Pro to Beaver Themer Post Module CPT Archive

Search Filter Beaver Themer Cpt Archive

You can use Search and Filter Pro with Beaver Builders Themer Post Module columns post layout, this guide goes through the tweaks needed and uses a CPT (custom post type) archive page. Create your Posts Module CPT Archive Page via Themer       Create your Posts Module with the columns layout on a CPT…

Read More

Add Search & Filter Pro to Beaver Builder Masonry Grid

Mason Ajax Beaver Search Grid

You can use Search and Filter Pro with Beaver Builders Themer Post Module grid masonry layout, this guide goes through the tweaks needed and used the main blog post archive page. Create your Posts Module Archive Page Create your Posts Module layout on the main Post Archive page with Beaver Themer and add in your…

Read More

jQuery replace an image on click

swap image on button click with jquery

jQuery replace an image on click- example below, this is a method to swap numerous images in HTML by manipulating the images src attribute value from the click of another element such as a button. HTML <div class=”button-container”> <button class=”black-button”></button> <button class=”red-button”></button> <button class=”blue-button”></button> <button class=”yellow-button”></button> </div> <img id=”change-image” src=”/wp-content/uploads/2018/09/black.jpg” alt=”Black Image” /> jQuery jQuery(document).ready(function($){ $(‘.black-button’).on({…

Read More

Remove WordPress Backend Dashboard Widgets

remove-dashboard-widgets

WordPress backend dashboard widgets can be annoying, dangerous, fugly or anxiety producing overload for those leaning to the OCD side. Or you may want to not have your client install Gutenberg from the Try Gutenberg widget and make life interesting or inadvertently visit the Customiser and wreck havoc on your design. Luckily you can remove…

Read More

Script a WordPress Valet Install on macOS – bash/wp-cli/wp-cli-valet

valet-cli-wp

By creating a bash script with wp-cli and wp-cli-valet commands on macOS you can create a streamlined and tailored WordPress install using Valet on your local development, this reduces repetitious tasks after a site installation – similar to a blueprint in other WP local developments. The type of tasks may include: Adding and activating a theme…

Read More