Alexandra Stafford
asked 10 years ago

Is there a way to add an Instagram and Pinterest or any other social icon to that bar?
 
Thanks so much! 

2 Answers
DominicStaff
answered 10 years ago

If you want to add the Instagram and Pinterest or any other social icon to that bar, you can do as the following:
1. Open the extras.php file in the folder path “\wp-content\themes\dw-minion\inc”. find the line 246, add the following code under line 246.

$social_links['instagram'] = dw_minion_get_theme_option( 'instagram', '' );
$social_links['pinterest '] = dw_minion_get_theme_option( 'pinterest ', '' );

– Find the line 270, add the following code under line 270:

<?php if($social_links['instagram']!='') { ?><li class="social"><a href="<?php echo $social_links['instagram']; ?>"><i class="icon-instagram"></i></a></li><?php } ?>
<?php if($social_links['pinterest']!='') { ?><li class="social"><a href="<?php echo $social_links['pinterest']; ?>"><i class="icon-pinterest"></i></a></li><?php } ?>

2. Open the customizer.php file in the folder path “”. Find the line 237, add the following code under line 237.

    /*********instagram************/
    $wp_customize->add_setting('dw_minion_theme_options[instagram]', array(
    'default'        => '',
    'capability'     => 'edit_theme_options',
    'type'           => 'option',
  ));
  $wp_customize->add_control('instagram', array(
    'label'      => __('instagram', 'dw-minion'),
    'section'    => 'dw_minion_social_links',
    'settings'   => 'dw_minion_theme_options[instagram]',
  ));

  /*********pinterest************/
    $wp_customize->add_setting('dw_minion_theme_options[pinterest]', array(
    'default'        => '',
    'capability'     => 'edit_theme_options',
    'type'           => 'option',
  ));
  $wp_customize->add_control('pinterest', array(
    'label'      => __('pinterest', 'dw-minion'),
    'section'    => 'dw_minion_social_links',
    'settings'   => 'dw_minion_theme_options[pinterest]',
  ));

3. Log in to Dashboard > Customize > Social Links, then add your link to text-box.
Hope this helps !

Alexandra Stafford
replied 10 years ago

Wow! Awesome! Thank you so much. I will be trying this tonight. I love this theme!

Julie Russo
answered 10 years ago

I wanted to add a little more reference for anybody else who is trying to do this: it works without images/styles because the icons are from Font Awesome which is already embedded in the stylesheet. Neat! If you want to add a social media link for a site that’s NOT already in there, you may need to add something like this to main.css:
.icon-yoursite:before { content: “\f15c”; }
You can find the codes (that fxxx number) for available icons at https://fortawesome.github.io/Font-Awesome/3.2.1/

Powered by DW Question & Answer Pro