Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Sarah

    (@shen045)

    Hi Beth,

    How you do this really depends on your theme. The simplest way is if your theme has a Widget region in the header. Then you can just go into the Widgets configuration and add the Crafty Social Buttons widget to that area.

    If your theme doesn’t have a widget for the header, then you’ll need to edit your theme/child theme files to add the buttons to the header. There is an action tag you can add in the right location that looks like this:
    <?php do_action('crafty-social-link-buttons'); ?>

    Let me know if you need any help with this.
    Cheers,
    Sarah

    Thread Starter Beth

    (@pedalkraft)

    Thanks Sarah!
    Do you mean I literally just add that line of code to the header, where I want the buttons to appear? If so that’s no problem 🙂
    Beth

    Plugin Author Sarah

    (@shen045)

    Yep, that should be all you need to get the buttons to show up.
    You’ll probably need to add some CSS to get the buttons positioned where you want them inside the header.
    Cheers,
    Sarah

    Hi

    Thanks for this perfect plugin
    I’ve tried to use the action to put the plugin where I want
    It work but with the default option (size and default social icon)
    Is there any option to put to have an other size and other icon ?

    Thanks

    Plugin Author Sarah

    (@shen045)

    It should pick up the settings regardless of whether it is displayed with a widget, the shortcode or the action hook.

    But do note that in the settings page for the plugin, there are actually two tabs of settings. The settings on the first tab (the default) only affect the sharing buttons. It is the settings on the second tab that you will need to modify to affect the link buttons.

    Thanks for your reply

    I don’t see what you say (I’m french 😉 )

    I’ve put this code in one of my page
    <?php do_action(‘crafty-social-link-buttons’); ?>

    But the params in the setting tab don’t affect my shortcode and it put it in default mode

    Plugin Author Sarah

    (@shen045)

    There are two sets of parameters you can change in the plugin.
    I think what is happening is that you are changing the settings for the Share Buttons, and that is why you are still seeing the defaults for the Link Buttons.

    To make sure you are changing the right ones, make sure you click on “Link Button Options” at the top of the settings screen. Then make your changes and then press Save at the bottom of the screen.

    Here is a screenshot of where you need to click first: link-button-options.png.

    YESSSS of course !!!
    You’re right !!
    So I’ve change <?php do_action(‘crafty-social-link-buttons’); ?> with <?php do_action(‘crafty-social-share-buttons’); ?>

    And it works !!!

    Thxs a lot

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Add to header?’ is closed to new replies.