• Resolved zonirc

    (@zonirc)


    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)
  • what is selecting the sidebars?
    i mean, do you not know (at header level) which sidebars you are going to activate?
    can you not use the same logic to set the margins of the content area?

    Thread Starter zonirc

    (@zonirc)

    thanks alchymyth, actually the problem already solved where I checked the sidebar in sidebar.php like you said the logic in header the sidebar are not activated yet ?? so I believe it was my fault…
    Anyay thank for correcting me and point the problem ??

    cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Determine if the sidebar is activate’ is closed to new replies.