Support » Plugin: Scriptless Social Sharing » Shortcode / PHP

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

    (@littlerchicken)

    Thank you!

    If you want to move it using an action, you can do something like this (which is Genesis Framework specific, but any reasonable hook will do):

    add_action( 'genesis_entry_content', 'prefix_scriptlesssocialsharing_buttons_entry_content', 5 );
    function prefix_scriptlesssocialsharing_buttons_entry_content() {
    	echo wp_kses_post( scriptlesssocialsharing_do_buttons() );
    }

    You would need to uncheck both location settings in the plugin, or also include this line to disable the default output:

    remove_filter( 'the_content', 'scriptlesssocialsharing_print_buttons', 99 );

    Just note that if you want to use the plugin on any kind of archive pages, you’ll need to see how to tackle that in the FAQ. And please practice safe coding, back up your files, etc. etc.

    I’ll make a note of the shortcode request. Thanks for the suggestion!

    Thanks, Robin 🙂

    Hi Robin,

    I would also like to make a request for a shortcode. It would be very helpful, especially for people who aren’t savvy when it comes to playing around with php (that would be me). 🙂

    Thanks.

    +1

    Plugin Author Robin Cornett

    (@littlerchicken)

    Friends, since you’ve requested a shortcode, would you have some time and a place (a development, staging, or local site, not a production/live site) to test Scriptless Social Sharing 2.0.0 (make sure you download the develop branch please), which includes a shortcode?

    Some notes:

    • shortcode instructions are on the readme
    • this version brings with it some significant settings changes: previously, the buttons location was set sitewide for any content type which supported buttons. Now, the location can be set for each and every content type. I’ve attempted to handle this change gracefully, but would really appreciate feedback on the process.
    • the individual content type does not have to “support” buttons in order to use the shortcode–they can be added to any post/page/CPT. The manual setting exists to tell the plugin whether or not to add its styles to the output.
    • Currently, the output is actually modified for Genesis Framework users (once settings are updated). If you use Genesis and this causes problems for you, I’d love to know, because I may undo that, or at least make it something that users have to enable.

    If you choose to test the updated plugin, please please please don’t use it on a live site yet–I don’t think it will break anything, but I’m still testing and tweaking, so things could happen. If you have issues or feedback, please weigh in on Github by creating a new issue, or you are welcome to contact me directly.

    Thank you!

    Robin, the shortcode is perfect – the fact that you’ve added the ability to change the heading and select the buttons is way more than I expected and really useful.

    Brilliant, thank you. I’ve sent a donation, it’s not a lot but it should get you a few drinks on me this weekend!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Shortcode / PHP’ is closed to new replies.