inherit
114253
0
Sept 23, 2024 7:58:54 GMT -8
Teg
Can't Wait for V6
3,157
November 2007
teg
|
Post by Teg on Aug 11, 2013 18:56:45 GMT -8
Is there a way to keep the sidebar from showing up on your custom pages? tegdesigns.com
|
|
inherit
114253
0
Sept 23, 2024 7:58:54 GMT -8
Teg
Can't Wait for V6
3,157
November 2007
teg
|
Post by Teg on Aug 12, 2013 20:22:29 GMT -8
Bunp
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Aug 12, 2013 21:18:35 GMT -8
I feel like I saw a header/footer code for this? Let me see if I can dig that up…
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Aug 12, 2013 21:33:17 GMT -8
Couldn't find the code, but try this in your global footer:
<script> if (proboards.data('route').name == 'page') { $('td.sidebarr-left-td, td.sidebarr-right-td').hide(); $('td.sidebarr-center-td').css('padding', 0); } </script>
|
|
inherit
114253
0
Sept 23, 2024 7:58:54 GMT -8
Teg
Can't Wait for V6
3,157
November 2007
teg
|
Post by Teg on Aug 13, 2013 8:20:17 GMT -8
That worked! Thanks so much
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Aug 13, 2013 13:18:06 GMT -8
|
|
projectroadrush
New Member
If you drive a vehicle you'll want to join this forum.
Posts: 40
inherit
203884
0
Jan 18, 2016 9:37:31 GMT -8
projectroadrush
If you drive a vehicle you'll want to join this forum.
40
January 2014
projectroadrush
|
Post by projectroadrush on Jan 17, 2014 20:20:09 GMT -8
Couldn't find the code, but try this in your global footer: <script> if (proboards.data('route').name == 'page') { $('td.sidebarr-left-td, td.sidebarr-right-td').hide(); $('td.sidebarr-center-td').css('padding', 0); } </script> In Admin Home> Structure> Headers & Footers> Global Header & Footer I added this code in the Footer text box and it worked great, when I changed the word 'page' to 'home'. Thanks. But I'm wondering how to make it work for 2 custom pages (the Home and the About page) as well? I tried a couple of things with no success, like adding 'about' behind the 'home', and, adding a second script (one script for each word). If it's not possible I'll live
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jan 20, 2014 12:31:56 GMT -8
Try this.
|
|
projectroadrush
New Member
If you drive a vehicle you'll want to join this forum.
Posts: 40
inherit
203884
0
Jan 18, 2016 9:37:31 GMT -8
projectroadrush
If you drive a vehicle you'll want to join this forum.
40
January 2014
projectroadrush
|
Post by projectroadrush on Jan 22, 2014 21:34:49 GMT -8
hmm, didn't work. It removed the sidebar from the about page but it then showed up on the home page. ATM I can live with the sidebar on the 'About' page, but that might change if I decide to add additional pages, so do appreciate the attempt.
|
|
inherit
39633
0
Jan 26, 2014 11:59:19 GMT -8
mistadouble
502
April 2005
mistadouble
|
Post by mistadouble on Jan 25, 2014 5:42:07 GMT -8
i would also like the sidebar only on the forum part rather than it appearing on all my custom pages
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Jan 25, 2014 11:34:20 GMT -8
hmm, didn't work. It removed the sidebar from the about page but it then showed up on the home page. ATM I can live with the sidebar on the 'About' page, but that might change if I decide to add additional pages, so do appreciate the attempt. <script type="text/javascript"> if(proboards.data('route').name == "page") { if(proboards.data('route').params.page_id == "about") { $('td.sidebarr-left-td, td.sidebarr-right-td').hide(); $('td.sidebarr-center-td').css('padding', 0); }} if(proboards.data('route').name == "home"){ $('td.sidebarr-left-td, td.sidebarr-right-td').hide(); $('td.sidebarr-center-td').css('padding', 0); } </script> Try that modified version
|
|
projectroadrush
New Member
If you drive a vehicle you'll want to join this forum.
Posts: 40
inherit
203884
0
Jan 18, 2016 9:37:31 GMT -8
projectroadrush
If you drive a vehicle you'll want to join this forum.
40
January 2014
projectroadrush
|
Post by projectroadrush on Jan 25, 2014 22:03:52 GMT -8
|
|
inherit
39633
0
Jan 26, 2014 11:59:19 GMT -8
mistadouble
502
April 2005
mistadouble
|
Post by mistadouble on Jan 26, 2014 11:44:25 GMT -8
what would i have to add to the revised script to cover multiple custom pages?
it works for the home and 1 custom page but i will have many custom pages
Thanks in advance for your time
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jan 30, 2014 7:25:42 GMT -8
what would i have to add to the revised script to cover multiple custom pages? it works for the home and 1 custom page but i will have many custom pages Thanks in advance for your time Duplicate the bit in green below every time you need to add another custom page ID. Substitute about with the ID of the custom page you're adding to it. Here's an example if I were to add the page ID rules to it to show what it would look like after adding it.
|
|