Wordpress-从默认库中删除内联样式

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Wordpress-从默认库中删除内联样式相关的知识,希望对你有一定的参考价值。

Add this to your functions file
  1. //Remove default inline gallery styling
  2. add_filter( 'gallery_style', 'my_gallery_style', 99 );
  3.  
  4. function my_gallery_style() {
  5. return "<div class='gallery'>";
  6. }

以上是关于Wordpress-从默认库中删除内联样式的主要内容,如果未能解决你的问题,请参考以下文章