Determine if the sidebar is activate
-
I need to determined if the sidebar is active or not at header.php. This is to change the right and left margin of the content page depending eithr the left/right sidebar is activated.
I had try with dynamic_sidebar(), but it will echoing/print out the html tag for that particular sidebar.
Then I try use is_active_sidebar(), which didnt detect the sidebar while in the header.php.Anyone know how to resolved this thing?
thanks in advance
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Determine if the sidebar is activate’ is closed to new replies.