• Could anyone tell me if there is a way to style and structure the content of Pages individually? In short, what I think I need to be able to do is add some structure to the content returned by <?php the_content(); ?> in a Page Template.

    I’m in the process of building a custom theme. At the moment I have a Page Template and custom stylesheet for each Page, however that will only let me style the XHTML elements generated by the WP engine. As far as I can see, the only way that one can add structure to a Page is via the WP admin panel by including custom ‘div’ tags using the Code Editor. However, the client for whom I am developing the site will need to occasionally update the content using the Visual Editor which means I can’t expect them to add XHTML tags when doing this. What’s more, I’ve noticed that the Visual Editor has a tendency to wipe any custom XHTML formatting that has been made using the Code Editor (FireFox, WP 2.2).

    It seems like a bit of a catch 22. Content may be updated through WordPress and stored in the database but the structure can’t be customised. Alternatively, the content can be hard coded into the Page Templates and easily structured using ‘div’ tags but the content is stored in the theme’s directory instead of the WP database and isn’t easy for the client to update.

    Am I correct or have I overlooked something?

  • The topic ‘Unique style/structure for each Page?’ is closed to new replies.