File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 77
77
<!-- -> style-2 : 1 button floating wrap all button selected -->
78
78
79
79
<h1>Floating Button</h1>
80
+ <p>Default icon is Whatsapp if you want to change the icon, click upload image button</p>
80
81
81
82
<form action="options.php" method="POST">
82
83
<?php settings_fields ('floating_button_settings ' ); ?>
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ function feature_absolute_dir($path = "") {
107
107
if ($ selectstyle == 'style-1 ' ) {
108
108
for ($ i = 1 ; $ i <= 5 ; $ i ++) {
109
109
$ image = get_option ('floating_image_ ' .$ i );
110
- $ imageUrl = wp_get_attachment_image_url ($ image , 'original ' );
110
+ $ imageUrl = wp_get_attachment_image_url ($ image , 'original ' ) ?: feature_dir ( ' ./img/wa-xl.svg ' ) ;
111
111
112
112
$ bgColor = get_option ('floating_background_color_ ' .$ i );
113
113
$ url = get_option ('floating_button_url_ ' .$ i );
You can’t perform that action at this time.
0 commit comments