Astra Compatibility with LearnDash Version 3.0

Astra Compatibility with LearnDash Version 3.0

The following article will help you get an overview of LearnDash – Overview of LearnDash integration in Astra

Recently LearnDash released version 3.0 with major improvements. In this version, few new things were added while few of the previous structures were changed.

LearnDash Legacy mode

In case you still wish to continue with the previous version you can select a Legacy mode –

You can find the settings under WordPress Dashboard > LearnDash LMS > Settings > General > Design & Content Elements > Active Template.

When you choose Legacy mode Astra will continue working as it was previously. Astra adds LearnDash settings in the customizer under –

1. Customizer > LearnDash

2. Customizer > LearnDash > Colors [Astra Pro]3. Customizer > LearnDash > Typography [Astra Pro]

Below are the related documents –

LearnDash Integration in Astra ThemeLearnDash integration in Astra Pro

LearnDash 3.0 mode

You can switch to the LearnDash 3.0 template from WordPress Dashboard > LearnDash LMS > Settings > General > Design & Content Elements > Active Template. This will enable all the new LearnDash features on your site.

Astra theme and Astra Pro – version 1.8.6 and above, can work seamlessly with LearnDash 3.0 version. Astra disabled a few of the settings that were dependent on LearnDash previously and that are no longer usable. Also, LearnDash 3.0 provided some new attractive features that were available with Astra before. We removed such duplicate options too as we do not want to bloat your site with identical options.

Below are some settings that you will find disabled from Astra customizer –

1. Customizer > LearnDash – This tab held a few layout options for LearnDash pages. Like –

1.1 Distraction Free Learning: LearnDash 3.0 has a similar feature – Focus Mode. ( LearnDash LMS > Settings > General )

Note: The Astra Meta Settings will not work when the Focus Mode of LearnDash is enabled.

1.2 Student』s Gravatar in Primary Header: Enabling Focus Mode will add Student』s Gravatar by default.

1.3 Course Content Table: LearnDash 3.0 doesn』t support table structure anymore. All tables are now converted into fields.

2. Customizer > LearnDash > Colors [Astra Pro] – This tab will be available in the customizer with new color options. We will see all the new options in the later part of this document.

3. Customizer > LearnDash > Typography [Astra Pro] – This tab will be disabled. Previously typography options were available for LearnDash Tables. Since the table structure will not be available these settings are no longer usable. LearnDash pages will inherit typography from Customizer > Global > Typography > Base Typography.

New Colors & Background options for LearnDash 3.0 with Astra Pro

LearnDash 3.0 provides basic colors options under WordPress Dashboard > LearnDash LMS > Settings > General > Design & Content Elements. Below are the available settings with LearnDash –

Accent Color: This will be a base color for the LearnDash pages. It will be applied to – buttons, action items, and highlights Progress Color: Color used for all successful progress-related items (completed items, certificates, and progress bars).Notifications, Warnings, etc.: This color is used when there are a warning, important messages.

With Astra Pro, it provides more specific color options for your LearnDash pages. These will be available in the customizer under Customizer > LearnDash.

Note: Make sure you have activated LearnDash addon from Appearance > Astra Options.

In color settings, you will see a checkbox saying – Check this if you wish to overwrite LearnDash Colors. This will allow you to apply Astra colors over the above LearnDash colors.

Link Color: This will be applied to links on LearnDash pages, lesson panels, etc. Highlight Color: This will work as a background for buttons, highlighted tabs, hovered text/link, etc. Highlight Text Color: It will work with the above highlight background color as well as text color for progress items. Progress Color: Progress bars, completed items, certificates will have this as the background color.

We provide more styling options in dedicated modules of Astra Pro Addon plugin. Learn more about the LearnDash module of Astra Pro Addon.

How to Add Icons to Menu Items?

How to Add Icons to Menu Items?

Icons in the navigation menu give more idea about the menu item. Icons can be added to a menu item with the following ways –

1. With an external plugin

Any external plugin that can provide such functionality can be used. Plugins like Menu Icons by ThemeIsle allows adding icons to menus.

2. With Font Awesome icon tag

Font Awesome library offers a number of icons. These icons can be added to menu items with the following steps –

Step 1 –  Astra does not come with the Font Awesome library. So the external plugin can be used to load the library to the theme. You can choose a plugin from WordPress Repository that allows loading a Font Awesome library to site. For Example – Better Font Awesome.Step 2 – Install the selected plugin on the site.Step 3 – Now visit a menu item where you want to add an icon. Menus are available under Appearance > Menus.Step 4 – Click on the menu item and in the Navigation Label add tag for the icon from Font Awesome library.

For Example – If you want to add address-book icon to the menu item – Contact. Then after following Step 1 and 2, you can copy the tag code for address-book from the Font Awesome library. Just visit the icon page, select the required icon and copy the code. The code for address-book icon can be copied from the link here. Visit the menu item – Contact and paste the code in the Navigation Label.

Astra 2.2 for Existing Users

Astra 2.2 for Existing Users

Astra 2.2 brings new customizer options for headings and buttons.

What will happen if you update the theme and plugin?

If you are existing Astra user and update Astra theme and Astra Pro to version 2.2, you would be able to see these new options in the customizer, But they will NOT be functional. That means you can see the new options but they will not work and cause any change on the website.

Even after updating both theme and plugin, everything will remain same on the website.

Why this is so?

Astra 2.2 adds new customizer options and these options would impact the current way customizer settings are applied. And so we have restricted inheriting any automatic changes on existing websites, to ensure that there』s no unexpected effect.

We have taken the utmost care that Astra 2.2 won』t disturb your existing website design and structure.

How existing users can avail Astra 2.2 features?

A simple answer is – using a single line of code.

To make Astra 2.2 features work on existing websites, you can use custom filter code.

As mentioned above, even if the Astra theme and Astra Pro are updated to version 2.2, new customizer options will not work unless the custom filter is added to the child theme.

How existing Astra users can work with Astra 2.2 update?

1. Update the Astra theme and Astra Pro to version 2.2 from the WordPress Updates page. 2. As mentioned above, nothing will be changed on the website.3. Now copy the following code and paste it into the child theme』s functions.php file. 4. For Theme, use –

add_filter( 'astra_page_builder_button_style_css', '__return_true' );

5. For Addon, use –

add_filter( 'astra_addon_page_builder_button_style_css', '__return_true' );

Note: Do NOT remove this code in order to keep using Astra 2.2 features.

After adding custom filters –

Once you add above code to the child theme』s functions.php file, new Astra 2.2 options will be working for you.

With this, you might notice a slight change in buttons.

This is because static default value for buttons line-height is changed in this update. That might change the existing look of buttons.

You can alter it easily from the customizer buttons settings and it will be applied globally to all buttons on the website.

How to Display a Mini Cart Anywhere Using Shortcode? (Astra and EDD)

How to Display a Mini Cart Anywhere Using Shortcode? (Astra and EDD)

This is a premium feature available with Astra Pro Addon plugin. To use this Pro feature, you need to have the Astra theme along with the Astra Pro Addon installed on your website.

And before that please verify if you have the Easy Digital Downloads plugin installed and activated.

The Easy Digital Downloads addon in the Astra Pro provides a shortcode [astra_edd_mini_cart] to display the mini cart icon anywhere you want. This can be used on page builders/sidebar widgets etc.

[astra_edd_mini_cart] had an attribute direction for the direction this should open the mini cart on hover.

Options:[astra_edd_mini_cart][astra_edd_mini_cart direction="top left"][astra_edd_mini_cart direction="bottom right"][astra_edd_mini_cart direction="top right"]

The design of the cart in the menu can be fully customized using the options in WordPress customizer. The setting can be found in the customizer under Customize > Easy Digital Downloads > General.

Related Documents:

Ultimate Guide on WooCommerce Shortcodes

Premium Starter Templates – Install and Activate License

Premium Starter Templates – Install and Activate License

In the Starter Templates library, templates with PREMIUM tags are accessible only to those who own the Essential Bundle or Growth Bundle.

Once you purchase Essential Bundle or Growth Bundle, follow the steps below to install the plugin and activate its license. Activating the license will allow you to import starter templates with the 『Premium』 tag.

Step 1 – Login to your store account.Step 2 – Visit Account > Downloads. Step 3 – Choose to download Premium Starter Templates plugin.

Step 4 – From your WordPress dashboard, navigate to Plugins > Add New > Upload Plugin and upload zip from the above step.

Once you activate the plugin you will have to activate the license key.

Step 1 – Visit store account and go to Account > Licenses and copy the license key.

Step 2- Navigate to WordPress dashboard > Plugins > Installed Plugins > Premium Starter Templates and click on Activate License. A popup window will appear where you need to enter the license key.

Note: The Premium Starter Templates is a different plugin than the Starter Templates plugin that is available for free on WordPress.org.

Once you are set with the plugin start importing your favorite template.

Related Docs –

How to Import Complete Site with Starter Templates?How to Import Single Page Starter Templates?

General – EDD Module Options

General – EDD Module Options

This is a premium feature available with Astra Pro Addon plugin. To use these Pro features, you need to have the Astra theme along with the Astra Pro Addon installed on your website.

Also, make sure that you have the Easy Digital Downloads plugin installed and activated.

You can add a Cart Icon using Easy Digital Downloads module available with Astra Pro. Please refer document, to begin with, Easy Digital Downloads module.

Header Cart Icon

Header Cart Icon is the icon that appears at the end along with the primary menu in the header. Refer How to Add EDD Cart in Header?

This cart icon can be customized with the following settings – Customize > Easy Digital Downloads > General

Icon: There are 4 different kinds of Icon styles available for you to choose depending on the products you are selling on your store.Default, Cart, Bag, BasketStyle: You can set filled / outline styles to the icon.Display Cart Totals: When a buyer adds a particular amount of products in the cart, that number along with the total price addition appears in the Display cart Totals.Display Cart Title: It simply displays 「Cart」 name on the menu.

Why font-display property is added to Astra?

Why font-display property is added to Astra?

With Astra Version 1.8.3 and above, improvement is added with property font-display: fallback; for loading Astra Font.

@font-face {
font-family: "Astra";
src: url( https://wpastra.com/wp-content/themes/astra/assets/fonts/astra.woff) format("woff"),url(
https://wpastra.com/wp-content/themes/astra/assets/fonts/astra.ttf) format("truetype"),url( https://wpastra.com/wp-content/themes/astra/assets/fonts/astra.svg#astra) format("svg");
font-weight: normal;
font-style: normal;
font-display: fallback;
}

While loading a website, there is a very short period of time (100ms according to Google) for which text will not display in a font applied to it. That means custom fonts ( Astra fonts ) will be invisible for a small period of time. Once your website is fully loaded text will display with a font set from the customizer.

For this short period of time browsers have introduced new property font-display which adds a fallback font until custom font is loaded.

For more information, please refer to the doc below – https://developers.google.com/web/updates/2016/02/font-display

『The preview could not be loaded』 Pop Up with Astra and Elementor

『The preview could not be loaded』 Pop Up with Astra and Elementor

Are you working with the following setup on your WordPress site –

Astra theme ( with/without Astra Pro Addon plugin )Elementor plugin ( with/without Elementor Pro plugin )

While trying to build a page, sometimes you might face the popup in Elementor that says 『The preview could not be loaded』. This problem can be caused due to many reasons.

1. For initial debugging refer the following document by Elementor How to Fix the 『Preview Could Not Be Loaded』 Error

2. One of the reasons of this problem can be hosting. The following solution might work in some scenarios but it is not always the case. Initially, check the above document and then try the following solution. Sometimes the plugin reaches a default limit set with the server. You can try raising the default limit with the following code. The code needs to be added into the .htaccess file

SubstituteMaxLineLength 10M

Get SkillJet Access – Brainstorm Force Customer

Get SkillJet Access – Brainstorm Force Customer

If you own the Astra Growth Bundle by Brainstorm Force, you can easily unlock SkillJet access with following steps –

Step 1: Login to your store account, hover on the Account menu and select SkillJet Academy.

Step 2: Once on the SkillJet Academy page, click on the 『Access SkillJet』 button.

Done!

You will be logged in to the SkillJet website automatically.

Go ahead and access your courses from the 『My Courses『 page.

How Does Astra Work with the Gutenberg Editor?

How Does Astra Work with the Gutenberg Editor?

Astra gives you a great experience of building a page with Gutenberg editor. Below are the points that explain how Astra suits best with Gutenberg editor.

Support Container Layout 

Container layout set for Astra from the customizer will be applied to the Gutenberg editor as well. So that user will get the experience of how the final page will look in the frontend. Read more about the container layout here.

Gutenberg editor with Boxed / Content Boxed – Container Layout

Gutenberg editor with Full Width / Contained – Container Layout

Note: It is not recommended to use Full Width / Stretched layout with Gutenberg editor. It is specially designed for page builders which need full control over the container width. So if you enable Full Width / Stretched layout, the content will not be stretched to the fullest with Gutenberg editor but will be stretched in the frontend.

Support Wide / Full width alignment options

Gutenberg editor provides wide width and full width option for blocks like Image, Image Gallery, Cover Image, Posts etc. Astra supports these width options depending on the selected container layouts.

Wide width option will display full image but will have some space around it. While full width option will stretch the image end to end. In Boxed and Content Boxed container layout, full width image will stretch as per the width of the box. That means it will not display out of the box.

Image with Boxed / Content Boxed – Container Layout

Image with Full Width / Contained – Container Layout

Note: If the sidebar is enabled for the page, the image will not be stretched to fullest. As doing so will overlap the sidebar content.

Backend same as a frontend 

Gutenberg editor has the object to provide a visual editing experience. So with Astra, we make sure that the editor looks similar to the frontend. The customizer settings for background colors, text colors, typography etc. can be seen while editing the page. So that you can have an idea of how the page will look in the frontend.

Style blocks nicely

Astra is tested with every block of Gutenberg. Customizer settings will be applied to all Gutenberg blocks.

Support for Astra shortcodes

Astra shortcodes that come with Astra Pro Addon plugin will work best with Gutenberg editor.