doumi4676 2015-01-10 14:22
浏览 95
已采纳

摆脱特定页面上的wordpress编辑器自动标签[关闭]

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>

</div>
  • 写回答

1条回答 默认 最新

  • dtio35880438 2015-01-12 08:46
    关注

    Here is a solution with wordpress plugin https://wordpress.org/plugins/raw-html/ just use shortcode [raw] Your HTML code [/raw]

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?