WordPress.org

Support

Support » Themes and Templates » Expound » [Resolved] Social sharing buttons on the menu bar?

[Resolved] Social sharing buttons on the menu bar?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hey there, sorry for the late response. The sharing buttons are indeed exclusive to the wpmag.ru website, but here’s how I added them with a plugin and an action in the theme:

    add_action( 'expound_navigation_after', 'wpmag_navigation_after' );
    function wpmag_navigation_after() {
            ?>
            <ul class="social">
                    <li class="twitter"><a target="_blank" href="http://twitter.com/wpmagru">Twitter</a></li>
                    <li class="facebook"><a target="_blank" href="http://facebook.com/wpmagru">Facebook</a></li>
            </ul>
            <?php
    }

    Then give it some style with custom CSS. Some social images are shipped with the theme but it’s fairly easy to use others. Hope that helps!

    What is the code to add Tumblr, Flickr, Blogger, Youtube and Google+ ?

    Thank you for the lovely template – can you give a little more detail on how you did this? Was it merely a matter of updating header.php? Thanks so much <3

    No, you don’t have to edit the theme to put the icons in the menu. You have to create a child theme or use a plugin to attache the function I wrote above. Here’s a list of all currently supported icons: http://wordpress.org/support/topic/social-media-icons-in-menu?replies=4

    Hope that helps!

    Hi Konstantin, I might seem a little ignorant, but where would I paste the code you have written above? I’m still feeling my way through wordpress and it’s all a bit scary for me at the moment

    Theme Author Konstantin Kovshenin

    @kovshenin

    Ray, a child theme is best.

    Ray, did you go through the steps of creating a child theme using Expound as a parent theme first? I’ve done that. That allows you to edit the child theme’s CSS and PHP, etc., which then leaves the parent theme’s files alone (safest way to work), while overriding them per your customization. I believe that the above would then be pasted into the header.php of the child theme files.

    Theme Author Konstantin Kovshenin

    @kovshenin

    The above would actually be pasted in functions.php, not header.php.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Social sharing buttons on the menu bar?’ is closed to new replies.
Skip to toolbar