好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

Wordpress怎么让自带的侧边栏和自定义的侧边栏同

Wordpress怎么让自带的侧边栏和自定义的侧边栏同时存在

可能使用wordpress的朋友会发现我们使用自定左侧栏时系统自带的左侧栏就不能显示了,这两几乎不能同时存在了,下面本文章来给大家介绍Wordpress怎么让自带的侧边栏和自定义的侧边栏同时存在方法,有需要了解的同学可参考.

修改前,代码如下:

ul id=]sidebar]>  php  /* Widgetized sidebar, if you have the plugin installed. */   if  ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar() ) :  li>  h2>归档 此处省略部分代码....  /li>  php }  ul>  php  endif ; 

修改后代码如下:

php  /* Widgetized sidebar, if you have the plugin installed. */   if  ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar() ) :  php  endif ;  h2>  归档  此处省略部分代码…. 

其实也就是把如下代码:

php  /* Widgetized sidebar, if you have the plugin installed. */   if  ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar() ) :  此处省略部分代码… 

关于动态sidebar的内容放到默认的前面,不让它替换默认的就可以了.

查看更多关于Wordpress怎么让自带的侧边栏和自定义的侧边栏同的详细内容...

  阅读:54次