minor bug?
-
Hi
In theme Twenty Seventeen I tried remove sidebar in a single post from the sidebar template, that is removed “get_post();” from file, single.php. This means that sidebarPos gets undefined since there is no sidebar created.
When I inspect the resulting HTML it turns out that a JavaScript function in file global.js tries to use a property of an undefined sidebar (sidebarPos). This occurs in line 124 in this file.This results in an uncaught exception. For getting around this, one could check whether sidebarPos is defined or not.
Just for your information
Best regards
Konrad B. Gislason
- The topic ‘minor bug?’ is closed to new replies.