Social Web Directory :: Social Network Directory :: Ning Tips and Ning Support
Related Tip:
UPDATE - This tip only works for the Old Ning Editor: Thanks to Fantagiro43, this tip has been updated. It appears that in some cases, the right column is being moved to bottom, and not removed. One class has been altered within the Ning styles. If your page code is not removing the right column, but moving it to bottom - - re-copy/paste the code below. We needed to add one line of CSS.
Have you ever wanted to remove the right column for certain Pages, on your Ning Network?
Since the new Ning will include these services, I can't think of a reason to not share this awesome tip. Do be aware: This is a hack. As in all hacks, if Ning changes these variables/styles, it would no longer work.
There are two ways to do this: Add special code to your Custom Code Box for a specific page, or Add special CSS to remove from all pages.
Remove Right Column for Specific Page, via Custom Code Box (Analytics):
The code below uses the example page called "great-page". The URL to the page where you want to remove the right column would be: /page/yourpage_name.
1. Change the 'great-page' to your page name.
2. Add the code to your Custom Code Box, via (My Network/Tools/Custom Code)
3. Save.
<script type="text/javascript" language="javascript">
if (window.location.href.split('page/')[1] == 'great-page') {
x$('.xg_widget_page .xg_last').css('display','none');
x$('.xg_widget_page .xg_3col').css('width','955px');
x$('.xg_widget_page .xg_span-16').css('width','945px');
x$('.xg_widget_page .xg_span-4.xg_last').css('display','none');}
</script>
Remove Right Column for All Pages via Advanced CSS:
The code below will remove the right column from all pages, under /page.
1. Add the code to your Advanced CSS, via (My Network/Settings/Appearance/Advanced)
2. Save.
.xg_widget_page .xg_last {display: none;}
.xg_widget_page .xg_3col {width:955px;}
.xg_widget_page .xg_span-16 {width:945px;}
.xg_widget_page .xg_span-4.xg_last{ display:none;}
Advice: Don't use both versions (Analytics and CSS). Use one or the other, depending on your needs.
NEW DESIGN STUDIO TIP - How to remove right column from all pages
Enjoy!
Tags:
Jen, I am reading all the post ... and using the code you provided. I would like to remove the right column and adjust the left to fill the page for a single page, but it is not working. I am using the custom codes area. The code for removing the right column for a single page works, but the left column remains the same, which does not work well with the iFrame, since web pages are larger than the iFrame.
Do you have a code combination for removing the right columns, expanding the left and only on one page ... I tried several arrangement of the code combination's above, but no luck yet ... anyone have any ideas?
Thanks,
Les
The removal of right column has gotten to be such a pain with the new themes, thinking I'm not going to continue supporting it. But in your case, being on old Editor, it shouldn't be a problem.
I tested both the CSS, and for certain page:
if (window.location.href.split('page/')[1] == 'partners-1') {
x$('.xg_widget_page .xg_last').css('display','none');
x$('.xg_widget_page .xg_3col').css('width','955px');
x$('.xg_widget_page .xg_span-16').css('width','945px');
x$('.xg_widget_page .xg_span-4.xg_last').css('display','none');}
And it worked great for me. What happens when you try?
I got it to work now after you just posted that sample code. The problem was, in your original post, you have:
The URL to the page where you want to remove the right column would be: /page/yourpage_name.
So I included the /page/. Once I removed that, it worked fine. Thanks!!
Oh yeah, the yourpage_name is to nail down a specific page.
Glad you got it!
Jen
It's a brand new feature, just announced the other day. I haven't announced here yet. I need to.
http://creators.ning.com/forum/topics/updates-to-pages-part-one
Best Regards,
Jen
Welcome to
JenSocial: Social Web Directory and Ning Tips
Posted by JenSocial on May 7, 2018 at 8:35pm 9 Comments 1 Favorite
Posted by JenSocial on January 6, 2017 at 4:00pm 10 Comments 1 Favorite
Posted by JenSocial on October 22, 2016 at 1:05am 0 Comments 0 Favorites
Posted by JenSocial on September 17, 2016 at 12:00am 26 Comments 1 Favorite
Posted by JenSocial on August 31, 2016 at 3:30pm 13 Comments 0 Favorites
Ning 3.0 Tip - Add Buttons/Links Below Status Update (Quick Links to Add Photos, Posts, Discussions)
Started by Themes - Rosas Negras Mar 20, 2021. 0 Replies 0 Favorites
Started by JenSocial. Last reply by Kos Dec 6, 2016. 64 Replies 4 Favorites
Started by JenSocial. Last reply by JenSocial Jul 26, 2016. 41 Replies 1 Favorite
© 2024 Created by JenSocial. Powered by
© Copyright JenSocial.