Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/290.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.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 Can';不要让侧边栏显示在归档页面上(Wordpress、Elementor Pro和GeneratePress)_Php_Wordpress_Wordpress Theming_Custom Wordpress Pages_Elementor - Fatal编程技术网

Php Can';不要让侧边栏显示在归档页面上(Wordpress、Elementor Pro和GeneratePress)

Php Can';不要让侧边栏显示在归档页面上(Wordpress、Elementor Pro和GeneratePress),php,wordpress,wordpress-theming,custom-wordpress-pages,elementor,Php,Wordpress,Wordpress Theming,Custom Wordpress Pages,Elementor,我正在尝试使用Elementor Pro和GeneratePress主题为Wordpress制作一个归档模板。 我的帖子和页面显示了侧栏(使用默认模板),但当我使用Elementor创建存档模板时,侧栏不会同时显示在构建器和live站点中 我尝试了默认模板FullWidth,并使用了Fonctions.php,但似乎没有任何东西能让侧边栏出现。我知道我可以使用Elementor制作2列布局并放置边栏小部件,但我希望避免这种情况 带侧边栏: 未显示侧栏: 不是最好的解决方案,但有效: 通过任何自

我正在尝试使用Elementor Pro和GeneratePress主题为Wordpress制作一个归档模板。 我的帖子和页面显示了侧栏(使用默认模板),但当我使用Elementor创建存档模板时,侧栏不会同时显示在构建器和live站点中

我尝试了默认模板FullWidth,并使用了Fonctions.php,但似乎没有任何东西能让侧边栏出现。我知道我可以使用Elementor制作2列布局并放置边栏小部件,但我希望避免这种情况

带侧边栏:

未显示侧栏:
不是最好的解决方案,但有效: 通过任何自定义链接(类似于存档链接)创建一个新页面作为自定义存档页面,并将存档链接重定向到新的存档页面链接(通过301重定向)

/类别/档案/⇒ /存档页/

/档案/⇒ /存档页/