Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ScorpionGod

    (@scorpiongod)

    Hey,
    Error should be the addition by you. Are you sure there is no any errors in your code addition? Design break can happen when your code is wrong. Please check and update the thread.

    If possible, paste the current code in the plugin after you changed it.

    Thread Starter MavsFanRy

    (@mavsfanry)

    This is just what i changed adding fb share. Didn’t see anything.

    echo '<!-- Counters by Genesis Optimized Social Share Plugin -->';
    			echo '<div id="optimizedsocial">';
    			echo '<div class="socialbox">';
    			echo '<div class="fb-like" data-href="' . get_permalink( $post->ID ) . '" data-send="false" data-layout="box_count" data-show-faces="false"></div></div>';
                           echo '<div class="fb-share-button" data-href="' . get_permalink( $post->ID ) . '" data-type="box_count"></div></div>';
                           echo '<div class="socialbox"><a rel="nofollow" href="https://twitter.com/share" data-url="' . get_permalink( $post->ID ) . '" data-text="' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-count="vertical" class="twitter-share-button">Tweet</a></div>';
    			echo '<div class="socialbox"><div class="g-plus" data-action="share" data-annotation="vertical-bubble" data-height="60"></div></div>';
    			echo '<div class="socialbox pinterest"><a class="pin" href="https://www.pinterest.com/pin/create/button/?url=' . get_permalink( $post->ID ) . '&description=' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-pin-do="buttonPin" count-layout="vertical" data-pin-config="above">PinIt</a></div>';
    			echo '<div class="clear"></div>';
    			echo '</div>';
    			echo '<!-- Counters by Genesis Optimized Social Share Plugin End -->';
    		}
    	}
    }
    
    //* XHTML Genesis Theme Support
    add_action( 'genesis_after_post', 'optimized_counters', 1 );
    function optimized_counters() {
    if ( is_single() ) {
    	echo '<!-- Counters by Optimized Social Share Plugin -->';
    	echo '<div id="optimizedsocial">';
    	echo '<div class="socialbox">';
    	echo '<div class="fb-like" data-href="' . get_permalink( $post->ID ) . '" data-send="false" data-layout="box_count" data-show-faces="false"></div></div>';
            echo '<div class="fb-share-button" data-href="' . get_permalink( $post->ID ) . '" data-type="box_count"></div></div>';
            echo '<div class="socialbox"><a rel="nofollow" href="https://twitter.com/share" data-url="' . get_permalink( $post->ID ) . '" data-text="' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-count="vertical" class="twitter-share-button">Tweet</a></div>';
    	echo '<div class="socialbox"><div class="g-plus" data-action="share" data-annotation="vertical-bubble" data-height="60"></div></div>';
    	echo '<div class="socialbox pinterest"><a class="pin" href="https://www.pinterest.com/pin/create/button/?url=' . get_permalink( $post->ID ) . '&description=' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-pin-do="buttonPin" count-layout="vertical" data-pin-config="above">PinIt</a></div>';
    	echo '<div class="clear"></div>';
    	echo '</div>';
    	echo '<!-- Counters by Optimized Social Share Plugin End -->';
    Plugin Author ScorpionGod

    (@scorpiongod)

    You’ve put double closing Divs. That’s the error. Try this code now.

    echo '<!-- Counters by Genesis Optimized Social Share Plugin -->';
    			echo '<div id="optimizedsocial">';
    			echo '<div class="socialbox">';
    			echo '<div class="fb-like" data-href="' . get_permalink( $post->ID ) . '" data-send="false" data-layout="box_count" data-show-faces="false"></div>';
                           echo '<div class="fb-share-button" data-href="' . get_permalink( $post->ID ) . '" data-type="box_count"></div>';
                           echo '<div class="socialbox"><a rel="nofollow" href="https://twitter.com/share" data-url="' . get_permalink( $post->ID ) . '" data-text="' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-count="vertical" class="twitter-share-button">Tweet</a></div>';
    			echo '<div class="socialbox"><div class="g-plus" data-action="share" data-annotation="vertical-bubble" data-height="60"></div></div>';
    			echo '<div class="socialbox pinterest"><a class="pin" href="https://www.pinterest.com/pin/create/button/?url=' . get_permalink( $post->ID ) . '&description=' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-pin-do="buttonPin" count-layout="vertical" data-pin-config="above">PinIt</a></div>';
    			echo '<div class="clear"></div>';
    			echo '</div>';
    			echo '<!-- Counters by Genesis Optimized Social Share Plugin End -->';
    		}
    	}
    }
    
    //* XHTML Genesis Theme Support
    add_action( 'genesis_after_post', 'optimized_counters', 1 );
    function optimized_counters() {
    if ( is_single() ) {
    	echo '<!-- Counters by Optimized Social Share Plugin -->';
    	echo '<div id="optimizedsocial">';
    	echo '<div class="socialbox">';
    	echo '<div class="fb-like" data-href="' . get_permalink( $post->ID ) . '" data-send="false" data-layout="box_count" data-show-faces="false"></div>';
            echo '<div class="fb-share-button" data-href="' . get_permalink( $post->ID ) . '" data-type="box_count"></div>';
            echo '<div class="socialbox"><a rel="nofollow" href="https://twitter.com/share" data-url="' . get_permalink( $post->ID ) . '" data-text="' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-count="vertical" class="twitter-share-button">Tweet</a></div>';
    	echo '<div class="socialbox"><div class="g-plus" data-action="share" data-annotation="vertical-bubble" data-height="60"></div></div>';
    	echo '<div class="socialbox pinterest"><a class="pin" href="https://www.pinterest.com/pin/create/button/?url=' . get_permalink( $post->ID ) . '&description=' . urlencode( strip_tags( get_the_title( $post->ID ) ) ) . '" data-pin-do="buttonPin" count-layout="vertical" data-pin-config="above">PinIt</a></div>';
    	echo '<div class="clear"></div>';
    	echo '</div>';
    	echo '<!-- Counters by Optimized Social Share Plugin End -->';
    Thread Starter MavsFanRy

    (@mavsfanry)

    Now its a FB like/FB share
    new line tweet/g+/pin

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Messes up Post/Sidebar Alignment After adding Share’ is closed to new replies.