There must be something else. Here's why I'm thinking that way:

When I run on localhost/server as HTML everything is OK.

When I run the exact same code on server integrated in WordPress the slidebar doesn't show.