• How can I place an addition jetpack sharing code right under the title (after comments) for single post?

    <?php echo sharing_display(); ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there.

    You said after comments, if so you’ll want to target the comments.php to ensure every page calling the comments template file will also have the sharing_display() function. The comments.php file is located within the themes folder.

    Then place that code where you need it. If you want it just outside of comments then you could have it right after the closing div. Probably best to do that in a child theme:

    http://codex.wordpress.org/Child_Themes
    http://premium.wpmudev.org/blog/create-wordpress-child-theme/

    Have a fantastic day! 🙂

    Thread Starter quirkymissy

    (@quirkylissy)

    My mistake. I meant echoing the sharing under the title in single post, right after the comments count, not comments.

    Hey again.

    content_header.php
    content_page.php

    They both have the_title() function which brings in the the title, you could place it around there are you require.

    Hope this helps. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Eco jetpack sharing under title’ is closed to new replies.