diff --git a/src/archive.php b/src/archive.php index f7332cc..edf305f 100644 --- a/src/archive.php +++ b/src/archive.php @@ -3,7 +3,6 @@ -
diff --git a/src/functions/customizer.php b/src/functions/customizer.php index 777dbd8..fe88626 100644 --- a/src/functions/customizer.php +++ b/src/functions/customizer.php @@ -192,6 +192,36 @@ function tainacan_customize_register( $wp_customize ) { 'section' => 'colors', ) ) ); + /** + * Adds option to hide Website Title on the Header Image cover, or the whole banner. + */ + $wp_customize->add_setting( 'tainacan_hide_site_title_on_header_banner', array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'default' => false, + 'transport' => 'refresh' + ) ); + $wp_customize->add_control( 'tainacan_hide_site_title_on_header_banner', array( + 'type' => 'checkbox', + 'priority' => 99, // Within the section. + 'section' => 'header_image', + 'label' => __( 'Hide the header banner site title', 'tainacan-interface' ), + 'description' => __( 'Toggle to hide the site title row that appears over the header banner', 'tainacan-interface' ) + ) ); + $wp_customize->add_setting( 'tainacan_hide_header_banner', array( + 'type' => 'theme_mod', + 'capability' => 'edit_theme_options', + 'default' => false, + 'transport' => 'refresh' + ) ); + $wp_customize->add_control( 'tainacan_hide_header_banner', array( + 'type' => 'checkbox', + 'priority' => 98, // Within the section. + 'section' => 'header_image', + 'label' => __( 'Hide the header banner completely', 'tainacan-interface' ), + 'description' => __( 'Toggle to hide the header banner from all pages of the site', 'tainacan-interface' ) + ) ); + /** * Adds section to control singe items page. */ diff --git a/src/index.php b/src/index.php index f7332cc..edf305f 100644 --- a/src/index.php +++ b/src/index.php @@ -3,7 +3,6 @@ -
diff --git a/src/template-parts/bannerheader.php b/src/template-parts/bannerheader.php index 579b7c8..cc28dcf 100644 --- a/src/template-parts/bannerheader.php +++ b/src/template-parts/bannerheader.php @@ -1,10 +1,14 @@ -
class="page-header header-filter clear-filter page-height" style="background-image: url('')"class="page-header header-filter clear-filter align-items-center" style="background-image: url('/assets/images/capa.png')"> -
-
-

- -

- + +
class="page-header header-filter clear-filter page-height" style="background-image: url('')"class="page-header header-filter clear-filter align-items-center" style="background-image: url('/assets/images/capa.png')"> +
+ +
+

+ +

+ +
+
-
+