New Topic

Reply To: StartupWP Pro 1.1.6 – Social media icons in Nav bar?

Home › Forum › Customization › StartupWP Pro 1.1.6 – Social media icons in Nav bar? › Reply To: StartupWP Pro 1.1.6 – Social media icons in Nav bar?

#1348

StartupWP
Keymaster

1. First, you’ll need to setup a child theme if you haven’t already:

https://startupwp.com/topic/child-theming/

2. Copy over header.php to the child theme.

3. Open up header.php (https://startupwp.com/topic/understanding-the-theme-code/).

4. Cut the following:

<?php
if ( $options['social'] ){
echo '<div id="social">';
if ($options['googleurl']!="")
echo '<a href="'.esc_url($options['googleurl']).'" id="social-google"><img src="'.get_template_directory_uri().'/images/social/google.png" alt="Google+" /></a>';
if ($options['linkedinurl']!="")
echo '<a href="'.esc_url($options['linkedinurl']).'" id="social-linkedin"><img src="'.get_template_directory_uri().'/images/social/linkedin.png" alt="LinkedIn" /></a>';
if ($options['twitterurl']!="")
echo '<a href="'.esc_url($options['twitterurl']).'" id="social-twitter"><img src="'.get_template_directory_uri().'/images/social/twitter.png" alt="Twitter" /></a>';
if ($options['facebookurl']!="")
echo '<a href="'.esc_url($options['facebookurl']).'" id="social-facebook"><img src="'.get_template_directory_uri().'/images/social/facebook.png" alt="Facebook" /></a>';
echo ''.do_shortcode( stripslashes(wp_kses_post($options['custicons'])) ).'';
echo '</div>'; }
?>

and paste over:

<?php if ( $options['search'] ){ get_search_form(); } ?>

5. Update us at this point, you may require more assistance for styling.