1 reputation
1
bio website
location
age
visits member for 1 year, 11 months
seen Oct 1 '12 at 16:31

Aug
3
awarded  Scholar
Aug
3
accepted Hide Sidebar on _layouts pages
Aug
2
answered Hide Sidebar on _layouts pages
Aug
2
comment Hide Sidebar on _layouts pages
Well, that only broke other things. Is it possible that the code that both myself and Vardhaman Deshpande posted is just not going to work?
Aug
2
comment Hide Sidebar on _layouts pages
Yeah. After reading the other link in your post, it seems that jQuery(document).ready(function () { is more appropriate for what I am trying to do. Gonna try using 'jquery' instead of '$' where appropriate and see if that helps. I am not a JS coder either so my fingers are crossed. Thanks!
Aug
2
comment Hide Sidebar on _layouts pages
It looks like the author of the link you posted did it this way. I tried to move the _spBodyOnLoadFunctionNames.push("hideSidebar"); after the function with no change. I can't tell from the original post, but should it be outside of the script tag?
Aug
2
comment Hide Sidebar on _layouts pages
Thanks for the suggestion. I tried it but it made no difference. Here is the code: code _spBodyOnLoadFunctionNames.push("hideSidebar"); function hideSidebar() { if(window.location.href.indexOf("_layouts") != -1) { jQuery("#v5-page-column-sidebar").hide(); jQuery("#v5-page-column-main").css({"width","100%"}); } } code
Aug
1
comment Hide Sidebar on _layouts pages
Here is a link to a public page if you want to see it. I know you won't be able to see the pages in question, but at least you could see how the code is there. one.utsa.edu/sites/oit/OITConnect/infrastructureServices/Pages/…
Aug
1
comment Hide Sidebar on _layouts pages
The script does show on the pages but maybe it's not getting executed. There is no discernible difference from pages not in the _layouts folder.
Aug
1
comment Hide Sidebar on _layouts pages
Thank you. This looks like it should work fine, but it doesn't seem to be applying to the div's as intended.
Aug
1
comment Hide Sidebar on _layouts pages
Yes. I am using the V5 as my base.
Aug
1
asked Hide Sidebar on _layouts pages