L LurkerLou Active member Feb 4, 2014 #1 How would I go about removing the sidebar on certain pages. I found out how to do it globally but not on specific pages. .sidebar { display: none; } .mainContent { margin-right: 0; } How would I specify a specific page?
How would I go about removing the sidebar on certain pages. I found out how to do it globally but not on specific pages. .sidebar { display: none; } .mainContent { margin-right: 0; } How would I specify a specific page?
P Paul B XenForo moderator Staff member Feb 4, 2014 #2 Add the page class to the selector, e.g. .forum_list .sidebar The FAQ in my signature explains how to check the template name for the page you're on. Upvote 0 Downvote
Add the page class to the selector, e.g. .forum_list .sidebar The FAQ in my signature explains how to check the template name for the page you're on.
L LurkerLou Active member Feb 4, 2014 #3 Worked perfectly, @Brogan. The only issue now is how to expand the content. to fill the voided space. Upvote 0 Downvote
Worked perfectly, @Brogan. The only issue now is how to expand the content. to fill the voided space.
P Paul B XenForo moderator Staff member Feb 4, 2014 #4 Remove the sidebar div and/or any main content margins using the same method. Upvote 0 Downvote
L LurkerLou Active member Feb 4, 2014 #5 Brogan said: Remove the sidebar div and/or any main content margins using the same method. Click to expand... I can't quite get it to work properly. Can you post an example code? Upvote 0 Downvote
Brogan said: Remove the sidebar div and/or any main content margins using the same method. Click to expand... I can't quite get it to work properly. Can you post an example code?
P Paul B XenForo moderator Staff member Feb 4, 2014 #6 Code: .forum_list .sidebar { display: none; } .forum_list .mainContent{ margin-right: 0; } Upvote 0 Downvote
L LurkerLou Active member Feb 4, 2014 #7 Brogan said: Code: .forum_list .sidebar { display: none; } .forum_list .mainContent{ margin-right: 0; } Click to expand... I'm talking about removing the gap left on the right when removing the sidebar. Upvote 0 Downvote
Brogan said: Code: .forum_list .sidebar { display: none; } .forum_list .mainContent{ margin-right: 0; } Click to expand... I'm talking about removing the gap left on the right when removing the sidebar.
P Paul B XenForo moderator Staff member Feb 4, 2014 #8 That's what that code does. Code: .forum_list .mainContent{ margin-right: 0; } Upvote 0 Downvote
L LurkerLou Active member Feb 4, 2014 #9 Ah. Maybe what I really need to do is remove the user infoblock in the side bar. Brogan said: That's what that code does. Click to expand... Then it must be an issue with XenPorta. I removed the sidebar but the portal index is still the width it would normally be if there was a sidebar there. Upvote 0 Downvote
Ah. Maybe what I really need to do is remove the user infoblock in the side bar. Brogan said: That's what that code does. Click to expand... Then it must be an issue with XenPorta. I removed the sidebar but the portal index is still the width it would normally be if there was a sidebar there.
P Paul B XenForo moderator Staff member Feb 4, 2014 #10 LurkerLou said: Then it must be an issue with XenPorta. Click to expand... You will need to ask in the resource thread for help with that. Upvote 0 Downvote
LurkerLou said: Then it must be an issue with XenPorta. Click to expand... You will need to ask in the resource thread for help with that.
L LurkerLou Active member Feb 4, 2014 #11 Brogan said: You will need to ask in the resource thread for help with that. Click to expand... Got it to work. Thanks for the help. Upvote 0 Downvote
Brogan said: You will need to ask in the resource thread for help with that. Click to expand... Got it to work. Thanks for the help.