Display Products from Same Category with Navigation

Display Products from Same Category with Navigation

Astra Pro Addon plugin』s WooCommerce addon allows displaying navigation on the single product page. Refer a document here to see the option in detail. Enabling this option will add previous and next button link on the WooCommerce single product page. 

By default, when you click on the next button, a product will be displayed on the basis of published date. If you want to show next and previous products from the same category only then use filter provided below. This filter will display next/previous product from the same category based on the product published date.  

For example – If category A has 10 products, then starting from 1st product next link will display all 10 products. After 10 products the next link will be disabled.

Paste following filter in child theme』s functions.php file. 

function astra_woo_product_previous_post_nav( $args ) {

$args = array(
'format' => '%link',
'link' => '',
'in_same_term' => true,
'excluded_terms' => '',
'taxonomy' => 'product_cat',
);
return $args;
}
add_filter( 'astra_woo_product_previous_post_nav_args', 'astra_woo_product_previous_post_nav' );

function astra_woo_product_next_post_nav( $args ) {

$args = array(
'format' => '%link',
'link' => '',
'in_same_term' => true,
'excluded_terms' => '',
'taxonomy' => 'product_cat',
);
return $args;
}
add_filter( 'astra_woo_product_next_post_nav_args', 'astra_woo_product_next_post_nav' );

From the above filter link argument can be updated as follows –

link: If you want to update next and previous link icons for navigation, update this argument. You can use  tag from various font libraries. You would then need to upload respective font library to Astra. Here is the article that shows how Font Awesome Icons can be used with Astra.

Hide the Text by Setting the Font Size to Zero

Hide the Text by Setting the Font Size to Zero

Designing your website to look and work perfectly on all screen sizes is more important now than ever. Sometimes it』s not so easy to do this. If sometimes you would like to hide some text or labels on any screen, you』ll be able to do this by setting font size to zero.

This document will help you do this with the Astra Theme.

Why Is This Important?

This improvement came with the Astra Theme 3.6.9 update. In earlier versions of the Astra Theme setting the font size to zero was not possible.

This will ultimately help you with responsive design.

How To Change This?

For all new websites, these changes will be applied automatically. 

For the existing websites, this improvement needs to be activated by adding a filter. This was done to allow you to check how these changes apply to your website and make any changes if needed. 

To enable this improvement, you need to add the following custom code (filter) to the functions.php file of your Child Theme:

add_filter( 'astra_zero_font_size_case', '__return_true' );

If you don』t have your Child Theme installed, please check this article on how to do it. If you are not sure how to add this code, please check this article.

How To Fix Not Being Able To Edit Submenu Colors, Above and Below Header?

How To Fix Not Being Able To Edit Submenu Colors, Above and Below Header?

Did you experience not being able to edit Submenu Colors with Header Footer Builder, or Above and Below headers you added using the Page Header module?

Astra Pro Addon version 3.5.7 corrects this, but the fix is not applied automatically to existing websites. Learn how to solve this. 

Why Do I Need This Improvement?

Before the Astra theme』s version 3.0 and Header Footer Builder that came with it, the 「Header Section」 module as part of the Astra Pro was providing some advanced options for the old Astra Header (like Swapping section positions on mobile, some typo options, or color options, etc.). 

The reason for this is that the Header Footer Builder was still dependant on the 「Header Section」 module for the users who switched from the old header versions. Thus, when this module was not activated in Astra Options the mentioned issues were appearing.

Though Astra Pro 3.5.7 update removed this dependency completely, this change won』t be applied automatically to your website to avoid unwanted effects on your existing websites.

How To Fix This?

For all new websites, this fix will be applied automatically when you update the plugin (Astra Pro). 

For the existing website, this improvement needs to be activated by adding a filter after updating the plugin. This was done to allow you to check how these changes apply to your website and make any changes if needed. 

To apply the improvement to your existing website, you would need to add a filter to the functions.php file of your Child Theme. If you don』t have your Child Theme installed, please check this article on how to do it. Please add the following filter:

add_filter( 'astra_remove_header_sections_dependency', '__return_true' );

If you are not sure how to add this code, please check this article.

Starter Templates – Wireframe Blocks

Starter Templates – Wireframe Blocks

Wireframing the structure of any website before beginning the design process is very important. It increases work efficiency, makes the workflow more effortless, and helps you get the final website design ready in less time. Now you can create your page or website mockup faster than ever with Starter Templates Wireframe Blocks.

This document will help you to understand how wireframe blocks work and what benefits they bring. 

What Are the Wireframe Blocks?

Wireframing means having a basic structure of your webpage like some sections, their layout, image position, text position, and so on. This gives you an idea of how you can manage content on any webpage.

But if you ever try creating wireframes using online tools or even with simple pen-paper, you will understand it is not quite easy. You will have to understand and study how online tool works. And well, working with pen-paper is neither convenient nor reliable as the design might end up undone.

Usually, you would create wireframes on external platforms and then transfer the designs to your website. Starter Templates offers ready-to-use wireframe blocks right inside the Gutenberg editor, helping you avoid those extra efforts. You can now create your wireframe design directly on your website.

Benefits of using wireframe blocks:

Provides basic structure to start any website design.Save your time in creating a wireframe with an external tool or traditional pen-paperJust replace image, text and add colors in the wireframe to make the final website design ready in less timeMake website designing smooth and effortless

How To Use the Wireframe Blocks?

The Wireframe blocks can be accessed through the page/post editor. You can add an unlimited number of blocks and create the whole page or post structure in no time.

Note

The Wireframe Blocks are available with Starter Templates version 2.7.0 and above. Once you update your Starter Template plugin, please navigate to Appearance > Starter Templates and sync the templates Library (the 「Sync」 button is located in the top right corner of the Library).

We』ll show you an example of how you can create a page structure that you can share with your team or client:

Step 1 – Navigate to Dashboard > Pages > Add New. In the top menu of the page editor, click on the 「Starter Templates」 button. This will open the Starter Templates Library;

Step 2 – In the top menu of the Library, click on the 「Wireframes」 tab. Here you can find all wireframe blocks available;

Step 3 – Here, you can filter the blocks by color and category and import the wireframe block to your page. You can do this by hovering over the block you need and clicking on the 「Import」 button;

Step 4 – Repeat steps 2 and 3 until you import all the blocks you need;

Step 5 – Once imported, you can reposition and modify blocks as you wish. Once your wireframe design is done, click on the 「Publish」 button to save your changes.

Now you』re ready to review and share your mockup with whomever you want. 

Once the final page design is decided, there is no need to create a new page. You can directly modify the wireframe blocks as needed and replace placeholders with your content.

That』s all. Your wireframe design is turned into the final design in no time.

How to Translate Astra Strings with WPML?

How to Translate Astra Strings with WPML?

With WPML, next to translating your website content, you can also manually translate strings added with Astra.

Before we proceed, you need to add WPML to your Astra website and turn it multilingual first. Furthermore, if you need help doing this, you can check this article.

How To Translate Astra Strings?

In this article, we will show you how to translate Astra Theme custom texts. As an example, we will translate the Site Title. Similarly, you can translate any other string on your Astra website.

You can follow these steps to translate Astra strings with WPML:

Step 1 – To begin with, login to your website and navigate to Dashboard > WPML > String Translation page;

Step 2 – Next, in the 「Search」 field on the top of the page, search for 「astra」. This will sort the string list to the Astra related strings;

Step 3 – Further, browse the string list below and find the strings you wish to translate. On the right side of that string line, you will see the WPML options and columns for each available language translation. 

Step 4 – To translate the string to any language, just click on the 「+」 icon to open the translation popup.

Step 5 – Finally, add your translation for the selected language and click on any empty space to close the popup. 

Step 6 – You will notice that the 「+」 icon changed to the 「pencil」 icon to mark that there is a translation saved for that language. 

You can repeat this process for each string and language.

How To Fix Right Margin for the Footer Widget Element

How To Fix Right Margin for the Footer Widget Element

Astra Theme version 3.6.7 brought a fix for the Footer Widget Element right margin. 

The update came with the fix for this, but the fix is not applied automatically to existing websites. Learn how to apply it to your website.

Why Do I Need This Improvement?

Previously the right margin wasn』t applying on the front end for the Footer Widget elements in your Footer Builder. 

Though Astra 3.6.7 update comes with the fix, this won』t be applied automatically to your website to avoid unwanted effects on your existing websites.

How To Fix This?

For all new websites, this fix will be applied automatically when the theme is updated. 

As mentioned, for the existing website, this improvement needs to be activated by adding a filter. This was done to allow you to check how these changes apply to your website and make any changes if needed. 

To apply the improvement to your existing website, you would need to add a filter to the functions.php file of your Child Theme. If you don』t have your Child Theme installed, please check this article on how to do it. Please add the following filter:

add_filter( 'astra_apply_right_margin_footer_widget_css', '__return_true' );

If you are not sure how to add this code, please check this article.

What To Do When Product Count Is Not Visible on Mini Cart With Astra Pro?

What To Do When Product Count Is Not Visible on Mini Cart With Astra Pro?

Did you notice that the product count on WooCommerce or EDD mini cart in your Header is not visible? You might need to modify the Product Count Color for your Astra Pro mini cart icons (any but the default). This document will show you how to do it.

Why Did This Happen? 

Astra Pro WooCommerce and EDD Modules bring the option to change the default mini cart icon. You can set one of the Astra Pro icons by navigating to the Mini Cart Header element (General tab).

By default, the font color for the number of items in the cart (Product Count) is white. Setting your Cart color to white too will create a situation that the number of items becomes invisible though the number is still actually there (white color on white color).

This is easily solved by setting product Count Color to any color other than white.

How To Set Product Count Color?

In this case, you should additionally set another color for the number of items using the 「Count Color」 option.

The 「Count Color」 is available with Astra Pro Addon since version 3.5.9. You can set it up by following these steps:Step 1 – Login to your website and make sure that your Astra Pro Addon plugin is active;

Step 2 – Navigate to Appearance > Customize > Header Builder > Cart > Design;

Step 3 – Set 「Count Color」 to another color. Click 「Publish」 to save changes.

Fix Swap Sections Not Working on Mobile (Old Astra Header)

Fix Swap Sections Not Working on Mobile (Old Astra Header)

Astra』s old header provides some additional options for mobile header editing with Astra Pro, one of them being Swap Sections. If it happens that this option is not working on your website, this document will help you fix it.

Astra Pro Addon version 3.5.7 corrects this, but the fix is not applied automatically to existing websites. Learn how to apply it to your website.

Why Do I Need This Improvement?

The Swap Section feature is available for the Above and Below headers with a two-section layout. The feature allows the headers sections to swap places on mobile viewport if needed.  

If you have this option activated, you might have noticed that the feature is not giving the desired result. If this is the case, the Astra Pro version 3.5.7 comes with the solution for this.

Though Astra Pro 3.5.7 update fixes this issue, it won』t be applied automatically to your website to avoid unwanted effects on your existing websites.

How To Fix This?

For all new websites, this fix will be applied automatically when you update the plugin (Astra Pro). 

As mentioned, for the existing website, this improvement needs to be activated by adding a filter after updating the plugin. This was done to allow you to check how these changes apply to your website and make any changes if needed. 

To apply the improvement to your existing website, you would need to add a filter to the functions.php file of your Child Theme. If you don』t have your Child Theme installed, please check this article on how to do it. Please add the following filter:

add_filter( 'astra_apply_swap_mobile_header_sections_css', '__return_true' );

If you are not sure how to add this code, please check this article.

How to Roll Back to A Previous Version of Astra?

How to Roll Back to A Previous Version of Astra?

This document will show you how to roll back your Astra theme or Astra Pro version in few simple clicks.

You can easily downgrade to the previous version with our Rollback feature, which is available since Astra Pro addon (plugin) version 3.6.1. 

Why Is the Rollback Feature Important?

Keeping your theme and plugins updated is essential. However, sometimes after the update, you might encounter some problems – for example, incompatibilities with some third-party plugins.

In this case, the option to roll back to a previous version of Astra can come in handy. Going back to the previous version ensures that your website will be fully functional while waiting for the solution.

Once the issue is fixed, you can update the theme or plugin again to the newest version.

How To Use Rollback Feature?

The rollback feature for both theme and plugin is available only for users with the Astra Pro license. Please make sure you have Astra Pro installed and activated. 

Note:

The Rollback is a premium feature and is not available with the free Astra theme.

To roll back your Astra theme or Astra Pro plugin, please follow these steps:Step 1 – Navigate to Dashboard > Appearance > Astra Options;

Step 2 – You will find the 「Rollback Version」 options in the right-side sidebar. Just scroll down to this section;

Step 3 – You will notice the separate options for Astra Theme and Astra Pro. Click on the appropriate dropdown menu, and select the desired version to which you want to roll back. Keep in mind that you』ll have a limited number of previous versions available. 

Step 4 – Click on the 「Rollback」 button and confirm the rollback in the popup window to start the process. It will replace the newest version with the required previous version.

That』s all. Once the rollback is done, your Astra theme or Astra Pro will be reverted to the previous version.

Remove Spacing Around Elementor Pro TOC Widget

Remove Spacing Around Elementor Pro TOC Widget

When building your website with Astra Theme and Elementor Pro you might have noticed a larger spacing around the 「Table Of Contents」 (TOC) widget than needed. 

Astra Theme version 3.6.7 came with the fix for this, but the fix is not applied automatically to existing websites. Learn how to apply it to your website.

Why Do I Need This Improvement?

The additional spacing was created as a result of the Astra theme』s CSS for the default 「ul」 tag. The tag was affecting Elementor Pro』s TOC widget. 

You can check the following example:

This is the Elementor Pro TOC widget with Hello Elementor theme:

And here, you can see how the same widget look when used with the Astra Theme:

Though Astra 3.6.7 update fixes this issue, it won』t be applied automatically to your website to avoid unwanted effects on your existing websites.

How To Fix This?

For all new websites, this fix will be applied automatically when the theme is updated. 

As mentioned, for the existing website, this improvement needs to be activated by adding a filter. This was done to allow you to check how these changes apply to your website and make any changes if needed. 

To apply the improvement to your existing website, you would need to add a filter to the functions.php file of your Child Theme. If you don』t have your Child Theme installed, please check this article on how to do it. Please add the following filter:

add_filter( 'astra_remove_elementor_toc_margin', '__return_true' );

If you are not sure how to add this code, please check this article.