Widgetize页眉,页脚和其他一切使用论文&ŧ039;挂钩
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Widgetize页眉,页脚和其他一切使用论文&ŧ039;挂钩相关的知识,希望对你有一定的参考价值。
Adds two "sidebars" to the header. You can drag and drop widgets into them just like any other sidebar from your WP dashboard. You can change the Hook to move the "sidebars" somewhere else on the page. For example, change 'thesis_hook_header' to 'thesis_hook_after_html' and your new sidebars will show up there. Style using CSS to change their layout.
if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Header Sidebar 3', 'before_widget' => '<li>', 'after_widget' => '</li>', 'before_title' => '<h3>', 'after_title' => '</h3>', )); if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Header Sidebar 4', 'before_widget' => '<li>', 'after_widget' => '</li>', 'before_title' => '<h3>', 'after_title' => '</h3>', )); function widget_header() { ?> <div class="sidebar_3"> <ul class="sidebar_list"> <li class="widget"> <div class="widget_box"> <h3><?php _e('Header Sidebar 3', 'thesis'); ?></h3> <p>This is your new sidebar. You can add widgets to it like normal using the Widgets Panel.</p> </div> </li> <?php } ?> </ul> </div> <div class="sidebar_4"> <ul class="sidebar_list"> <li class="widget"> <div class="widget_box"> <h3><?php _e('Header Sidebar 4', 'thesis'); ?></h3> <p>This is your new sidebar. You can add widgets to it like normal using the Widgets Panel.</p> </div> </li> <?php } ?> </ul> </div> <?php } add_action('thesis_hook_header', 'widget_header');
以上是关于Widgetize页眉,页脚和其他一切使用论文&ŧ039;挂钩的主要内容,如果未能解决你的问题,请参考以下文章
在 Google Web Toolkit (GWT) 中实现页眉、页脚和菜单栏
latex book类:每章页眉页脚和标题格式 以及 去除章与章之间空白页的问题