• Resolved myhero

    (@myhero)


    Hi there,

    Love this theme. Great work.

    I saw that you have two hacks under Tips and Hacks on your website.

    I’ve added this to my functions.php but how do I use it?

    Social Sharing Buttons: Index View – Expand, next to “Read More” button.

    function ac_social_sharing_index_rm() {
    	?>
        	<div class="post-small-button left p-share" id="share-<?php the_ID(); ?>-wrap">
                <a href="#" class="post-share-temp1" id="share-<?php the_ID(); ?>"><i class="fa fa-share"></i></a>
                <span class="contents clearfix">
                    <em><?php _e( 'Share this on', 'acosmin' ); ?></em>
                    <a target="_blank" href="https://twitter.com/share?url=<?php the_permalink(); ?>" rel="nofollow" class="social-btn twitter"><?php ac_icon( 'twitter' ); ?></a>
                    <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>" class="social-btn facebook" rel="nofollow"><?php ac_icon( 'facebook' ); ?></a>
                    <a target="_blank" href="https://plus.google.com/share?url=<?php the_permalink(); ?>" class="social-btn google-plus" rel="nofollow"><?php ac_icon( 'google-plus' ); ?></a>
                    <a href="#share-<?php the_ID(); ?>" class="close-this-temp1"><?php ac_icon( 'times' ); ?></a>
                </span>
            </div><!-- END #share-<?php the_ID(); ?> -->
        <?php
    }
    add_action( 'ac_action_content_read_more_after', 'ac_social_sharing_index_rm' );
Viewing 1 replies (of 1 total)
  • Thread Starter myhero

    (@myhero)

    Was looking at the incorrect view, it’s Index view I needed to look at.

    The only improvement here is that the sharing icon should rather be replaced with the word ‘share’.

Viewing 1 replies (of 1 total)
  • The topic ‘How do I use this hack?’ is closed to new replies.