From 267fbaee5c92be052796117dd6c8a5e8cb5f47a7 Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Thu, 3 Apr 2025 12:50:42 +0300 Subject: [PATCH] product slider link z-index --- .../assets/css/product-slider.css | 19 ++++++++++++++----- themes/oont-themev2/functions.php | 2 +- themes/oont-themev2/style.css | 2 +- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/themes/oont-themev2/assets/css/product-slider.css b/themes/oont-themev2/assets/css/product-slider.css index 0d9cdaab7..9e48e6cf3 100644 --- a/themes/oont-themev2/assets/css/product-slider.css +++ b/themes/oont-themev2/assets/css/product-slider.css @@ -2,7 +2,7 @@ position: relative; } -/* Image slider layout */ +/* Layout */ .product-image-slider { position: relative; display: block; @@ -11,7 +11,7 @@ margin: auto; } -/* Slider item base */ +/* Default slider item (hidden) */ .slider-item { position: absolute; opacity: 0; @@ -20,10 +20,19 @@ width: 100%; height: auto !important; } -/* link top */ -.slider-item > a { - z-index: 1; +/* Active/visible item */ +.slider-item.active { + opacity: 1; + position: relative; + /* Still z-index -1 to stay behind the border */ + z-index: -1 !important; +} + +/* Make link clickable above image */ +.slider-item a { + position: relative; + z-index: 1; } /* Active image styling */ diff --git a/themes/oont-themev2/functions.php b/themes/oont-themev2/functions.php index ffea20421..bbc06595c 100644 --- a/themes/oont-themev2/functions.php +++ b/themes/oont-themev2/functions.php @@ -11,7 +11,7 @@ /** * Define Constants */ -define( 'CHILD_THEME_OONT_THEME_VERSION', '1.4.4' ); +define( 'CHILD_THEME_OONT_THEME_VERSION', '1.4.5' ); define( 'SOFTOBA_RETURN_POST_TYPE', 'return_request' ); define( 'SOFTOBA_EXCHANGE_POST_TYPE', 'exchange_request' ); define('SOFTOBA_THEME_DIR', get_stylesheet_directory()); diff --git a/themes/oont-themev2/style.css b/themes/oont-themev2/style.css index fca8b0657..37f62b163 100644 --- a/themes/oont-themev2/style.css +++ b/themes/oont-themev2/style.css @@ -3,7 +3,7 @@ Theme Name: OONT THEME V last Author: Brainstorm Force Author URI: http://wpastra.com/about/ Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme! -Version: 1.4.4 +Version: 1.4.5 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: oont-theme