Skip to content

Instantly share code, notes, and snippets.

View SJ-James's full-sized avatar

Stephen James SJ-James

View GitHub Profile
@SJ-James
SJ-James / more-divi-social-icons.php
Last active March 27, 2019 13:50 — forked from mrkdevelopment/In your social icons file
Divi social icons extension
<?php // << Remove opener if adding to functions.php
if ( ! function_exists( 'et_load_core_options' ) ) {
function et_load_core_options() {
global $shortname, $themename;
require_once get_template_directory() . esc_attr( "/options_{$shortname}.php" );
$newOptions = [];
foreach ($options as $i => $optionArray) {