Support » Plugin: Genesis Featured Widget Amplified » [Plugin: Genesis Featured Widget Amplified] Add a Pinterest button?

  • Resolved cyndimarie

    (@cyndimarie)


    Hi Nick,

    I use this plugin all the time and I love it.

    I have a client who likes the look of the featured posts in her sidebar, but she also wants a Pinterest button underneath the featured image.

    I’m going to look at creating a function that outputs the pin button and then hook it with one of the hooks you listed.

    I just wanted to check here first to see if you already knew of a way to accomplish this?

    Thanks!

    http://wordpress.org/extend/plugins/genesis-featured-widget-amplified/

Viewing 1 replies (of 1 total)
  • I figured it out quicker than I thought. Here’s the finished product:

    add_action( 'gfwa_before_post_content', 'gfwa_pin' );
    function gfwa_pin() {
        /** Horizontal */
        printf( '<div class="pinterest-button"><a href="http://pinterest.com/pin/create/button/?url=%s&media=%s" class="pin-it-button" count-layout="horizontal">Pin It</a><script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script></div>', urlencode( get_permalink() ), urlencode( genesis_get_image( array( 'format' => 'url' ) ) ) );
    }

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Genesis Featured Widget Amplified] Add a Pinterest button?’ is closed to new replies.