astra_get_transparent_header_last_active_row( string $device )

Get transparent header’s last active row to process bottom border design accordingly.


Description


Parameters

$device

(string) (Required) Device type.


Return

(string)


Source

File: inc/addons/transparent-header/classes/dynamic-css/dynamic.css.php

function astra_get_transparent_header_last_active_row( $device ) {
	$selector    = '';
	$prefix_sel  = 'desktop' === $device ? '.ast-theme-transparent-header #ast-desktop-header > ' : '.ast-theme-transparent-header.ast-header-break-point #ast-mobile-header > ';
	$header_rows = array( 'above', 'primary', 'below' );

	foreach ( $header_rows as $row ) {
		if ( ! Astra_Builder_Helper::is_row_empty( $row, 'header', $device ) ) {
			continue;
		}
		$selector = 'primary' === $row ? $prefix_sel . '.ast-main-header-wrap > .main-header-bar' : $prefix_sel . '.ast-' . $row . '-header-wrap > .ast-' . $row . '-header';
	}

	return $selector;
}

Changelog

Changelog
Version Description
4.6.16 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.