admin管理员组

文章数量:1384778

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.

本文标签: functionsHow do you insert code into the sidebar