Edit: default-settings.php
<?php // Get saved settings with proper defaults to avoid undefined index errors $dnxte_default_settings = array( 'bg_color' => '#7a5af8', 'bg_hover_color' => '#333333', 'position' => 'right', 'border_radius' => '5', 'position_offset_right' => '10', 'position_offset_left' => '10', 'position_offset_bottom' => '10', 'icon_text_color' => '#ffffff', 'icon_text_hover_color' => '#f8f8f8', 'icon_text' => 'Back To Top', 'button_content' => 'text', 'button_icon' => 'fa fa-arrow-up', 'icon_placement' => 'left', 'button_icon_type' => 'dashicon', 'button_dashicon' => 'dashicons-arrow-up-alt2', 'button_custom_image' => DIVI_ESSENTIAL_ASSETS . 'images/admin/arrow-top-white.svg', 'button_external_url' => '', 'hide_on_mobile' => 0, 'hide_on_mobile_size' => '1024', 'display_text_align' => 'horizontal', 'custom_back_to_top' => 0, 'custom_back_to_top_link' => '', 'display_text' => 'Back To Top', 'button_font' => '', 'button_font_weight' => '400', 'button_font_size' => '14', 'button_letter_spacing' => '0', 'button_line_height' => '1', 'icon_size' => '24', 'button_padding_top' => '10', 'button_padding_right' => '10', 'button_padding_bottom' => '10', 'button_padding_left' => '10', 'button_padding_linked_vertical' => 0, 'button_padding_linked_horizontal' => 0, ); $GLOBALS['dnxte_default_settings_fields'] = $dnxte_default_settings;
Save
Back