Adding to the ‘Divi Theme Options’ in ‘DF – Icons Child Theme’ child theme involves adding an toggle on-off switch option, a url text field for the icon and updating includes/social_icons.php file.
Let us assume that I need to integrate the paypal icon from fontawesome (fa-paypal)
Adding toggle on-off switch option
Open includes/helper.php and edit the get_social_options function. Locate the comment “Add your icon toggle switch definition here.” and add the following code there
Adding URL field option
Open includes/helper.php and edit the get_social_options function. Locate the comment “Add your social icon url definition here..” and add the following code. Not the use of elegant theme custom options divi_show_paypal_icon and divi_paypal_url which should match your the options defined above.
Updating Social Icon HTML template.
Open includes/social_icons.php and add the following php code to in the order desired.
You can view the modified social-icons.php and helper.php files below. Please note the files are uploaded as text files.