Home › Forum › Customization › StartupWP Pro 1.1.6 – Social media icons in Nav bar?
- This topic has 3 replies, 2 voices, and was last updated 12 years, 2 months ago by
StartupWP.
Viewing 3 posts - 1 through 3 (of 3 total)
- AuthorPosts
- January 8, 2014 at 8:59 AM #1348
StartupWP
Keymaster1. 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.
January 8, 2014 at 9:14 AM #1349Moose
ParticipantAbsolutely perfect! Thank you kindly. I have removed the original php code in the <head>, and your code snippet works lovely.
I should be able to style without any further issues, but I’ll let you know if I need any further help.
Thanks again.
January 8, 2014 at 9:38 AM #1350StartupWP
KeymasterYou’re welcome.
- AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
