Jump to content


Photo
- - - - -

Inserting code above and below first post


This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1 tliacono

tliacono

    Member

  • Members
  • PipPip
  • 19 posts

Posted 20 March 2010 - 01:06 AM

First, I'd like to thank you folks for a wonderful product. I've found your theme and support to be excellent thus far and would recommend this without hesitation to others. As for my latest mod, I'd like to insert html code above and below the first post on the main page and to have that same code appear when a single post is viewed. Could you please tell me what file to modify and where to insert the code? The blog is at http://timiacono.com/

#2 jnoh

jnoh

    Advocate

  • Members
  • PipPipPipPipPip
  • 502 posts

Posted 20 March 2010 - 05:17 AM

You'll want to edit the _posts.php file. If you explain in more detail what you'd like to do I can give you more guidance. We'll have to do some interesting coding work as we'll be inserting code into the Wordpress Loop

#3 tliacono

tliacono

    Member

  • Members
  • PipPip
  • 19 posts

Posted 21 March 2010 - 12:21 AM

Here are some before and after screenshots of what I'd like to do: http://www.iaconores...MTGM_Before.jpg http://www.iaconores...TMTGM_After.jpg The red arrows indicate the two items I want to add, but they should only appear once per page - on the main page as well as on the individual post page.

#4 tliacono

tliacono

    Member

  • Members
  • PipPip
  • 19 posts

Posted 22 March 2010 - 02:39 AM

I figured out how to insert the code above, but not below.

#5 arpowers

arpowers

    Founder

  • Administrators
  • 3270 posts

Posted 23 March 2010 - 04:23 PM

so you want to insert something after the first post? That's a little tricky since it loops through all of them at the same time.. We've had people do it though... This: http://www.dannyfoo....t-and-2nd-post/ might be the best way to go about it.

#6 tliacono

tliacono

    Member

  • Members
  • PipPip
  • 19 posts

Posted 24 March 2010 - 10:42 PM

That did the trick - thanks.