Hide sub menus sometimes

Try using the following code.

.current-menu-ancestor > ul {
    display:block;
}

The class current-menu-ancestor appears if the current item is a parent of a current page item.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)