在我的网站上,有一个带有此信息的自定义帖子类型。我将文件存储在single-{customposttype}中。php。
<?php
get_header();
?>
<div style="width:500px;">
<?php
$id = get_the_id();
echo do_shortcode( \'[skwidget id="\' . $id . \'"]\' );
?>
</div>
<?php get_footer(); ?>
skwidget插件调用正确,一切正常。But here\'s the issue: 所有内容都包括在内,但我只想要主题的css,插件的css和插件的所有相关css/js,但我don\'t want header and footer-menu(s) 待显示。我如何做到这一点?
如果只删除get\\u header()和get\\u footer(),那么插件将无法工作,因为它需要js/css等。
我想我可以手动创建页眉html和页脚,但这似乎不是一个好主意。。。