Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/28.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Wordpress插件没有样式?_Php_Css_Wordpress - Fatal编程技术网

Php Wordpress插件没有样式?

Php Wordpress插件没有样式?,php,css,wordpress,Php,Css,Wordpress,我有一个我想使用的日历插件,我首先在WP'17默认主题上测试了它,它显示得很好。我有自己的自定义主题,我正在使用w3.css构建,这是非常基本的东西 我使用 <?php /** * Register our sidebars and widgetized areas. * */ function arphabet_widgets_init() { register_sidebar( array( 'name' => 'Home rig

我有一个我想使用的日历插件,我首先在WP'17默认主题上测试了它,它显示得很好。我有自己的自定义主题,我正在使用w3.css构建,这是非常基本的东西

我使用

<?php
/**
 * Register our sidebars and widgetized areas.
 *
 */
function arphabet_widgets_init() {

    register_sidebar( array(
        'name'          => 'Home right sidebar',
        'id'            => 'home_right_1',
        'before_widget' => '<section id="%1$s" class="widget %2$s">',
        'after_widget'  => '</section>',
        'before_title'  => '<h2 class="widget-title">',
        'after_title'   => '</h2>',
    ) );

}
add_action( 'widgets_init', 'arphabet_widgets_init' );
add_theme_support( 'customize-selective-refresh-widgets' );
wp_enqueue_script("jquery");

?>

好的,我没有调用footer,显然它是函数挂钩的地方。现在它正在按预期工作

 <?php get_footer(); ?>

(位于索引文件中的
前面。)

我还使用了以下名称来命名它:

<?php if ( is_active_sidebar( 'home_right_1' ) ) : ?>
    <div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary">
        <?php dynamic_sidebar( 'home_right_1' ); ?>
    </div><!-- #primary-sidebar -->
<?php endif; ?>


请提供一个屏幕截图,但是您当前的主题不是为该日历插件设计的。您可能需要从它的默认主题复制一些代码行。我试着把它放在几个不同的分区中,每次的结果都差不多@Jared Chu,我不知道主题一定是围绕插件设计的,我可以做什么样的更改使其兼容?在我看来,除了尺码之外,我已经无能为力了。你们有并没有试着把日历放到其他位置?可能它与侧边栏css有冲突
<?php if ( is_active_sidebar( 'home_right_1' ) ) : ?>
    <div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary">
        <?php dynamic_sidebar( 'home_right_1' ); ?>
    </div><!-- #primary-sidebar -->
<?php endif; ?>