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

functions - How do you insert code into the sidebar?

programmeradmin6浏览0评论

I would like to add code to the top of the sidebar.

When I do:

add_action('get_sidebar', 'function')

It adds above the sidebar DIV. I would like to insert inside the DIV.

If I do:

add_action('dynamic_sidebar', 'function')

It goes in between every single widget and inside all widget areas.

I just want to add some code above all widgets in the right or left sidebar.

Thank you.

发布评论

评论列表(0)

  1. 暂无评论