diff --git a/src/assets/css/collection-color.css b/src/assets/css/collection-color.css
index 698e314..f6f29ff 100644
--- a/src/assets/css/collection-color.css
+++ b/src/assets/css/collection-color.css
@@ -28,7 +28,7 @@
}
.tainacan-collection--change-text-color .control {
- margin-top: 1rem;
+ margin-top: 0.5rem;
}
.tainacan-collection--change-text-color input[type="radio"]::before {
@@ -45,8 +45,8 @@
color: #fff;
margin-right: 1rem;
padding: 0.8rem;
- border-radius: 3px;
- padding: 0.7rem 1.25rem;
+ border-radius: 2px;
+ padding: 0.7rem 1.25rem 0.7rem 1.0rem;
font-size: 0.875rem;
}
@@ -55,7 +55,11 @@
color: #000;
margin-right: 1rem;
padding: 0.8rem;
- border-radius: 3px;
- padding: 0.7rem 1.25rem;
+ border-radius: 2px;
+ padding: 0.7rem 1.25rem 0.7rem 1.0rem;
font-size: 0.875rem;
+}
+.tainacan-collection--change-text-color .color-text input[type="radio"] {
+ border-color: white;
+ vertical-align: middle;
}
\ No newline at end of file
diff --git a/src/functions/class-tainacanthemecollectioncolor.php b/src/functions/class-tainacanthemecollectioncolor.php
index 13b6d3e..d02877a 100644
--- a/src/functions/class-tainacanthemecollectioncolor.php
+++ b/src/functions/class-tainacanthemecollectioncolor.php
@@ -93,19 +93,23 @@ class TainacanThemeCollectionColor {
-
-
-
-
+
+
+
diff --git a/src/functions/customizer.php b/src/functions/customizer.php
index bd87f41..a3bae92 100644
--- a/src/functions/customizer.php
+++ b/src/functions/customizer.php
@@ -146,7 +146,7 @@ function tainacan_customize_register( $wp_customize ) {
* Add color scheme setting and control.
*/
$wp_customize->add_setting( 'tainacan_color_scheme', array(
- 'type' => 'theme_mod',
+ 'type' => 'theme_mod',
'default' => 'default',
'sanitize_callback' => 'tainacan_sanitize_color_scheme',
'transport' => 'postMessage',
@@ -208,6 +208,11 @@ function tainacan_customize_register( $wp_customize ) {
'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->selective_refresh->add_partial( 'tainacan_hide_site_title_on_header_banner', array(
+ 'selector' => '.page-header h1.text-truncate',
+ 'render_callback' => '__return_false',
+ 'fallback_refresh' => true
+ ) );
$wp_customize->add_setting( 'tainacan_hide_header_banner', array(
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
@@ -221,6 +226,28 @@ function tainacan_customize_register( $wp_customize ) {
'label' => __( 'Hide the header banner completely', 'tainacan-interface' ),
'description' => __( 'Toggle to hide the header banner from all pages of the site', 'tainacan-interface' )
) );
+ $wp_customize->add_setting( 'tainacan_hide_header_box_opacity', array(
+ 'type' => 'theme_mod',
+ 'capability' => 'edit_theme_options',
+ 'default' => 60,
+ 'transport' => 'postMessage'
+ ) );
+ $wp_customize->add_control( 'tainacan_hide_header_box_opacity', array(
+ 'type' => 'number',
+ 'section' => 'header_image',
+ 'label' => __( 'Title box opacity (%)' ),
+ 'description' => __( 'Change the opacity of the white box that holds the banner site title' ),
+ 'input_attrs' => array(
+ 'min' => 0,
+ 'max' => 100,
+ 'step' => 5
+ ),
+ ) );
+ $wp_customize->selective_refresh->add_partial( 'tainacan_hide_header_box_opacity', array(
+ 'selector' => '.page-header .ph-title-description',
+ 'render_callback' => '__return_false',
+ 'fallback_refresh' => true
+ ) );
/**
* Bellow are customizer options exclusivelly related to Tainacan pages.
diff --git a/src/template-parts/bannerheader.php b/src/template-parts/bannerheader.php
index cc28dcf..bcda2d6 100644
--- a/src/template-parts/bannerheader.php
+++ b/src/template-parts/bannerheader.php
@@ -2,7 +2,9 @@
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')">
-