File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ protected function _register_controls()
6969 [
7070 'label ' => esc_html__ ('Background color ' , 'Latest-Posts-Hover ' ),
7171 'type ' => \Elementor \Controls_Manager::COLOR ,
72- 'default ' => '#FFFFFF ' ,
72+ 'default ' => '#f8f8f8 ' ,
7373 ]
7474 );
7575 $ this ->add_control (
@@ -81,6 +81,9 @@ protected function _register_controls()
8181 'min ' => 0 ,
8282 'max ' => 1 ,
8383 'step ' => 0.1 ,
84+ 'selectors ' => [
85+ '{{WRAPPER}} .title ' => 'filter:{{VALUE}}!important; ' ,
86+ ],
8487 ]
8588 );
8689 $ this ->add_control (
@@ -814,7 +817,6 @@ protected function render()
814817 }
815818
816819 $ posts = get_posts ($ args );
817- $ opacity = $ settings ['card_opacity ' ];
818820 $ cardColor = $ settings ['card_color ' ];
819821 $ wordPc = $ settings ['content_word_pc ' ];
820822 $ wordMobile = $ settings ['content_word_mobile ' ];
@@ -1009,7 +1011,7 @@ protected function render()
10091011 width: 100%;
10101012 height: 600px;
10111013 background-color: ' . $ cardColor . ';
1012- filter:opacity( ' . $ opacity . ' );
1014+ filter:opacity(0.8 );
10131015 transform: translateY(100%)
10141016 translateY(-170px)
10151017 translateZ(0); /* Regola la posizione verticale */
You can’t perform that action at this time.
0 commit comments