• Resolved ViktorZ1991

    (@viktorz1991)


    Hi,

    I’m having trouble adding the social sharing icons in single view.

    I don’t where exactly to put the code <?php get_template_part( 'post-templates/social', 'single' ); ?>.

    I know it’s says on line 45 but it doesn’t seem to work… Can you tell me specifically below which line of code should I put it?

    (Also, you might want to update the documentation, instead of line 45 you can specify the line of code, it’s easier that way, just a suggestion.)

    Thank you in advance.

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

    (@acosmin)

    After these lines:

    <span class="post-small-button left p-read-more" id="share-<?php the_ID(); ?>-rm">
     <a href="<?php echo esc_url( get_permalink() ); ?>" rel="nofollow" title="<?php _e( 'Read More...', 'acosmin' ) ?>"><i class="fa fa-ellipsis-h fa-lg"></i></a>
    </span>

    Thread Starter ViktorZ1991

    (@viktorz1991)

    There isn’t code like the one you posted inside single.php

    That’s a code from content.php and I want to add social sharing buttons on the single page, not on the index page.

    Theme Author acosmin

    (@acosmin)

    Sorry for that, put it bellow this line:

    <aside class="share-pagination<?php if( $disable_about ) { echo ' about-disabled'; } ?> clearfix">

    You could try JetPack social sharing if it doesn’t work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can't add social sharing icons in single view’ is closed to new replies.