Generates random id for tainacan carousel list
This commit is contained in:
parent
400b341ce0
commit
2a38ed1f00
|
@ -862,7 +862,7 @@ class Theme_Helper {
|
|||
'collection_text_color' => '#ffffff',
|
||||
'tainacan_api_root' => '',
|
||||
'tainacan_base_url' => '',
|
||||
'class_name' => '',
|
||||
'class_name' => ''
|
||||
);
|
||||
$args = wp_parse_args($args, $defaults);
|
||||
|
||||
|
@ -880,7 +880,7 @@ class Theme_Helper {
|
|||
$props .= (str_replace('_', '-', $key) . "='" . $value . "' ");
|
||||
}
|
||||
|
||||
return "<div data-module='carousel-items-list' id='tainacan-items-carousel-shortcode' $props ></div>";
|
||||
return "<div data-module='carousel-items-list' id='tainacan-items-carousel-shortcode_" . uniqid() . "' $props ></div>";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -956,7 +956,7 @@ class Theme_Helper {
|
|||
$props .= (str_replace('_', '-', $key) . "='" . $value . "' ");
|
||||
}
|
||||
|
||||
return "<div data-module='dynamic-items-list' id='tainacan-dynamic-items-list-shortcode' $props ></div>";
|
||||
return "<div data-module='dynamic-items-list' id='tainacan-dynamic-items-list-shortcode_" . uniqid(). "' $props ></div>";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -124,6 +124,8 @@
|
|||
align-items: center;
|
||||
max-width: 100%;
|
||||
|
||||
color: var(--tainacan-white);
|
||||
|
||||
span:not(.ellipsed-text) {
|
||||
margin-right: 5px;
|
||||
margin-left: -5px;
|
||||
|
|
Loading…
Reference in New Issue