Elements in Header/Footer Builder With Astra Theme and Astra Pro

Elements in Header/Footer Builder With Astra Theme and Astra Pro

Since Astra 3.0.0 (Theme and Pro), you can build great headers and footers easier than ever. Astra Header and Footer Builders give you great flexibility by bringing different features as individual elements. Now, you can place multiple elements and organize them any way you want.

Hence, you』ll find the list of all available elements for both header and footer in this document.

Header Builder

Further down, you』ll find the list of available Header Builder elements. Depending on the element type, some elements can be added more times. For example, you can add two separate 「HTML」 elements with different codes to your header.

Also, you can use a larger number of certain types of elements with Astra Pro. In addition, some elements are not available with Astra Theme only.

You can find more details on header options and each header element in this article.

Astra ThemeAstra ProSite Identity & Logo Site Identity & Logo + 1 extra optionPrimary MenuPrimary MenuSecondary MenuSecondary Menu1x Button2x Button + up to 102x HTML2x HTML + up to 102x Widget4x Widget + up to 10SearchSearch + 1 extra optionSocial ShareSocial Share + up to 10WooCommerce CartWooCommerce Cart + 1 extra optionEDD CartEDD Cart + 1 extra optionOff-Canvas Menu (on Mobile & Tablet)Off-Canvas Menu 1 + extra options (on Mobile & Tablet)Account Account + extra options 3x Divider + up to 10Language Switcher [NEW]Toggle Button (for Desktop) [NEW]

Footer Builder

Similarly to Header Builder elements, you will find available footer elements in the table below. Here, you』ll notice that available element types and a number of elements are adjusted to footer requirements.

You can find more details on footer options and each footer element in this article.

Astra ThemeAstra ProFooter MenuFooter Menu 1 + extra options Social Share Social Share 1 + up to 102x HTML2x HTML + up to 10 4x Widget4x Widget + up to 10CopyrightCopyright + extra options2x Button + up to 10 3x Divider + up to 10Language Switcher [NEW]

How to Switch to Astra from Another Theme?

How to Switch to Astra from Another Theme?

Have you already created any layouts built with Page Builders? Have you completed part of your website? And now want to switch to Astra to make your site super fast!

You might be wondering what will happen if you deactivate your current theme and activate Astra. What will happen to the layout of the site?  This document will help to set your site after switching your current theme with Astra.

You can do this using –

Astra Bulk Edit

Astra Bulk Edit

You can switch to the Astra theme by bulk updating your meta settings of posts/pages in Bulk.

Here』s a detailed article that explains How to Bulk Edit Astra Meta Settings on Multiple Pages & Posts at Once?

Set Up Your Blog

Set Up Your Blog

A blog page is used to keep track and display all of your past posts. This is why this page is an archive.

Astra Theme Walkthrough Docs:

Astra Theme WalkthroughThis Is Your CustomizerStyle Your Website With Global SettingsBuild Your Header Find the Way With Breadcrumbs Set Up Your Blog (currently reading)Add Your SidebarsBuild Your FooterHost Google Fonts Locally – Performance Is the KeySee Other Customizer OptionsHow To Build Quick Sites With Astra?Getting the Most Out of Astra Theme

To set your Blog page, start by creating and naming a page (Dashboard > Pages > Add New). Then, navigate to Dashboard > Settings > Reading and set this page as your 「Posts page」. This will apply the Blog Archive template to this page – that means any previous content on this page will not be visible. This is why we use an empty page for this.

Within this option, you can also modify the number of posts to be shown on each page of your Blog archive (the default value is 10 posts).

Once you set this, you can customize your Blog / Archive page and your Posts using the Astra theme Blog option in the Customizer.

Blog / Archive

Within the General tab, if you wish to change a default Content Width set for your whole website, just select 「Custom」 and set the custom width specifically for your Blog page. 

You can modify the way the posts are displayed on the Blog page. In the Post Structure and Meta sections, you can set the order of elements in which they are displayed by simply dragging each of them to the desired place in the list.

Also, you can hide any element in the list by clicking on the 「eye」 icon on it (click the 「eye」 icon one more time if you decide to have the element displayed again).

The last option, the Post Content, lets you choose if you want to show the Full Content of the posts on the Blog page or only Excerpt.

Available styling options in the Design tab are setting the Archive Title Font Size (the Blog page title) and the Post Title Font Size (title of each of your posts shown on the Blog page).

Single post

A Single post option is used to customize the way your Posts are displayed.

General Tab

Similarly as with Blog / Archive settings, in the General tab you can set the Custom Width for your Posts and modify Structure and Meta.

The last option in the General tab allows you to Enable Related Posts and adjust the settings according to your needs. You can set a custom Title for a related posts section, set the Number of related posts, Grid Column Layout, as well as Posts Query and Structure. You can find more details on related posts in this article.

Design Tab

In the Design tab, you can find options for changing the Post / Page Title Font Size.

Previous: Find the Way With Breadcrumbs

Next: Add Your Sidebars

Global Container – Astra Theme

Global Container – Astra Theme

A container is an area where we display the content. In general, the container encloses the whole page.

The content area and the sidebar are parts of the container. The content area is technically called as the primary container, whereas the sidebar is the secondary container.

You can apply container layouts globally for the entire website through the Customizer option at Appearance > Customizer > Global > Container.

Different containers can be applied for individual pages and posts from meta settings. These are page-specific settings that have high priority than customizer settings.

Container Width

Content will be display within this width. You can try width in combination with container layout to create different views.

Container Layout

Astra offers 4 types of Containers Layout. These are global containers that will be applied to the entire website. But you can set different containers』 layout for different post types with Dedicated Container Layout. To have more control over container layout on each page you can refer page meta settings.

All container layout types are explained in the following links –

BoxedContent BoxedFull Width / ContainedFull Width / Stretched

Dedicated Container Layout

The above 4 types of container layouts are separately available for the following post types. That means if you choose default layout as Full Width/Stretched, and for Archives you choose the Boxed option, then the entire site except archive pages will have Full Width/Stretched layout while Archive pages will have Boxed layout.

Page Layout – For only pagesBlog Post Layout – For blog archive and single blog post pages Archives Layout – All archives

Astra has integration with a few popular plugins. When those plugins are installed you will get dedicated container layout options for those plugin pages too. Below is the list of plugins that has integration with Astra –

WooCommerceLifterLMSLearnDashEDD (Easy Digital Downloads)

Note:

We provide more advanced options in dedicated modules of Astra Pro Addon plugin. And such options are available in dedicated modules of Astra Pro Addon plugin. For e.g.

Container layout can be overridden by the page meta settings. The priority of the meta settings is higher than the customizer settings. Read more about Meta Settings here.The width of the container depends on the Site Layout settings.

How to Turn Astra Website Multilingual with Polylang?

How to Turn Astra Website Multilingual with Polylang?

The Astra theme is 100% translation-ready and compatible with WPML. Since WPML is a premium plugin, alternatively, you can also use the Polylang plugin. This document will show you how to make your Astra Website Multilingual with Polylang for free.

Setup

For translating your Astra-based website with Polylang, you will need to install several plugins. To do this, please follow these steps: 

Step 1 – Navigate to Dashboard > Plugins > Add New. In the search bar on the top right, search for these plugins: 

「Polylang」「Duplicate Page」

Note:

If you』re using Elementor Pro for headers and footers on your website, you will need to use an additional plugin: 「Polylang Connect for Elementor」.

Step 2 – Install all plugins mentioned in the previous step; 

Step 3 – Activate the 「Polylang」 plugin. This will start a website translation wizard;

Polylang Setup Wizard

Step 4 – The first wizard option, Languages, will add the languages you need on your website. When you choose your first language, it will be set as your default language. Further, just click on the 「Add New Language」 button to enable additional language(-s).For our example, we will use English (primary), German and French languages:

Once you added all languages, click on 「Continue」;

Step 5 – In the next step, Media, you can allow translations for media (title, alternative text, caption, and description);

Step 6 – Under 「Content」, choose the language you wish to assign for all the content without an assigned language (this should be most often your primary language);

Step 7 – On the next step, you can confirm your Homepage translations. Clicking on the 「Continue」 button will create blank versions of your homepage in all languages. This means that non of your designs nor content will be copied from your homepage.

However, unless you』re planning to add different designs for each language (homepage looking differently in every language), click on the 「Not right now」 button at the bottom;

Step 8 – Consequently, you will be transferred to the Dashboard with the option to skip setup. Go ahead and click on that button to close the Polylang setup wizard (all of your previous wizard settings are saved).

So, the Polylang plugin is now set, and language options were added to your website. Now you need to add your content and media translations.  

Translating Pages, Posts, and Post Types with Polylang

When you translate pages or posts with Polylang, you get linked versions of pages or posts where each version is assigned a language. 

We will show you two methods of creating the translated version of your page in a couple of steps.

For Polylang to work properly, you need to add at least translations for your homepage (static front page). Since we skipped the automatic step (Step 7) to create homepage versions in other languages through the wizard, we will show you how to do it manually now.

Method One – Translate Page

Step 1 – Navigate to Dashboard > Pages and check the right side of the pages list. You will notice the Polylang options for each page. Each page is shown with the flag of the language that is assigned to that page. In our example, existing pages are in English (Default language).

Step 2 – To create a page version in another language, just click on the 「+」 icon in the desired language column. This will open a page editor for a new empty version of the page. We decided to add a French version of the page in our example

Step 3 – Name your page, add your page content, and design for the language selected. Once you』re done, click on 「Publish」 to create the translated page.

As a result, you will get two different and connected pages. If you check the Polylang options for these pages, you will see each has its appropriate language flag mark.Also, you will see that existing translated versions have a 「pencil」 icon to mark that the translation exists.

This is the easiest method to translate a page when you wish to provide completely different content for different languages. For each language, you will get an empty new page to edit from scratch.On the other hand, if you wish to have precisely the same page design, just with the translated content, the second method would be a better option. 

Method Two – Clone and Translate

With 「Polylang」, you might be surprised to discover your page or post content is not copied to another language version. Upon adding a new language version, you will find just a clean new page or post. 

Unless you』re a Polylang Pro user (Pro comes with a 「Duplicate content」 feature), we suggest using the 「Duplicate Page」 plugin. 

Instead of adding all your content and designs manually for each language, you can duplicate pages or posts. Once you translate the duplicated page, just link it to the original one, and it』s done. 

As an example, we will show you how to clone your Home page and link different page versions. To start, make sure you activate the 「Duplicate Page」 plugin next to 「Polylang」. 

Let us show you how to do it:

Step 1 – Navigate to Dashboard > Pages to edit pages (you can also do this for posts or custom post types);

Step 2 – Click on the 「Duplicate This」 option under the page to clone it. You will see a new draft page appearing in the pages list with the same name;

Step 3 – Click on the 「Edit』 option under the cloned (draft) page and adjust the page title – as this is the home page for the French language, we will rename the page title to 「Accueil」;

Step 4 – In the page settings (on the right side), scroll down to the 「Languages」 section and set the cloned page language. Here, we set the language to French;

Step 5 – In the same section, connect this page with the original page. Just click on the original page language field and start typing the page』s title – click on the original page name once it pops out in the list.

Step 6 – As you will notice, the cloned page contains the exact copy of the content found on the original page. Now you need to adjust and update content on your cloned page. You can translate the text and adjust the rest of your content and design as you wish. Click on the 「Publish」 button to save.Note: Your cloned page might look different before you update the content created by Page Builders. Once you edit content and update the page, the design will show correctly.

Great, you just created your page translation.

Now you can repeat these steps for all pages and languages. You can also translate all of your posts and custom post types this way.

Translating Menus and adding a Language Switcher to the Header

Now that we have translated all pages and posts, it』s time to translate the menus and add a Language Switcher so website visitors can choose the language they want.

In addition, before editing menus you should check if activating Polylang affected your permalinks or your menu locations. Thus, if you notice any changes please correct these first.

Translate Primary (or any other) Menu

Now let』s see how you can set your menus for each of the languages added. Here, we』ll show you how to translate your Primary Menu. In this example, we will set a Primary Menu for a French version of our website:

Step 1 – Navigate to Dashboard > Appearance > Menus and select your Primary Menu. If you scroll down a bit to 「Display locations」, you will notice that Polylang added a Primary Menu location for each language you added. Your primary menu will be set for your default language. In our case, this will be 「Primary Menu English」;

Step 2 – Click on 「Create a new menu」 to start building your translated menu. Start by giving it a name (we』ll use Primary Menu FR) and selecting the appropriate display location. We choose 「Primary Menu Francais」 as we are creating a menu for the French language;

Step 3 – Add the appropriate language versions of pages and posts and other items you need in this menu. Click on 「Save Menu」 to create this menu and save the changes you made.

You can translate your other menus this way too.

Adding the Language Switcher

Our final step here is to add the Language Switcher. Polylang provides its own Language Switcher that can be added to your menus at Dashboard > Appearance > Menus.  

Keep in mind that this option might be hidden by default. If you don』t see the 「Language switcher」 section under 「Add menu items」, please click on the 「Screen Options」 on the top of your screen and add this option:

We』ll be adding the Language Switcher to the Primary Menus here, but this can be done with any menu you need. Please follow these steps:Step 1 – Navigate to Dashboard > Appearance > Menus and select your Primary Menu for your default language. From the menu items, under the 「Language switcher」 section, select the 「Languages」 option and click on the 「Add to Menu」 button to add it to your menu;

Step 2 – Drag and drop the Language Switcher item to position it in your Primary Menu;

Step 3 – Click on the Language Switcher item to expand it. Here you have several options to set the way your Language Switcher looks. Click on 「Save Menu」 to save changes;

Step 4 – Repeat steps 1 to 3 for each language to add the switcher on all of them.

Great job, your multilingual Astra Website is ready for visitors.

Other Polylang Settings

There are some additional settings for the 「Polylang」 plugin that you might find helpful. You can find these at Dashboard > Languages > Settings. 

Here you will find the following options:

URL modifications – set how do you want your multilingual URLs to look like

Detect Browser language – your website will show the version of your website based on the browser language preference;

Media – you can activate or deactivate media translations (we set this to 「active」 during the initial setup);

Custom post types and Taxonomies – choose custom post types and taxonomies you wish to activate translations for;

Synchronization – choose where you wish to keep meta content synced between translations.

Further, you can find more details about translating categories, tags, and Astra strings in this article.

In addition, at Dashboard > Languages > Strings translations, you can translate your Site Title and Tagline, as well as the date and time formats.For more details, or help and assistance working the 「Polylang」 plugin, you can check the official Polylang documentation.

Host Google Fonts Locally – Performance Is the Key

Host Google Fonts Locally – Performance Is the Key

Building a great-looking website is very important, but so is your websites』 performance. Astra Theme is well-known as the fast theme featuring a clean, performance-optimized code that results in fast website loading. Still, there are some additional third-party services you might use on your website (e.g., Google). All these services will have an impact on your performance.

Under the 「Performance」 option (Customizer > Performance), you will find all the options and settings available with the Astra Theme that can help your websites』 performance.

Astra Theme Walkthrough Docs:

Astra Theme WalkthroughThis Is Your CustomizerStyle Your Website With Global SettingsBuild Your Header Find the Way With Breadcrumbs Set Up Your BlogAdd Your SidebarsBuild Your FooterHost Google Fonts Locally – Performance Is the Key (currently reading)See Other Customizer OptionsHow To Build Quick Sites With Astra?Getting the Most Out of Astra Theme

Load Google Fonts Locally

When you use any Google font on your site, it requires a request to be sent to Google to fetch that font every time you load a page or post. This can harm your CLS points in the Core Web Vitals score. To help improve this, Astra Theme comes with a Self-Hosted Google Fonts feature built-in. This feature was added with Astra Theme 3.6.0 update. You can learn more about this feature in our Blog article.

This feature can be enabled by clicking on the 「Load Google Fonts Locally」 option.

Activating this feature will send only one Google Font API request, which will gather all of the font data & assets files from Google and store them locally on your server. Then, for any further requests, the Google fonts will be loaded using the locally stored files (until this option is enabled).

Preload Local Fonts

Once you have your local font files enabled, you can also preload these. By default, a browser will wait to load the font file until it starts 「painting」 visible content on the user』s screen (lazy loading). This may cause the situation where a browser is ready to load your websites』 text but needs to wait for the font file to be downloaded first, as it isn』t available yet. This situation slows down your page load and creates a bad user experience.

Preloading fonts will 「tell」 the browser to import the font early on, so the font is ready to be displayed as soon as the browser starts painting the text, which will result in a positive impact on your website performance.

To enable this option, just click on the 「Preload Local Fonts」 setting.

Flush Local Fonts Cache

As the fonts will be loaded and saved locally, any changes with Google Fonts will not be applied automatically. However, to keep your website fonts up to date, this feature will occasionally refresh the locally stored fonts. This will happen with the following actions:

Your website will update fonts automatically every month

Every time you save changes in the Customizer

If needed, you can update fonts manually any time you wish by clicking the 「Flush Local Font Files」 button.

Previous: Build Your Footer

Next: See Other Customizer Options

EDD Integration Overview in Free Astra Theme

EDD Integration Overview in Free Astra Theme

Astra integrates nicely with Easy Digital Downloads. All Easy Digital Downloads elements automatically adapt to the rest of your Astra powered website and take colors, fonts out of the box from the theme customizer settings. That way, you can have your shop up and running immediately with minimum setup. Let』s take a look!

Note: Astra Pro extends the options with Easy Digital Downloads Addon. You can refer to our article to know more about the features you get within this EDD addon.

Layout Settings:

Please be sure you have the Easy Digital Downloads plugin installed and activated. Once you have it installed, you will find a dedicated tab for it in customizer settings.

Easy Digital Downloads Tab: 

Under the Easy Digital Downloads tab, you will find further options categorized into further tabs.

Product Archive: 

Here you can control how your archive page looks. Archive page can be Product categories or Product tags pages. You can control:

Archive Columns: The number of columns for each device.Product Structure: Structure of products where you can move elements or disable them. Display or hide product information. Just click on the eye icon.Cart Button Text: Set a custom text for Add To Cart button.Variable Product Button: If you have enabled variable pricing and set options for it use this setting.Archive Content Width: Set the width for the archive page.

Refer: How to Add Download Archive Page to Menu?

Single Product:

Enable or disable Product Navigation from appearing on the single product page.

Cart Icon in Menu:

You can display the cart icon in the menu. Refer an article about How to Add EDD Cart in Header?

Container Setting:

You can control the container independently on Easy Digital Downloads pages. The option you set at Appearance > Customize > Global > Container will affect the EDD single product page.

Please note, you can override container settings for individual pages through meta settings.

Also, you can separately set the width of your Porduct Archive page. You will find this option at Appearance > Customize > Easy Digital Downloads> Product Archive

Sidebar:

You can control the sidebars independently on Easy Digital Downloads pages such as archive and a single product by navigating to Appearance > Customize > Sidebar.For further control on Single Products, we have provided its own sidebar setting so you can have a totally different sidebar there.

You can add widgets in any sidebar from Customizer by navigating to Appearance > Customize > Widgets

Again, please note, you can override the container setting for individual pages through meta settings.

Base Color & Typography:

As mentioned at the beginning of the article, all Easy Digital Downloads elements automatically adapt with the rest of your Astra-powered website and take colors, fonts out of the box from the theme customizer settings at Appearance > Customize > Global.

Related Articles –

1. How to Disable EDD Inbuilt Styling?2. How to Add Download Archive Page to Menu?3. How to Add EDD Cart in Header?

See Other Customizer Options

See Other Customizer Options

Astra Theme Walkthrough Docs:

Astra Theme WalkthroughThis Is Your CustomizerStyle Your Website With Global SettingsBuild Your Header Find the Way With Breadcrumbs Set Up Your BlogAdd Your SidebarsBuild Your FooterHost Google Fonts Locally – Performance Is the KeySee Other Customizer Options (currently reading)How To Build Quick Sites With Astra?Getting the Most Out of Astra Theme

Other Options: WooCommerce, Easy Digital Downloads, LearnDash, WebStories, Hooks

The Astra theme is integrated with different plugins, thus when these plugins are activated, additional options may appear in the Customizer. Some of these plugins are:

WooCommerce – if you plan on building an eCommerce website, you can do this easily with WooCommerce. Astra will provide great options for styling your store and products just the way you like them. Find out more about the Customizer options in this article;Easy Digital Downloads – if you plan on selling digital products you might decide to use this plugin for your store. Astra provides styling options for Easy Digital Downloads too. Find out more about the Customizer options in this article;LearnDash – If you』re planning to build an online learning website, LearnDash is a great solution for this. Find out more about the Customizer options for LearnDash in this article;Web Stories – Web Stories are an engaging way to display your website content. You can design stories with a Web Stories editor and show them on your own websites, just as you do on your Social Media profiles. Check out how you can use this plugin in this article.Astra Hooks – this plugin will help you add code to different parts of your website – for example, Google Analytics to Google Tag code. Find out more about how to use this plugin with Astra in this article;

WordPress Default Options

You can find a few default WordPress dashboard options available in the Customizer. Of course, these seetings can be made through the Dashboard, but having these options in the Customizer allows you to manage settings without leaving it.

Menus – you can use this option to create new or edit your existing menus. You can also set which menu is being used for each website location (Menu Locations)Widgets – this option is used to manage your website widgets. Keep in mind that with Astra Customizer, you will not see the widget options here as they are located directly within the different options like Header and Footer Builder.Homepage Settings – here, you can set which pages you would like to use as your Homepage and Blog / Archive page.

Additional CSS

Though the Astra theme offers a lot of options out-of-the-box, sometimes you might need more. A lot of changes can be done by simply adding some custom CSS code to your website.

To do this, you can use the Additional CSS option in your customizer. Just click on this option and copy your custom CSS code in the space on the left side of the screen like shown in the example here:

The changes will be applied straight away on your Customizer preview on the right side so you can see the result prior to changing your changes.

To remove the effects of Custom CSS, just delete the code you added here.

Previous: Host Google Fonts Locally – Performance Is the Key

Next: How To Build Quick Sites With Astra?

Import / Export Astra Customizer Settings

Import / Export Astra Customizer Settings

All customizer settings set with Astra can be exported and then imported into another site. In this way, you can move all layout, color& background, typography and other settings from one site to another.

You can do this with a plugin Import / Export Customizer Settings which is available on wordpress.org for FREE. If you own Astra Pro, this plugin will export/import Astra Pro addons settings. This plugin will copy theme customizer settings as well as activated/deactivated Astra addon settings.

Note: Import / Export Customizer Settings plugin will only work with the Astra theme. You will need to have the Astra theme installed and activated on your website.

How to use Import / Export Customizer Settings plugin?

Install this plugin on both sites. To install the plugin, download zip from plugin link – Import / Export Customizer Settings. From the WordPress dashboard, navigate to Plugins > Add New > Upload Plugin. Upload a zip and activate it.Navigate to Appearance > Astra Options.Export the file from the first site.Visit another site, open Appearance > Astra Options > Import Settings and choose the above file to import.

Once your settings are imported, new customization settings will be upload in customizer and Astra Options page will be updated with Astra Pro addons settings.

Note: If you have set any Page Meta settings, then customizer settings will not be applied. As the page meta settings have a higher priority than customizer settings. Read about page meta settings here.

Related Articles –

Import / Export Custom Layouts and Page headers

How to Remove Page Header Title?

How to Remove Page Header Title?

You might ever have a requirement, where you needed to remove Page Header Title. And previously the only option was to hide the same using custom CSS.

We are providing two filters. One to remove the Page Header Title and another one to add the Page Title in the Content Area.

Let』s dive into both the cases and see the filter on how it will work –

Case 1:

How to remove Page Header Title which appears on top of the image. Here, you can remove the Page Header Title on all single pages, archive pages, and posts. Alternatively, you can remove Page Header Title only from single pages (the title will still be visible on archive pages and posts), from all pages (but not posts), or only from your Home page.

Solution 1: You will need to add the following filter, to remove the Page Header Title on all single pages, archive pages, and posts:

add_filter( 'astra_advanced_header_title', 'remove_page_header_title' );
function remove_page_header_title() {
  return;
}

Solution 2: You will need to add the following filter, to remove the Page Header Title only from single pages:

add_filter( 'astra_advanced_header_title', 'page_header_title_disable' );
function page_header_title_disable( $title ) {
if ( is_page() ) {
$title = false;
}
return $title;
};

Solution 3: You will need to add the following filter, to remove the Page Header Title from all pages but leave it on all posts:

add_filter( 'astra_advanced_header_title', 'page_header_title_disable' );
function page_header_title_disable( $title ) {
if ( is_singular( 'page' ) || is_archive() ) {
$title = false;
}
return $title;
}

Solution 4: You will need to add the following filter, to remove the Page Header Title only from the Home page:

add_filter( 'astra_advanced_header_title', 'page_header_title_disable' );

function page_header_title_disable( $title ) {
if ( is_front_page() || is_home() ) {
$title = false;
}
return $title;
};

Note

To use one of the above-mentioned codes, just copy, and paste it in the child theme』s functions.php file.

Case 2:

After removing the Page Header from the Top Banner, we will need to add the title in the below content area.

Solution: Let』s see the filter you will need to add the title to the content area –

add_filter( 'astra_the_title_enabled', 'display_page_title', 999 );
function display_page_title() {
  return true;
}

Note

Paste the above code in the child theme』s functions.php file.

This is how you can remove the Page Header Title and add the Title in the content section.