/***HEADER 3 START***/ #custom-header3-menu .et_pb_menu__search-button:after { transform: scaleX(-1); } .custom-header3-cta-button { position: absolute; top: -1px; right: 0; height: calc(100% + 1px); display: flex !important; align-items: center; justify-content: center; } @media(min-width: 981px) { #custom-header3-menu .et_pb_menu__logo { position: absolute; top: calc(-52% - 26px); } #custom-header3-menu .et_pb_menu__search-button { position: absolute; right: 5% !important; top: calc(-50% - 15px); animation: none; } #custom-header3-menu .et_pb_menu__search-container { bottom: calc(100% + 16px); width: 300px; height: 56px; left: auto; right: calc(5% - 16px); background: #FFF; } #custom-header3-menu .et_pb_menu__search { padding: 16px 8px 16px 26px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } #custom-header3-menu.et_pb_menu .et_pb_menu__wrap--hidden, #custom-header3-menu.et_pb_menu .et_pb_menu__wrap--visible { opacity: 1; animation: none; } #custom-header3-menu.et_pb_menu .et_pb_menu__wrap { padding: 0 204px; } } @media (max-width: 980px) { #custom-header3-menu.et_pb_menu .et_pb_menu_inner_container { display: flex; padding: 20px 5%; } #custom-header3-menu.et_pb_menu .et_pb_menu__logo-wrap { justify-content: center; } #custom-header3-menu.et_pb_menu .et_pb_menu__wrap { justify-content: flex-end; } #custom-header3-menu .et_pb_menu__search-container { padding: 0 5%!important; height: 74%; top: 13%; bottom: auto; background: #FFF; } #custom-header3-menu .et_pb_menu__search { padding: 16px 16px 16px 20px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .custom-header3-cta-button { top: auto; bottom: 100%; height: 65px; } } /***CUSTOM FIXED HEADER start***/ @media (min-width: 981px) { header.et-l--header.custom-fixed-header { position: fixed; z-index: 999; top: -89px; left: 0; width: 100%; } header.et-l--header.custom-fixed-header .custom-header3-main-nav-row { box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); } .admin-bar header.et-l--header.custom-fixed-header { top: -57px; } #main-content.on-fixed-header { padding-top: 166px; } } /***CUSTOM FIXED HEADER end***/ /***HEADER 3 END***/ jQuery(document).ready(function(){ //This is a function for making the header fixed - see also css jQuery(window).scroll(function() { var scroll = jQuery(window).scrollTop(); if (scroll >= 89) { jQuery("header.et-l--header").addClass("custom-fixed-header"); jQuery("#main-content").addClass('on-fixed-header'); } else { jQuery("header.et-l--header").removeClass("custom-fixed-header"); jQuery("#main-content").removeClass('on-fixed-header'); } }); });

<?php
// phpcs:ignoreFile
/**
* Compress HTML
*
* This is a heavy regex-based removal of whitespace, unnecessary comments and
* tokens. IE conditional comments are preserved. There are also options to have
* STYLE and SCRIPT blocks compressed by callback functions.
*
* A test suite is available.
*
* @package Minify
* @author Stephen Clay
*/
namespace LiteSpeedLib;

defined( ‘WPINC’ ) || exit;

class HTML_MIN {

/**
* @var string
*/
protected $_html = ”;

/**
* @var boolean
*/
protected $_jsCleanComments = true;
protected $_skipComments = array();

/**
* “Minify” an HTML page
*
* @param string $html
*
* @param array $options
*
* ‘cssMinifier’ : (optional) callback function to process content of STYLE
* elements.
*
* ‘jsMinifier’ : (optional) callback function to process content of SCRIPT
* elements. Note: the type attribute is ignored.
*
* ‘xhtml’ : (optional boolean) should content be treated as XHTML1.0? If
* unset, minify will sniff for an XHTML doctype.
*
* @return string
*/
public static function minify( $html, $options = array() ) {
$min = new self( $html, $options );

return $min->process();
}

/**
* Create a minifier object
*
* @param string $html
*
* @param array $options
*
* ‘cssMinifier’ : (optional) callback function to process content of STYLE
* elements.
*
* ‘jsMinifier’ : (optional) callback function to process content of SCRIPT
* elements. Note: the type attribute is ignored.
*
* ‘jsCleanComments’ : (optional) whether to remove HTML comments beginning and end of script block
*
* ‘xhtml’ : (optional boolean) should content be treated as XHTML1.0? If
* unset, minify will sniff for an XHTML doctype.
*/
public function __construct( $html, $options = array() ) {
$this->_html = str_replace( “rn”, “n”, trim( $html ) );
if ( isset( $options[‘xhtml’] ) ) {
$this->_isXhtml = (bool) $options[‘xhtml’];
}
if ( isset( $options[‘cssMinifier’] ) ) {
$this->_cssMinifier = $options[‘cssMinifier’];
}
if ( isset( $options[‘jsMinifier’] ) ) {
$this->_jsMinifier = $options[‘jsMinifier’];
}
if ( isset( $options[‘jsCleanComments’] ) ) {
$this->_jsCleanComments = (bool) $options[‘jsCleanComments’];
}
if ( isset( $options[‘skipComments’] ) ) {
$this->_skipComments = $options[‘skipComments’];
}
}

/**
* Minify the markeup given in the constructor
*
* @return string
*/
public function process() {
if ( $this->_isXhtml === null ) {
$this->_isXhtml = ( false !== strpos( $this->_html, ‘_replacementHash = ‘MINIFYHTML’ . md5( $_SERVER[‘REQUEST_TIME’] );
$this->_placeholders = array();

// replace SCRIPTs (and minify) with placeholders
$this->_html = preg_replace_callback(
‘/(\s*)]*?>)([\s\S]*?)(\s*)/i’,
array( $this, ‘_removeScriptCB’ ),
$this->_html
);

// replace STYLEs (and minify) with placeholders
$this->_html = preg_replace_callback(
‘/\s*]*>)([\s\S]*?)\s*/i’,
array( $this, ‘_removeStyleCB’ ),
$this->_html
);

// remove HTML comments (not containing IE conditional comments).
$this->_html = preg_replace_callback(
‘//’,
array( $this, ‘_commentCB’ ),
$this->_html
);

// replace PREs with placeholders
$this->_html = preg_replace_callback(
‘/\s*

]*?>[\s\S]*?)\s*/i',
array( $this, '_removePreCB' ),
$this->_html
);

// replace TEXTAREAs with placeholders
$this->_html = preg_replace_callback(
'/\s*