• Resolved s2am

    (@s2am)


    I would like to add the sharing buttons on a custom location, which I could do with
    <?php echo do_shortcode(‘[scriptless]’); ?>
    but I’m looking for the normal version like
    <?php the_scriptless_buttons($post_id, $site_id) ?>
    Is that possible?

Viewing 1 replies (of 1 total)
  • Plugin Author Robin Cornett

    (@littlerchicken)

    Yes, if you prefer not to use the shortcode, you can use this:

    
    if ( function_exists( 'scriptlesssocialsharing_do_buttons' ) ) {
    	echo scriptlesssocialsharing_do_buttons();
    }
    

    (Wrapped in a check for the existence of the function so your site doesn’t break if the plugin is deactivated.)

    Another option would be to use the locations filter as described in the FAQ, if you have a specific hook/priority you want to use for the button placement.

Viewing 1 replies (of 1 total)
  • The topic ‘Add buttons on custom location without schortcode’ is closed to new replies.