WordPress.org

Ready to get started?Download WordPress

Forums

Expound
[resolved] Social sharing buttons on the menu bar? (9 posts)

  1. Giulio1989
    Member
    Posted 9 months ago #

    I've seen from the fourth photo on this page (http://kovshenin.com/) that it's possible to add social sharing buttons on the menu bar, but I don't know how to do. Can you give me a hand, please?
    Congratulations for the theme, beautiful!

  2. Konstantin Kovshenin
    Member
    Theme Author

    Posted 8 months ago #

    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!

  3. jspediac
    Member
    Posted 7 months ago #

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

  4. sykospark
    Member
    Posted 6 months ago #

    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

  5. Konstantin Kovshenin
    Member
    Theme Author

    Posted 6 months ago #

    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!

  6. Ray Davies
    Member
    Posted 6 months ago #

    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

  7. Konstantin Kovshenin
    Member
    Theme Author

    Posted 6 months ago #

    Ray, a child theme is best.

  8. karis0166
    Member
    Posted 6 months ago #

    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.

  9. Konstantin Kovshenin
    Member
    Theme Author

    Posted 6 months ago #

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

Reply

You must log in to post.

About this Theme

About this Topic