I have a problem when i add some code to wordpress editor it automatically add some HTML like span
, <br/>
and <p>
it also remove my <div>
tag or remove its classes is there any plugin or hook which i can implement on specific post or page, i am not finding any solution which implement rest on my website.
Like here is the code which i want to add in wordpress editor.
<div class="home_book">
<a href="#">
<img src="http://mydomain/wp-content/uploads/2015/01/someimage.png" alt="" class="center-block" />
</a>
<p>6th grade Valerie Marzdenâs school year is pretty normal. But real life problems turn this clever girl into a biz-whiz kid overnight. Can she pull her family and friends out of impending disaster?</p>
<a class="btn btn-default btn-md custom_color_btn text-center" href="#" role="button">Order Now</a>
</div>
Here is a solution with wordpress plugin https://wordpress.org/plugins/raw-html/ just use shortcode
[raw] Your HTML code [/raw]