How to a custom fontawesome icon option to ‘Divi Theme options’ for ‘DF – Icons Child Theme’ theme

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.

30 day Money Back Guarantee

30 day Money Back Guarantee

If you aren't happy with our products, you get your money back. No questions asked.
Full Support on Every Product via our Helpdesk

Full Support on Every Product via our Helpdesk

Excellent documentation and dedicated support are all part of the service
Secure using Stripe and PayPal

Secure using Stripe and PayPal

We take your security seriously and have every page secured via SSL on our site.

We Offer both PayPal and Stripe for Payment.

Subscribe

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!