- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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.
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.
Post again if you find it. I’m looking too.
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.
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…