Adding content to pages
-
Hi
I have pages that I need to add content too.
<div class="portfolio"> <div class="portfolioPadding"> <a href="f4p.html"><img src="images/f4pHome1.jpg" alt="Image of Bulletproof Designs"/></a> </div><!-- end .portfolioPadding --> </div> <!-- end .portfolio --> <div class="portfolio"> <div class="portfolioPadding"> <a href="f4p.html"><img src="images/lt4mHome.jpg" alt="Image of Bulletproof Designs"/></a> </div><!-- end .portfolioPadding --> </div> <!-- end .portfolio --> <div class="portfolio"> <div class="portfolioPadding"> <a href="f4p.html"><img src="images/bodyworks.jpg" alt="Image of Bulletproof Designs"/></a> </div><!-- end .portfolioPadding --> </div> <!-- end .portfolio --> <div class="portfolio"> <div class="portfolioPadding"> <a href="f4p.html"><img src="images/bulletproofScreenshot3.jpg" alt="Image of Bulletproof Designs"/></a> </div><!-- end .portfolioPadding --> </div> <!-- end .portfolio -->I need to make it so I have <div class=”portfolio”> added to each item.
I have it like this at the moment but it only puts it around the whole of the content
<div class="portfolio"> <div class="portfolioPadding"> <?php the_content(); ?> </div><!-- end .portfolioPadding --> </div><!-- end #portfolio -->I know I can add HTML to the content in WordPress but if it’s for a client and they don’t understand HTML, it’s not the right way to do it.
How do I go about adding classes around lots of elements in the content?
Thanks
Josh
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Adding content to pages’ is closed to new replies.