• Resolved helpme_please

    (@helpme_please)


    I am new to WP and I have spend hours Googling and editing code trying like CRAZY to get the word/link “COMMENTS” to appear in either the header (next to the date) or the footer of EACH POST. If I click on an individual post, the ability to leave a comment is present, but on the home page, when a reader scrolls through all of the posts, there is no indication that there is the ability to leave a comment on a post. EVERY SINGLE BLOG IN THE WORLD seems to have the link present on EACH BLOG POST. Why is this so impossible for me to implement???? I have checked every possible box to “allow comments.” ALL I WANT is for the STUPID LINK TO APPEAR on each post. Please, please help so I can enjoy my weekend!!

    amplify theme

    stampinwithcharlene.com

Viewing 12 replies - 1 through 12 (of 12 total)
  • vladff

    (@vladff)

    This should be done with a child theme.
    See /inc/template-tags.php, there’s a function called amplify_posted_on() from lines 73 to 97. Replace it with this: http://pastebin.com/67aY6rzW
    Might need some extra styling but we’ll get to that after.

    Thread Starter helpme_please

    (@helpme_please)

    I have two different Child Theme plugins installed, but neither one has a inc/template-tags.php option. Ugh…

    vladff

    (@vladff)

    What I meant is you can see the function in that file.

    See if you can create a functions.php file with one of those plugins and simply add the code I gave you in your child’s functions.php and that’s it. Make sure there is an opening <?php tag in that file.

    Thread Starter helpme_please

    (@helpme_please)

    THANK YOU SO MUCH!!! It worked! I must say that I had to install a 3rd Child Theme plug-in, and it worked perfectly.

    I am currently happy with the styling, but while I have your attention, could you please leave me the css in case I ever want to change the font, size, color, or move the link to the post footer?

    Once again, thank you so very much!

    vladff

    (@vladff)

    You can open up a new thread and ask what you need when it’s case, I’ll be around 🙂 Meanwhile please mark this one as resolved.

    Thread Starter helpme_please

    (@helpme_please)

    HELP!

    Everything was working wonderfully! I attempted to make another modification for a different issue the site crashed. (I got a freaky error message and the child theme plugin wouldn’t allow me to re-edit.) I did a backup and followed your directions again, and now whenever I add the code the site crashes. For the life of me I don’t know why it worked so effortlessly the first time I followed your directions and now it is a disaster every time I try to re-do it. Is there an easier way? I am a recent convert from Blogger to WP and I am comfortable with editing HTML code, but dealing with php files is scary. All I want is my little “Leave a Comment” link back. It can’t be that hard!! I am dying over here!

    Thread Starter helpme_please

    (@helpme_please)

    Is there any way I can make the change in Editor? My brain functions better that way. All of this child theme, parent theme, php stuff is not my language!

    vladff

    (@vladff)

    You shouldn’t make the change in the editor.
    Please post the contents of your child functions.php file so I can see what you did wrong. Though if you just do it again like you did the first time I’m sure you can get it right.

    Thread Starter helpme_please

    (@helpme_please)

    This is my child functions.php contents:

    <?php
    /*
    * Generated By Orbisius Child Theme Creator – your favorite plugin for Child Theme creation 🙂
    * https://wordpress.org/plugins/orbisius-child-theme-creator/
    *
    * Unlike style.css, the functions.php of a child theme does not override its counterpart from the parent.
    * Instead, it is loaded in addition to the parent’s functions.php. (Specifically, it is loaded right before the parent theme’s functions.php).
    * Source: http://codex.wordpress.org/Child_Themes#Using_functions.php
    *
    * Be sure not to define functions, that already exist in the parent theme!
    * A common pattern is to prefix function names with the (child) theme name.
    * Also if the parent theme supports pluggable functions you can use function_exists( ‘put_the_function_name_here’ ) checks.
    */

    Thread Starter helpme_please

    (@helpme_please)

    p.s. i am petrified to add anything to it because i don’t want the site to crash again. if it does crash, how do i get it back?

    orbisius

    (@orbisius)

    helpme_please, do use the check syntax function!

    Thread Starter helpme_please

    (@helpme_please)

    I fixed it all by myself!!! When I created the new child theme, I didn’t check the little box that said something to the effect of “display the new theme.”

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘show link to comments in each post's header or footer’ is closed to new replies.