[Theme: twentyeleven] Add a div
I’m building a child theme on twentyeleven. I’m using the Showcase feature to have a big sticky post at the top of the page. Between that and the regular feed of recent posts, I want to have a horizontal advertisement — the width of the column (585 px I think it is and 100px deep or so.
One idea I had was to make a custom post type for the client to insert and remove ads (they do all the ads themselves). So I want to be able to have the most recent of those custom post type posts sit in that spot indefinitely.
I thought if I create a new div (#ad or something), I could just float it into that spot and have it pull in the custom post.
I want to know how to create the div and how to have it pull in the right post. This is probably elementary stuff, but I’m a novice with php. I’m wanting to learn, though — so if somebody could point me in the right direction I’ll happy to try to figure it out.
Or if there is a better/simpler way to do this, let me know that too 🙂
- The topic ‘[Theme: twentyeleven] Add a div’ is closed to new replies.