How do you add the category meta section above the entry title on single post details? I am sharing the simple step for this. I am using the free version of Astra theme. Disabling The Category Meta for Single Post At first we will disable the category meta option for single post. You can easily… Continue Reading
Archives for August 2019
Adding target “_blank” on Button Extra Navigation in Astra Theme
Adding Button as Last Menu Item at Header You can easily add the custom action button at right side of the header menu items via Astra Customizer. Go to Astra theme customier Click on the Header -> Primary Menu section Select “Button” from Last Item in Menu drop down Complete the settings as per your… Continue Reading
Convert Blog Page to 3 Columns in Essence Pro Theme
How do you convert the 2 columns blog page to 3 columns? Here is the simple procedure. You will edit the style.css file of your Essence Pro theme. Open the style.css file on editor and do the following changes: And
Change the “Beaver Builder” text in the admin bar
Here is the simple PHP snippet which will replace the “Beaver Builder” text in all places with your custom text. Put the following PHP code into your theme’s functions.php file. I use the custom text “Paul Builder” in the code. You will replace it with yours one.
Integrating Toggle Image Content into Elementor Accordion Widget
I add the toggle image content column at right side of the Elementor Accordion widget. Toggle image content means that image at right side will change when you will click on the Accordion title.
Adding CSS Class name to Post Tags
1 2 3 4 5 6 7 8 9 10 11 12 |
add_filter( 'term_links-post_tag', 'paulc_add_custom_class' ); function paulc_add_custom_class( $links ) { $new_links = array(); foreach ( $links as $link ) { preg_match( "|<a.*[^>]*>([^<]*)</a>|i", $link, $matches ); $class = strtolower( $matches[1] ); $link = str_replace( 'rel="tag"', 'class="' . str_replace( " ", "-", $class ) . '" rel="tag"', $link ); $new_links[] = $link; } return $new_links; } |
Simply add the above code into the functions.php file of your active theme. It will add the tag slug to class parameter of anchor tag.
Toggle Button Shortcode for WordPress Site
I’m showing how you will create a simple toggle button effect with PHP & JQuery for your WordPress site. I am making the shortcode because I can easily add this button at any pages/posts or custom post type content. PHP Open the functions.php file of your active theme and add this code at end of… Continue Reading