kabe243
Member
Posted 4 years ago #
hi
getting the content of a post with the_content which works just fine and looks like this:
<div class='entry_title'>SNEAKER</div><div class='entry_content'><p>i designed a sneaker!</p><p><a href="http://localhost:8888/_wordpress/wp-content/uploads/2008/04/img8210_large.jpg"><img class="alignnone size-full wp-image-4" title="sneaker" src="http://localhost:8888/_wordpress/wp-content/uploads/2008/04/img8210_large.jpg" alt="" width="240" height="158" /></a></p>
now, i'd like to somehow put the text and the image into separate div's to be able to style them.
any help would be greatly appreciated.
cheers.
Alejandro Urrutia
Member
Posted 3 years ago #
Hi kabe243, I'm looking for the same thing but can't find it right now. If you found how to please let me know about it.
Cheers.
@alectro - you have text and image already in two different <p>. Just give each <p> a class (eg. <p class="mytext"> and <p class="myimage">) and put the css in your stylesheet.
Spencer@designhurd.com
Member
Posted 3 years ago #
I am trying to separate my images and text, into styable divs, however I am editing the default theme (kubrick) and I dont see that coe anywhere in it.. merely a function in index.php that calles the_content as a whole chunk of data. Can someone point me to a way to seperate the images from the text within the_content, or the_excerpt? I am trying to position My thumbnail over my title, over my excerpt / post (or if I can just remove the post text altogether I could live with that too...) Sorry guys, I've been looking for quite a while now.
Spencer