Page Headers – Astra https://wpastra.com Fast, Lightweight & Customizable WordPress Theme for Any Website Mon, 28 Mar 2022 07:55:08 +0000 en-US hourly 1 https://wordpress.org/?v=5.9.3 https://wpastra.com/wp-content/uploads/2020/01/favicon-astra2x.png Page Headers – Astra https://wpastra.com 32 32 Set Parallax Effect on Responsive Devices with Page Header https://wpastra.com/docs/parallax-page-header/ Wed, 12 Feb 2020 08:05:17 +0000 https://wpastra.com/?post_type=docs&p=55751 Set Parallax Effect on Responsive Devices with Page Header Read More »

]]>
We have an improvement for the Page Header addon you will now be able to set the Parallax Effect on responsive devices too.

You will find the new option under the same section of Page Header. Now you will instead find the options to enable the Parallax on specific devices where you want to display the Parallax effect.

The main reason we have implemented this option?

  • Some images do not appear properly with the Parallax effect on responsive devices like mobile phones. In such cases, users can disable the parallax effect on Mobile and vice versa.

The New select option contains the following choices

  1. None = Disable Parallax across all devices.
  2. Desktop + Mobile = Enable parallax on both the devices.
  3. Desktop = Enable parallax on just Desktop ( Disable on mobile )
  4. Mobile = Enable parallax on just Mobile ( Disable on Desktop )

How to Enable the Parallax Effect on Responsive Devices?

  1. Create a new Page Header.
  2. Now, In their settings, You will notice that the old option ( checkbox ) to enable Parallax has been replaced with the new option ( Dropdown ).
Astra New Parallax Effect Settings

Note: We have also taken care of the Existing and New Users with this Improvement.

For existing users:

We will migrate the already set values, so if the user had the option enabled, it will work as it is and the parallax effect will be enabled after updating to 2.2.5 or above.

Users will now be able to select the Options from the responsive devices as per their requirement.

For new users:

By default, the Parallax will be set to None and it can be changed as required for the responsive devices.

]]>
How to Remove Page Header Title? https://wpastra.com/docs/remove-page-header-title/ Fri, 01 Nov 2019 06:26:01 +0000 https://wpastra.com/?post_type=docs&p=47155 How to Remove Page Header Title? Read More »

]]>
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.

Astra Page Header Title

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.

Astra Page Header Content Section
]]>
Page Headers Overview https://wpastra.com/docs/page-headers-overview/ Thu, 22 Feb 2018 18:30:00 +0000 https://wpastra.com/?post_type=docs&p=24326 Page Headers Overview Read More »

]]>

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 design attractive Page Title/ Page Header area with breadcrumbs, background color/image. You can also design site header to suit your page header design on the particular page.

Quick Steps on How to Design Attractive Page Headers Using the Page Headers Module
Step 1: Make sure you have the Astra Pro Addon plugin installed and activated. How to Install Astra Pro Addon plugin?
Step 2: Activate the module from the Astra Options under the WordPress Dashboard > Appearance > Astra Options
Step 3: Visit Page Headers section [ Appearance > Astra Options > Page Headers ] to design page headers

Astra Page Headers Addon Activation

After activating a module click on Settings option to get started.

Now you can see Page Header option under the Appearance tab, below Astra Options.

Astra Page Header Settings

Add a new page header & give an appropriate name to it.
Choose options for Page Header, Site Header set the Display Rules and you are done!

Page Header

Layout

It will arrange the page title and breadcrumbs (if enabled) on one another, in the middle of the page.

Page Headers Center Aligned

It will appear on the front end as –

Astra Page Headers

Inline

It will display the page title and breadcrumbs (if enabled) in the right and the left side.

Page Headers Inline

It will appear on the front end as-

Astra Page Headers Inline

Display Breadcrumb

Breadcrumbs show the current location of the user on the website. It is often used as a secondary navigation that allows users to go up and down in the hierarchy of links.

You need to enable this option if you want to display breadcrumbs.

Display Breadcrumb

It will appear on the front end as –

Breadcrumb Example

Title and Breadcrumb Colors

You can set colors for title and breadcrumb text with this options.

Breadcrumb Color

It will appear on the front end as-

Breadcrumb Color Example

Background Size

You can define a height for the page header with this option. It enhances the page header design.

Custom Size

You can define Top and Bottom Padding for the page header. Custom Size can be given any positive number with or without units as “5px” or “5px”. Default unit is in “%”

Astra Page Header Custom Size

It will appear on the front end as-

Astra Page Header Size Example

Full Size

It will display page header as a full screen.

Astra Page Header Fullscreen

It will appear on the front end as –

Astra Page Header Fullscreen Example

Background

You can set color or image as a background for page header.

Color

You can choose a color from color picker for page header background.

Page Header Background Color

Image

You can set a background image for page header with this option.

Astra Page Header Image Option

You get following advanced options with this-
Override this image with the featured image on individual posts & pages.
If you want to override the above background image with the featured image that you have set for a particular post or page, enable the option.

Overlay Background Color
If you enable this option, background color (if set any) will be applied as an overlay for the background image.

Page Header Overlay Background Color

It will appear on the front end as –

Page Header Background Image Example

Parallax
In the parallax effect, the background image is moved at a different speed than the foreground content while scrolling.
Enable this option if you want parallax effect for the background image.

Page Headers Parallax

If you want to remove Page Title from page header, you would need to use custom code (filter).

Site Header

If you wish to customize the current site header along with the page header, you can use this option.
When you customize your site header with this option, all settings under Site Header tab will override the customizer settings for current site header.

Merge Page Header with Site Header

This option will merge the page header with the current site header. It will set a current header as transparent and pull the page header to the top. Enabling this option will display the advanced customization options list.

Merge Page header with Site Header

It will appear on the front end as –

Transparent Header Example

Site Identity

This allows you to choose a logo for your header different than your site logo. Leave this empty if you want to use the same logo as your site logo. You can add normal as well as retina logo and can set easily set a logo width.

Customize Site Header

When you merge the page header with site header, background set for page header will be applied automatically to the site header.
You can set Background Overlay Color, Border Bottom Size, and Color for your site header with this option.

Customize Site Header

It will appear on the front end as –

Customize Site Header Example

Primary Menu

If you want to override the current menu colors for the site header, use these options.
You can set Background Color, Link / Text Color and Link Active / Hover Color with this.

Site Primary Menu

Submenu Color Options [NEW]

From Astra Pro v2.5.0, we are introducing separate options for Link Active Color, and Submenu Color options as shown below. Similarly, these options will be seen for the Above Header, and Below Header Link and Submenu color options too.

Astra Site Header New Color Options

Custom Primary Menu

If you want to display a different menu that your Primary Menu, you can select it from the drop-down. All menu available on site will appear in the drop-down.

Custom Primary Menu

Custom Menu Item

It allows you to add a custom menu item at the end of the selected menu from the above option. You can select a custom menu item from the drop-down.

Note:

This option wouldn’t be available if you’re using Header Footer Builder (available with Astra theme versions 3.0.0 and above).

Custom Menu Items

Customizer Setting

Choose this if you want to display Custom Menu Item set for Primary Header in the customizer.

Astra Customizer Settings

Search

It will add a search icon for a search box at the end of the selected menu. When you click on the icon search box will appear.

Custom Menu Search

It will appear on front end as-

Astra Search Icon

Text / HTML

It will allow you to insert text and HTML element code. You can insert a call to action button, contact number, email address etc.

Custom Text Options

Widget

You can add a widget to the header with this option.

Widgets Outside

After selecting the widget option as a custom menu item, you will able to set a widget from Appearance > Customize > Widgets > Header

Astra Widgets

Choose any WordPress default widget or you can use any third-party plugin to add a widget to the list.

Take custom menu item outside
This option allows you to separate your custom menu item from the selected menu. It will show your custom menu item separately on responsive devices-

Take Custom Menu Item Outsite

Note: If you have activated Header Section Addon and using Above and/or Below Header section, then you get an option to customize them.

Display Rules

Display On

You can choose your page header to display on specific pages, posts on your site. Choose a location from the list. You can Add Display rule and/or Exclusion rule.

Page Headers Display Rules

User Roles

You can decide a user role for which page header should be visible.

Page Headers User Role

We have designed a demo using Page Headers Addon. It will show how you can creatively use Page Headers Addon.
https://websitedemos.net/blog-03/category/fashion/

]]>
https://www.youtube.com/embed/rgEBBQfOuvA Introduction to Page Header Module - Astra nonadult