In my page (basic page content type) I have the following code in the body field
In my custom themes page.tpl.php I have
<?php print render($page['content']); ?>
However the rendered content replaces the h3 with a p and stripes my class for some reason and I need it to render the code that I saved.
However, if I use the following then it will print correctly:
<?php print field_get_items('node', $node, 'body')['value']; ?>
If I use that then when I navigate to any of the default pages, mainly the admin login I get an error as $node is not defined. I added a conditional to check that $node was defined to prevent the error. After that the error wasn't displayed but since $node was supposed to contain the content, no content is displayed.
What am I doing wrong here? I just need my page to print out the body without deciding it should edit my code for me and I don't understand why $page['content'] is butchering my code.