How to Remove Previous and Next Link from a Single Blog Post?

How to Remove Previous and Next Link from a Single Blog Post?

If you wish to remove the navigation (Previous and Next) links from the single blog post, this article is for you.

The navigation links can be removed with the filter. Below is the code for the required filter-

add_filter( 'astra_single_post_navigation_enabled', '__return_false' );

Where should I put this code?

We recommend you to put the filter code in the child theme』s functions.php file. Below are the steps that explain how to put the custom code into the child theme』s functions.php-

Install and activate Astra Child Theme.Open your WordPress site via FTP. We would recommend you to use FileZilla. Navigate to wp-content > themes > astra-child Right click functions.php and select View/EditAdd your code at the bottom of the file and save it.

It will remove the navigation link from all single blog post.

How to Add Google Tag Manager Code to Astra?

How to Add Google Tag Manager Code to Astra?

Custom Layouts module available with Astra Pro Addon plugin allows adding Google Tag Manager code to the website. It provides hooks so that you can insert custom code at various locations on the website without editing theme』s core files.

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.

Google Tag Manager code has two code snippets. One to be added as close to the opening tag as possible and other immediately after the opening tag. To add both code snippets, add two different Custom Layouts. Below are the steps to create Custom Layout and add code using hooks.

1. Custom Layout to add code to  tag – 

Activate the Custom Layouts module from Astra Pro.Add a new Custom Layout. Insert the code in the Code Editor.Select Hooks layout and add wp_head action.Choose to display it on Entire Website.Publish the layout.

2. Custom Layout to add code to  tag – 

Add a new Custom Layout. Insert the code in the Code Editor.Select Hooks layout and add body_top action.Choose to display it on Entire Website.Publish the layout.

Google Fonts Not Loading with Astra

Google Fonts Not Loading with Astra

When you navigate to Typography tab in the customizer and choose to set font-family for text/heading or other content. You might see a blank list under the title Google Fonts. This means the Google Fonts available with astra are not loading on your site.
This can happen because of several reasons. One of them is described below-

Reason:

Astra includes a file with a list of all the Google fonts. This file is read when displaying all google fonts in the customizer. Some of the hosting providers have incorrect file permissions which do not allow reading the file. And so the Google Fonts list display empty.

How to fix:

1. Contact your host provider and ask them to provide a necessary file permission.
2. If the above point does not help, you can force wp_filesystem to use file_get_* functions by adding a custom code. This will allow displaying all Google Fonts on your site. Add the following constant in your wp-config.php file.
define( 'FS_METHOD', 'direct' );

Sidebar / Container Options in Customizer for Learndash Not Working?

Sidebar / Container Options in Customizer for Learndash Not Working?

Some options in the customizer (Sidebar, Container, Distraction Free Learning) work seamlessly on the pages that are created from LearnDash Custom Post Type.

Below are the examples of LearnDash Custom Post Type Pages:

Single course pagesLessonsTopicsQuizzes

However, if you have created any layouts with the help of LearnDash shortcodes, the options in customizer mentioned above will NOT work. Instead, you can set the sidebar and container for those pages from the meta options.The LearnDash Layout options can be found at Appearance > Customize >  Global > Container:

How to Download Older Version of Astra Theme or Astra Pro Addon plugin?

How to Download Older Version of Astra Theme or Astra Pro Addon plugin?

Astra is a free WordPress theme. The development for the theme is going on with GitHub on the link here. Sometimes you may need an older version of the theme. previous version zip for Astra theme can be downloaded from WordPress repository.

Below is the URL that allows direct downloading zip for required version –

https://downloads.wordpress.org/theme/astra.required_version.zip

Note: In place of required_version enter version number of the theme.

For Example –

If you wish to download zip for theme version 1.0.2 then URL will be –

https://downloads.wordpress.org/theme/astra.1.0.2.zip

You can find the changelog for a theme here.

In case you need the previous version for Astra Pro Addon, write to Astra Support on the link here.

How to Add Font Awesome Icons in Astra?

How to Add Font Awesome Icons in Astra?

Astra does not come with Font Awesome Icons but uses a custom font icon. The library we have used is lightweight and contains only the necessary icons required for the theme.

But Font Awesome Icons can be easily added with the external plugin. Below are the steps to add Font Awesome Icons to Astra:

Step 1: Choose a plugin from WordPress repository that allows loading a Font Awesome library to site. For Example – Better Font Awesome.Step 2: Install the plugin on the site.Step 3: You can now use shortcode for font awesome icons anywhere on site including header, footer, sidebar, etc.Step 4: For example – [icon name=user] will display the user icon from Font Awesome. [icon name=user class=」fa-2x」] will display bigger icon. It depends on the plugin methods. You can enter the shortcode in the Text/HTML field on site.

That』s it!

Following similar steps, you can add any font icon library on your website such as Entypo, etc.

Default Structured Data and Schema Markup in Astra Theme

Default Structured Data and Schema Markup in Astra Theme

Schema is basically a joint effort by all major search engines that guidelines the markup that we should add in our website. This markup allows search engines to better understand our website and display better search results.

As you might already know, Astra theme adds Schema markup to and takes care of the SEO fundamentals of your website. Below is the list of all Schemas Astra adds on your website:

WebPage: On WordPress single pages

Blog: On Blog Index Page

Person:

On author archive pages.On blog posts meta to the author link.Author Bio on blog posts

WPHeader: To the header

WPFooter: To the footer

WPSideBar: To the main sidebar

SiteNavigationElement: To the primary navigation menu.

SearchResultsPage: On Search Results Pages

Organization: To the title & logo

BreadcrumbList: To the breadcrumb through Page Header module in Astra Pro

Off Canvas Sidebar for WooCommerce Shop Page

Off Canvas Sidebar for WooCommerce Shop Page

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.

You can manage the sidebar using the WooCommerce module available with Astra Pro. Please refer document, to begin with, WooCommerce module.

WooCommerce Addon provides Off Canvas Sidebar option for Shop page. Settings can be found under Appearance > Customize > WooCommerce > Product Catalog.

Off Canvas Sidebar is the part of navigation strategy. The sidebar is initially moved out off the screen and out of view as well. To make the sidebar appear you have to set trigger in the form a button, or a link is given. When you click on the trigger, Off Canvas Sidebar appears. This option works very well with all the responsive devices as well.

Since this is a sidebar, you need set the sidebar using various WordPress widgets. Or you can even add third-party widgets.

There are 3 ways to showcase the Off Canvas Sidebar trigger:

LinkAppears in the three line menu.

ButtonLike mentioned before, the default theme color & styling is applied to the button.

Custom ClassThis custom functionality helps you to set/place the Off Canvas Sidebar trigger anywhere you wish on the entire website.The trigger for Off Canvas Sidebar can be placed in the header, above header, footer or anywhere else as per the requirement.For example:A nice and simple button can be designed with the help of Custom Layout addon.Give some name in the advanced tab of HTML class of the button

Repeat the same class name in the Off Canvas Sidebar Custom Class option.

Note: Custom Class will trigger off-canvas sidebar only on the shop page. It will not trigger it on any other page. For example, if the button with custom class is added to the header. Then clicking on the button will trigger off-canvas sidebar only on the shop page and not on other pages.

After enabling the option, the off-canvas sidebar will not trigger until you add widgets in it.

For adding widgets got to Appearance > Widgets > Off-Canvas Filters. Simply drag-drop the widgets from the Available Widget option.

Once you add the widgets, you can manage the further customizations from the customizer

Search Shortcode to Add Search Box in Astra

Search Shortcode to Add Search Box in Astra

Astra Pro Addon plugin version 1.5.0 and above provides a shortcode to display a search box. This shortcode can be used anywhere on the website i.e header, footer, page builder, sidebar widgets, etc. to display the search box.[astra_search] will display the search icon anywhere you want. Following styles are available for search box –

The Slide search – It slides open a search box when you click on the search icon.The Full-screen search – It covers the entire screenThe Header cover search – It covers the headerThe Search box – A default search box if you would like to keep it as it is.

[astra_search] had an attribute 『direction『 for the direction this should open the search box on click and attribute 『style『 that allows select style from the above list.

Available shortcodes are listed below –

1. The Slide searchLeft: [astra_search]Right:[astra_search direction="right"]

2. The Full-screen search[astra_search style="full-screen"]

3. The Header cover search[astra_search style="cover"]Note: This shortcode will display a search box with respect to its parent class.

4. The Search box[astra_search style="inline"]

Note: This shortcode 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.

Not Receiving Update Notification for Astra Theme?

Not Receiving Update Notification for Astra Theme?

If you do not receive an update notification for Astra Theme, chances are — the theme folder is renamed.

Changing the theme folder name stops updates from https://wordpress.org/ as the theme folder is used as the slug for WordPress updater.

To verify and fix, follow the steps below:

Login to the FTP of your website and go to: wp-content/themesEnsure you have a folder: astraIf it is something else, rename the folder back to astra (or just reinstall Astra theme)

Renaming the theme folder can cause many problems. WordPress recognizes themes by the folder and it is strongly recommended not to rename folders unless there is intention behind.