diff --git a/language/en-GB/tpl_cassiopeia.ini b/language/en-GB/tpl_cassiopeia.ini index ec5fb4a47469f..80dff7c54f3b4 100644 --- a/language/en-GB/tpl_cassiopeia.ini +++ b/language/en-GB/tpl_cassiopeia.ini @@ -8,5 +8,6 @@ TPL_CASSIOPEIA_FLUID="Fluid" TPL_CASSIOPEIA_FLUID_LABEL="Fluid Layout" TPL_CASSIOPEIA_LOGO_LABEL="Logo" TPL_CASSIOPEIA_STATIC="Static" +TPL_CASSIOPEIA_STICKY_LABEL="Sticky Header" TPL_CASSIOPEIA_TOGGLE="Toggle Navigation" TPL_CASSIOPEIA_XML_DESCRIPTION="Continuing the space theme (Solarflare from 1.0, Milkyway from 1.5 and Protostar from 3.0), Cassiopeia is the Joomla 4 site template based on Bootstrap 4." diff --git a/templates/cassiopeia/index.php b/templates/cassiopeia/index.php index bb9c2a052f2b3..e563cb0db2d6c 100644 --- a/templates/cassiopeia/index.php +++ b/templates/cassiopeia/index.php @@ -71,6 +71,9 @@ $wrapper = $this->params->get('fluidContainer') ? 'wrapper-fluid' : 'wrapper-static'; $this->setMetaData('viewport', 'width=device-width, initial-scale=1'); + +$stickyHeader = $this->params->get('stickyHeader') ? 'position-sticky sticky-top' : ''; + ?> @@ -90,7 +93,7 @@ . $hasClass; echo ($this->direction == 'rtl' ? ' rtl' : ''); ?>"> -
+