New Topic

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?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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.

    #1349
    Moose
    Participant

    Absolutely 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.

    #1350
    StartupWP
    Keymaster

    You’re welcome.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.