【发布时间】:2016-08-23 08:14:22
【问题描述】:
我正在使用 bootstrap 和 wordpress 集成。
在 bootstrap 集成之前,已有带有 <table> 的帖子。
为了确保 Bootstrap 的组件,我想添加包装器和类来替换所有现有帖子中的现有表格标签:
<table>...</table>
到
<div class="table-responsive">
<table class="table table-condensed table-bordered">...</table>
</div>
在我的自定义主题的functions.php 中,我是否可以实现一个函数或过滤器来全局执行此代码注入?
【问题讨论】:
标签: php css wordpress twitter-bootstrap-3 css-selectors