Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Make a div always stay after the most current post

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #28482
    noahgelman
    Participant

    I’ve been working on websites for a while now, but recently I jumped into wordpress. Thankfully, I’ve been able to find my way around it pretty well and get my custom theme worked out pretty nicely.

    However, I have a question. If I wanted to have a div, say a banner for example, or a div for some kind of widget, or just a div for some special content, and I wanted it to appear after the most current post and stay after the most current post, how would I do that?

    I want to do it without java or jquery, just for simplicity’s sake if possible.

    #72703
    TheDoc
    Member

    You can accomplish that with a bit of a modification to the WP Loop.

    I feel like this was JUST posted on CSS-Tricks… the question is… what is in the forum? A snippet? A blog post?

    I feel like it was a snippet but I can’t find it… Eugh! I’ll keep looking.

    #72817
    noahgelman
    Participant

    Post again if you find it. I’m looking too.

    #72827
    noahgelman
    Participant

    Found it finally :)

    http://www.saijogeorge.com/2009/12/24/a … epage.html

    The ‘How to’ is for AdSense but the spot where the AdSense code is supposed to go can be switched with any code you want so you can have ads, widgets, divs, tables, etc, whatever you want.

    #72841
    TheDoc
    Member

    Nice one. I think that’s the example that I used a few months back when I had to do it as well.

    I wish I could find the one Chris did. I swear he had an example…

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Back End’ is closed to new topics and replies.