We already knew that we can overwrite the existing Settings Form fields and frontend.php file of a module via hooks. But sometimes we require to modify the other files like fronend.js.php, frontend.js and other inner files of a module as per the site requirement. We can do this without touching the core plugins (like BB,… Continue Reading
Archives for January 2020
Remove Description text from Category Archive Pages in Astra theme
Do you want to remove description text from category archive pages when using the Astra Theme? This can be implemented with a filter hook targetting using the code shared below. Code Snippet: Remove category description text In the WordPress Dashboard, go to Appearance > Theme Editor and open the functions.php file of your Astra child… Continue Reading
Add H1 tag to website Logo on Homepage of Astra theme
Want to add the H1 tag to website logo in the Astra theme for SEO reasons? While inner pages have their page title as H1 tag, you may want to wrap logo with H1 tag for homepage only when using Astra theme. This can be achieved via custom code. Code Snippet: Add H1 tag to… Continue Reading
Display advt after specific post on Blog Page in Astra theme
Do you want to display advertisement after a specific number of posts on the blog page? This can be achieved in the Astra theme using custom code. Besides executing ad code, you can use the same code logic to display any content between posts listing on the blog page. Display ads between posts on Blog… Continue Reading
Show Avatar image before the Author Name in Astra theme
Do you want to display the author image next to the author name in the post meta area under the post title in the Astra theme? By default, only the text-only author name display in that location. However, using a few lines of code can help you add author image next to the author name.… Continue Reading
Show ‘Add to Cart’ button on image hover in WooCommerce on Astra
Do you want to display a quick “Add to Cart” button on hover over WooCommerce product images while using Astra theme? This small change can make your WooCommerce store more user-friendly by allowing easy “add to card” action. Preview: Add to Card button on hover Minimum Requirements: Astra Theme Astra Pro add-on WooCommerce Enable Quick… Continue Reading
Enable Gutenberg Blocks Editor for Custom Layouts in Astra theme
Custom layouts in Astra theme is a very handy feature allowing you to display layout or content at a specific location or parts of the theme layout. By default, Gutenberg block editor is not enabled for custom layouts in the Astra theme. However, you can enable it to use blocks editor for creating content using… Continue Reading
Show Description Text under every Menu Item in Astra Theme
Want to add additional description text below every menu item in the header area of the Astra theme? This can be achieved using the description option in WordPress. Once you enable this option, output this description text using custom PHP code and style it using custom CSS code. Preview: Menu items with Description Text Enable… Continue Reading
Show row or module based on visitor country location in Beaver Builder
Do you want to display content in Beaver Builder layout based on visitor country (code) location? Beaver Themer addon provides a lot of conditional options but such location-based targeting is not available by default. However, this can be implemented via Conditional Logic API. To implement this, we shall build conditional logic “User Country Code”. Preview:… Continue Reading
Shortcode to output ACF custom fields in Beaver Themer
Do you want to output ACF custom field value manually using a shortcode in a Beaver Builder layout? By default, modules in Beaver Builder allows you to connect to specific custom fields of your choice with simple click routines. However, for an even more custom approach, you can output custom field values manually using easy… Continue Reading