Title: Adding Social Networks
Last modified: August 31, 2016

---

# Adding Social Networks

 *  Resolved [skunkgrunt](https://wordpress.org/support/users/skunkgrunt/)
 * (@skunkgrunt)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/adding-social-networks/)
 * This was asked before, but no response was given.
    I’d like to add additional
   social network links. Specifically, pinterest, and instagram.
 * I edited the social-links.php and modified the code to add the networks, but 
   it’s not changing in the admin for some reason. I’m no php expert, so I can’t
   diagnose the problem.
 *     ```
       <?php if(isset($apollo_social_options["pinterest"]) && $apollo_social_options["twitter"] !== ""): ?>
               	<li><a href="<?php echo esc_url($apollo_social_options["twitter"]); ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/pinterest.png" alt="" /></a></li>
               <?php endif; ?>
       		<?php if(isset($apollo_social_options["instagram"]) && $apollo_social_options["twitter"] !== ""): ?>
               	<li><a href="<?php echo esc_url($apollo_social_options["twitter"]); ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/instagram.png" alt="" /></a></li>
               <?php endif; ?>
       ```
   
 * I just found the social link settings in settings.php and copied and modified
   the code to include pinterest and instagram:
 *     ```
       add_settings_field(
       			'pinterest',
       			'Pinterest', array(&$this, 'apollo_input'),
       			'apollo_social_options',
       			'apollo_general_settings', array('pinterest', 'text', '', '')
       		);
       ```
   
 * Now they show up in the admin area, but when you insert a link, the icons don’t
   show, and I uploaded the required icons.
 * Help?
 * [https://wordpress.org/plugins/launchpad-by-obox/](https://wordpress.org/plugins/launchpad-by-obox/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [skunkgrunt](https://wordpress.org/support/users/skunkgrunt/)
 * (@skunkgrunt)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/adding-social-networks/#post-7239312)
 * Ok, I figured it out. I was almost there. I forgot to switch the “twitter” after
   the apollo_social_options in each entry.
    So it _should_ look like this:
 *     ```
       <?php if(isset($apollo_social_options["pinterest"]) && $apollo_social_options["pinterest"] !== ""): ?>
               	<li><a href="<?php echo esc_url($apollo_social_options["pinterest"]); ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/pinterest.png" alt="" /></a></li>
               <?php endif; ?>
       		<?php if(isset($apollo_social_options["instagram"]) && $apollo_social_options["instagram"] !== ""): ?>
               	<li><a href="<?php echo esc_url($apollo_social_options["instagram"]); ?>" rel="nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/instagram.png" alt="" /></a></li>
               <?php endif; ?>
       ```
   
 * Now, the options show up in the admin, and properly on the page.
 *  Plugin Author [obox](https://wordpress.org/support/users/obox/)
 * (@obox)
 * [10 years ago](https://wordpress.org/support/topic/adding-social-networks/#post-7239604)
 * Nice, just remember to save your code somewhere because it’ll be overwritten 
   with an update.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding Social Networks’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/launchpad-by-obox_696fa0.svg)
 * [Launchpad - Coming Soon & Maintenance Mode Plugin](https://wordpress.org/plugins/launchpad-by-obox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/launchpad-by-obox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/launchpad-by-obox/)
 * [Active Topics](https://wordpress.org/support/plugin/launchpad-by-obox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/launchpad-by-obox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/launchpad-by-obox/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [obox](https://wordpress.org/support/users/obox/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/adding-social-networks/#post-7239604)
 * Status: resolved