Support » Fixing WordPress » Editing posts

  • Resolved elevatingyourbusiness


    I want to put this code on the top of a post. (I have it on the bottom already)

    <?php if (function_exists(‘sociable_html’)) {
    echo sociable_html();
    } ?>

    Which php file would I edit for that to happen?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator t-p


    check this “add shortcode” WP_Snippet and see if you can use it for your purpose:



    Forum Moderator

    Or add it to the single.php template file in your theme just before the posts title.

    These are the options I have



    Forum Moderator

    Looks like your theme does not have a separate single.php template file. ;-(

    Yes esmi. That’s why I thought it might be helpful to tell you what I had.

    What does the single.php include. Maybe I can do a search through some of the files I “think” it could be.



    Forum Moderator

    The most likely template file is going to be index.php. That’s the file that should be used if a theme doesn’t contain a single.php template.

    make a copy if index.php, but call it single.php

    this is now the template for posts and may be edited without changing the homepage

    Thanks everyone.

    I tried the index.php but that didn’t work.

    So I tried home.php, (same code as index.php) and that worked.

    The theme is Elements of SEO. Just in case anyone else ever has this problem.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Editing posts’ is closed to new replies.