Hello again,

Here's another tip for you NCs/admins and specifically for bloggers/writers, making your blog pages full width! I recall that this has been requested a while back by some NCs so why not give it a shot.

The solution below looks tricky but it is quite simple. By manipulating and copying 'key' style classes to your full width Page layout format, we can achieve the same full width layout with the blog pages using Javascript and jQuery. So below we do the trick by adding and removing classes.

Layout A1 and A4

  1
 x$(".xg_widget_profiles_blog_show .xg_last").remove();
  2
 x$(".xg_widget_profiles_blog_show .xg_span-16").addClass("xg_span-21");
  3
 x$(".xg_widget_profiles_blog_show .xg_span-16").removeClass("xg_span-16");

 

Layout B1 and B4

  1
 x$(".xg_widget_profiles_blog_show .xg_last").remove();
  2
 x$(".xg_widget_profiles_blog_show .xg_span-14").addClass("xg_span-21");
  3
 x$(".xg_widget_profiles_blog_show .xg_span-14").removeClass("xg_span-14");

 

Layout B2 and B3

  1
 x$(".xg_widget_profiles_blog_show .xg_span-7").remove();
  2
 x$(".xg_widget_profiles_blog_show .xg_span-14").addClass("xg_span-21");
  3
 x$(".xg_widget_profiles_blog_show .xg_span-14").removeClass("xg_span-14");

 

This tip is for the commonly used Design Studio. Code tested working on our test network (screencap below).

 


Example: Static Page here

Installation: Copy the code line by line, make sure to enclose it with the <script>tags or just download the attachment codes below and paste it to your custom code box.

Hope you'll find it useful.

 

Tags: blog, full width

Views: 364

Attachments:

Reply to This

Replies to This Discussion

Beautiful
Thank you
Possible to see an example of direct?

I see you got my link. good day my friend--

Awesome! Thanks Ron, it works beautifully!

You're welcome Patrick, glad you like it.

I have been trying to get this to work, and it's not working for me. I am using the B1 format. What could I be possible doing wrong? I ensured the code is wrapped in the script tags.

Hi there, not sure what's wrong but I think there might be some conflicting code on your part.

Do you have the code for B2/B3?

Hi Ceddy J, not yet this is just for the right side column layouts. will post when I get a chance..

Ceddy J, For a follow-up on the B2/B3 code, use the B1/B4 code I posted above and replace .xg_last with .xg_span-7

Let me know if that works.

This looks great. Can't wait to try.

RSS

Latest Activity

Kos replied to SweetPotato's discussion 'Simple, Responsive Slider for Ning 3.0'
"No problemo. Most people actually have a life (except 4 me *lol*)  The problem seems…"
21 minutes ago
Elshara Silverheart replied to Tim's discussion 'Ning Slow Today?'
"Me two. I swear they create the status on status.ning.com before the error happens. Just kidding,…"
51 minutes ago
Elshara Silverheart replied to Jelena's discussion 'The new Spammers 3.0' in the group The Sandbox
"Anyone get a page not found error when trying to access their home page?"
1 hour ago
Tim replied to Tim's discussion 'Ning Slow Today?'
"500: Unexpected Error"
1 hour ago

NC for Hire
SweetPotato replied to SweetPotato's discussion 'Simple, Responsive Slider for Ning 3.0'
"Sorry, coming to this issue late on. Is it all ok now? It could have been Ning server issues as the…"
3 hours ago
LeyCosmica.org replied to LeyCosmica.org's discussion 'I can not access my site in any way'
"You can always access, everyone can access the site, even I can if I use internet connection…"
4 hours ago
Denis replied to PeruCool's discussion 'Alternatives to Ning social network'
"Great site man. Thanks for sharing the link. I am working on mine. I hope I will be done by the end…"
8 hours ago
Perrie Halpern replied to PeruCool's discussion 'Alternatives to Ning social network'
"Is there a specific code generator you use? I hope you don't mind me asking."
9 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service