Page 1 of 1

How Can I Insert Specific Code Under My Blog Posts?

Posted: Tue Jun 10, 2014 7:14 pm
by BreeziiKat
Hey everyone!! :)

I would like to add a snippet of code for a poll;

Code: Select all

<?php if ( function_exists('print_moodthingy_widget') ) { print_moodthingy_widget(); } ?>
I would like to add this code directly below my blog posts ONLY.. for example, I would like it to appear above where you see "Sharing is Sexy" but below the FaceBook 'Like' Button - here on this page, and all similar pages on my site: http://www.mybreality.com/difficult-desires/

I'm using WordPress.org... and I know how to go to Appearance > Editor, I'm just not sure which template to work with in order to make this happen, and I don't know WHERE to put this line of code on the template I need to put it on.

Thank you to anyone willing to help me out, you're a kind soul! :)

Re: How Can I Insert Specific Code Under My Blog Posts?

Posted: Tue Jun 10, 2014 7:36 pm
by Celauran
single.php would be my first guess. I don't know if hosted WP works the same, mind you.

Re: How Can I Insert Specific Code Under My Blog Posts?

Posted: Tue Jun 10, 2014 8:04 pm
by BreeziiKat
I can make the poll appear if I insert the code into single.php - however I seem unable to make it show up EXACTLY where I want it. It's either showing up above the post or wayyy at the bottom, rather than where I mentioned I would like it to appear.

Hmm.. :?

Re: How Can I Insert Specific Code Under My Blog Posts?

Posted: Tue Jun 10, 2014 8:11 pm
by BreeziiKat
I'd be willing to grant temporary admin access, if anyone would like to help me with this on a more involved level, if you think that would help. :roll:

Re: How Can I Insert Specific Code Under My Blog Posts?

Posted: Tue Jun 10, 2014 9:19 pm
by Celauran
I don't know how good an idea giving strangers admin access to your site is. Copy/pasting the template code so we can suggest where to place that snippet above might be a better idea.