Support » Plugin: Scriptless Social Sharing » Floating social sharing and under the post possible?

  • Bluemad

    (@bluemad)


    Hi,

    At this moment I use this plugin as floating in Desktop (flex-flow: column nowrap;) and mobile (flex-flow: row nowrap;).

    In addition to that, I like to use it “After the content“. How do I use the scriptless social sharing widget as a floating widget as well as after the content?

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

    (@littlerchicken)

    You might consider using the standard settings for the “after the content” buttons, and then outputting your own buttons for the “floating” option by modifying the location filter for the before location (I would maybe select a hook, and set filter to false…it doesn’t actually have to be “before” the content if you are going to float it with CSS anyway).

    You could also add your own code to output the “floating” buttons, something like this:

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

    That uses a Genesis Framework hook, but you could use any hook you like, and also add a container div around the buttons to allow you to target the styling more specifically. Hope that helps you get started!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.