Skip to content

Commit 3eb796f

Browse files
committed
Buy Now button text size setting added
1 parent 942de70 commit 3eb796f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

includes/Integrations/Elementor/Subscription_Plans_Widget.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,27 @@ protected function register_button_style_controls() {
736736
]
737737
);
738738

739+
$this->add_responsive_control(
740+
'button_font_size',
741+
[
742+
'label' => __( 'Text Size', 'wp-user-frontend' ),
743+
'type' => Controls_Manager::SLIDER,
744+
'size_units' => [ 'px', 'em', 'rem' ],
745+
'range' => [
746+
'px' => [ 'min' => 8, 'max' => 50 ],
747+
'em' => [ 'min' => 0.5, 'max' => 5 ],
748+
'rem' => [ 'min' => 0.5, 'max' => 5 ],
749+
],
750+
'default' => [
751+
'size' => '1',
752+
'unit' => 'rem',
753+
],
754+
'selectors' => [
755+
'{{WRAPPER}} .wpuf-sub-button' => 'font-size: {{SIZE}}{{UNIT}};',
756+
],
757+
]
758+
);
759+
739760
$this->add_control(
740761
'button_align',
741762
[

0 commit comments

Comments
 (0)