• Resolved massimod

    (@massimod)


    My social share plugin automatically put the Share options at the end of every post and even after some other plugin data (related etc etc).

    I can manually inject the code of the sharing in the theme but i have no idea where, in which file.

    The plugin says:

    Theme developers can use <?php do_quickshare_output( $url, $title, $source, $description, $imgurl ); ?> in their template files wherever sharing is desire

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author acosmin

    (@acosmin)

    Depending on where you want to add those social sharing icons you need to open ./post-templates/content-single.php and:

    1. To display above the post content, find:
    <div class="single-content<?php if( $show_thumbnail) { echo ' featured-image'; } ?>">
    add after it:
    <?php do_quickshare_output( $url, $title, $source, $description, $imgurl ); ?>

    2. To display below the post content, find:
    </div><!-- END .single-content -->
    add before it:
    <?php do_quickshare_output( $url, $title, $source, $description, $imgurl ); ?>

    You should ask the plugin developer ho to change those variables: $url, $title and so on…

    Thread Starter massimod

    (@massimod)

    Thanks, i got the idea.

    Reading more the help file, all i need to add is

    <?php do_quickshare_output(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help to inject Social Share code’ is closed to new replies.