WordPress.org

Forums

Ward
Eco jetpack sharing under title (4 posts)

  1. quirkylissy
    Member
    Posted 1 year ago #

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

    <?php echo sharing_display(); ?>

  2. 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! :)

  3. quirkylissy
    Member
    Posted 1 year ago #

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

  4. 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. :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.