Do you want to change “You may also like” headline text on WooCommerce pages? You can easily add custom headline in place of “You may also like” title that displays above the WooCommerce products grid section at the bottom part. Preview: Title above the products grid PHP Snippet: Change the default title textt In the… Continue Reading
PHP Code
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 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
Change ‘Leave a comment’ title H3 to H4 tag in Astra Theme
By default ‘Leave a Comment’ title is H3 tag in the Astra theme. You can easily change this to a different headline tag say H4 using custom code. Following code will change ‘Leave a Comment’ title tag from H3 to H4. PHP Snippet: Leave a comment from H3 to H4 tag In the WordPress Dashboard,… Continue Reading
Move Reviews tab before the description on WooCommerce product pages
Show ‘reviews’ tab as the first tab among ‘description’ and ‘additional information’ tabs on a WooCommerce website to give more visibility to reviews. We have already seen the different approach for more reviews visibility by showing reviews separately out of the tabs section. Now, let move the ‘reviews’ tab position in the tabs section on… Continue Reading