发表于 2018-08-22 02:19:45 by 月小升
月小升的博客,本来启动了一个代码高亮插件,结果新编写模板的时候,发现插件的CSS整个都丢了

找到原来得模板发现header.php文件里有这么一段
<?php
/* edit by java-er.com
* We add some JavaScript to pages with the comment form
* to support sites with threaded comments (when in use).
*/
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/
wp_head();
?> |
<?php
/* edit by java-er.com
* We add some JavaScript to pages with the comment form
* to support sites with threaded comments (when in use).
*/
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/
wp_head();
?>
不管啥,都给拷贝过来,立即就好了。
This entry was posted in
JAVA and tagged
wordpress,
wordpress插件,
wordpress模板. Bookmark the
permalink.
月小升QQ 2651044202, 技术交流QQ群 178491360
首发地址:
月小升博客 –
https://java-er.com/blog/wordpress-plugin-css-lost/
无特殊说明,文章均为月小升原创,欢迎转载,转载请注明本文地址,谢谢
您的评论是我写作的动力.