Current status of the Ning Platform is always available on the Ning Status Blog.

Forum

I just thought I would like to make you aware that the new video feature for the list page and in the detail page that it is using the classes of the photos page. Why is this an issue ? Well if you are not into adding any code at all then it's not but if you are adding CSS or Custom code then it is a big issue as any code you add for the photos page will affect your video page.

For instance

let's suppose you are targetting this and added some style against this class or running custom code against it. Ok no worries as it's just targetting the photoListPage-entry right ? Not anymore!

.matrix-itemFluid .photoListPage-entry

The videos list page is using the photoListPage classes to layout the video list page, here is an example of a video entry in the video page

.matrix-itemFluid .photoListPage-entry

No you are not seeing things they are exactly the same, so whatever you may have added for the photos page using this class then it WILL affect your video list page as well.

Ok what about just using the ,matrix ? nope can't do that either as it's shared.

Ok let's go up further up the dom of the Video page to get to the class for the videoListPage. Nope can't do that either as there is no class for the videoListPage.

The only way you are going to be able to target just your photo page is now you will have to make sure you add the class .photoListPage into your code before all your CSS adjustments so it's different from the videos list page.

Here are two example images showing the code for both

PHOTOS

VIDEOS

Well we can get around this so that any code you add for the video will only affect them and also any video pages in groups. What we need to do is add a class to the main body then we can target the video page from the body down.

So for instance if we add a class to the body of videoPage we can then do this

.videoPage .matrix-itemFluid .photoListPage-entry{ code }

So no matter what the page name is for the video page it will work for them all. Of course if you want a different style for a certain video page you can still do so like this ( if page was called animal videos )

.page-animal-videos .videoPage .matrix-itemFluid .photoListPage-entry{ code }

So how do we do this ? Well we need a little custom code to add some classes to our body. We are going to add the same class to the video list page and the video detail page. The video detail page does have some classes in it which helps so we can use the same class on both pages.

Add to your custom code in site&pages

<script>
//Add Class To Body For Video Pages
x$('.videoListPage-metadata, .videoDetailPage').closest('body').addClass('videoPage');

</script>

Well hope that may help you if you are finding issues with and code or css.

John

You need to be a member of Ning Creators Network to add comments!

Join Ning Creators Network

Email me when people reply –

Search the Creators Network

Latest Activity

Dan Lee replied to Bizz ( John )'s discussion Video Issues Again For Embed Videos Showing Blank Box
"ANY FIX FOR THE COLOR OF THE TEXT, FOR THE NEW VIDEO FEATURE? WHEN I ADDED IT TO MY HOME PAGE I GOT…"
1 hour ago
Garfield Archivist replied to Bizz ( John )'s discussion Ning: Is it possible to enable the comments form on posted videos like we can for photos in activity feed.
"Me Three"
3 hours ago
⚡JFarrow⌁ replied to Bizz ( John )'s discussion Ning: Is it possible to enable the comments form on posted videos like we can for photos in activity feed.
"i second that"
3 hours ago
Ning via Facebook

#inspirewithNING #dj Feel inspired with cheerful spring and joyful minutes, filled with sounds…

Kos replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"What, in 2.0 themes, do you want Tony?  Most can be replicated with simple CSS.  Can you be more sp…"
10 hours ago
Kos replied to Bizz ( John )'s discussion Ning: Is it possible to enable the comments form on posted videos like we can for photos in activity feed.
""
10 hours ago
Bizz ( John ) replied to Bizz ( John )'s discussion Videos Playing In Activity Feed, check it out on my site, Now shows photos to ( Updated: 27-04-17 )
"Added some more updates on this so it works with photos now also."
11 hours ago
Tim Frank replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"Thank you for the answer. My only regret is that it took just short of a month to get an empathetic…"
14 hours ago
Kyryl_Ning_Support replied to Bizz ( John )'s discussion Ning- Your design studio widget images are not loading
"Thanks, John,
I have posted the info about the fix of the embedded videos under more appropriate po…"
16 hours ago
Bizz ( John ) replied to Bizz ( John )'s discussion Video Issues Again For Embed Videos Showing Blank Box
"Yes I noticed that but I don't think that's a big issue as at least the embeds are working now and…"
16 hours ago
Kyryl_Ning_Support replied to Bizz ( John )'s discussion Video Issues Again For Embed Videos Showing Blank Box
"Hi John,
Yes you are right the issue with embedded videos has been fixed, however, it's only workin…"
16 hours ago
Bizz ( John ) replied to Bizz ( John )'s discussion Ning- Your design studio widget images are not loading
"Thanks for the update Kyryl, and I also see the embed videos images have also been fixed up. Nice w…"
17 hours ago
Tony Rosa replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"Hi, i like it because some Ning 2 themes are very useful to some networks like for example Urban Te…"
17 hours ago
Kyryl_Ning_Support replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"Hi, Tony!
As I know the new themes are not in the plan in Q2, but I'll post the suggestion to creat…"
17 hours ago
Kyryl_Ning_Support replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"Hi, Tim!
We do apologise for the misunderstanding, unfortunately, our ticket system could have clos…"
18 hours ago
Kyryl_Ning_Support replied to Bizz ( John )'s discussion Ning- Your design studio widget images are not loading
"Hi, John!
The issue with the picture on the buttons in widgets in the design studio has been resolv…"
18 hours ago
Sarah Kerkman and Max G joined Ning Creators Network
18 hours ago
Ning via Facebook

#unitewithNING #social Facebook and Twitter popularity is the well-known fact. Nothing keeps…

Tim Frank replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"I am really happy that Ning is moving forward again. I hope that some of the improvement will focus…"
yesterday
Tony Rosa replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"Hi,
In Q2 will there be the opportunity to choose between old themes similar to Ning 2 or similar?"
yesterday
More…