jivit
Hello everyone,
I have created a plugin which I want to insert a h1 title (+plus some other stuff). I am using a substitution plugin to replace a custom code eg [example].
The problem I have is, if the code is used after a h2 or h3 header (and above presumably) the inserted h1 title is indented to whatever level it is in. I want it to be level with all the other h1 titles.
Is it possible to get around this? is it possible to find out how 'deep' you are from within a plugin (e.g. level?)?
Any thoughts, hints, tips greatly received.
:)
esther
Hi Jivit
I had to do the same thing in the Include Plugin for proper indenting. You have to do it manually. Parse previous instructions and find out the level of the last heading. Then close the current div class="leveln", insert your stuff and after you're done, reopen the previous level.
-- esther
jivit
Thanks Esther, I was worried that might be the solution - more work :)