最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Widget title showing below widget

programmeradmin0浏览0评论

I added a widget area to my sidebar using the following code. The area shows up fine, and I can add widgets which also show up and work fine. The problem I am having is if I add a title to the Widget, it shows up under the widget for some reason. I attached an image to show what is happening.

register_sidebar(
    array(
        'name' => 'Widget Area 2 - Right Sidebar',
        'id' => 'widget_area_2_right_sidebar',
        'before_widget' => '<aside>',
        'after_widget' => '</aside>',
        'before_title' => '<h2 class="widget-title">',
        'after_title' => '</h2>',
    )
);

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论