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 LifterLMS plugin installed and activated.
Astra Pro plugin provides a shortcode for LifterLMS that allows displaying a profile link. The shortcode can be used anywhere on the website. It will display a profile picture for logged-in students. Clicking on it will display student profile details.
The LifterLMS addon in the Astra Pro provides a shortcode [astra_lifterlms_profile_link]
This can be used on various locations like header, footer, sidebar, widgets, page builders, etc.
To use the shortcode, activate the LifterLMS addon from Astra Options. (screenshot)
Below is the example that shows how can this shortcode be used –
How to Display Lifterlms Profile Link in the Primary Header?
Below are the detailed steps –
Step 1 – Make sure to activate LifterLMS and Astra Pro plugin. Activate LifterLMS addon from Astra Options. (screenshot)
Step 2 – From the WordPress dashboard navigate to Appearance > Customize > Header > Primary Menu.
Step 3 – From the Last Item in Menu drop-down, select Text / HTML.
Step 4 – Paste the code in the input area. Profile link will appear in the header as shown below –