How to indent all of the_content?
-
My goal is to basically get all of my outputted XHTML to be properly indented. I don’t care as much about how the php is structured since I’m pretty much the only one who looks at it…
I’ve managed to change things around in my index.php to get everything except for the_content to behave. An added twist to this is that I have taken off the auto formatting with:
remove_filter('the_content', 'wpautop');
and when you view the source on my page, everything under the_content has been pushed all the way to the left, with no indentations.
I’m sure it’s probably simple, but I’d like to write a plugin that filters the content, and adds a given number of tabs to the beginning of each line so I can have it all align properly when people look at the source.
If you happen to know where thewpautop
function lives, that may help too…thanks in advance.
- The topic ‘How to indent all of the_content?’ is closed to new replies.