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 Social Network to add comments!

Join Ning Creators Social Network

Email me when people reply –

Latest Activity

Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion
Overview of Q3 and Ning Q4 2017 plan.
"Hi there!
We already have such suggestion registered in the system, but the management hasn't made…"
2 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion
Overview of Q3 and Ning Q4 2017 plan.
"Hi there!
Only number 4 is related to both platforms, all other features would be implemented on 3.…"
3 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion
Overview of Q3 and Ning Q4 2017 plan.
"Hi there!
1. I do remember this suggestion, you have posted it here before. And I have good news fo…"
3 hours ago
American Energy replied to Kyryl_Ning_Support's discussion
Overview of Q3 and Ning Q4 2017 plan.
"Will each of the below be available on 2.0?
1. Member ranking system2. E-commerce platform wider de…"
3 hours ago
Ning via Facebook

Do you think that Ning platform should provide opportunities for creating business pages? Share…

Kos replied to Kyryl_Ning_Support's discussion
Overview of Q3 and Ning Q4 2017 plan.
"If you're using Nings RSS feed (on 3.0), you can display up to 24 items"
6 hours ago
George Daniels, leon van rooyen, Rolf Joho and 46 more joined Ning Creators Social Network
12 hours ago
Badan Barman replied to Kyryl_Ning_Support's discussion
Overview of Q3 and Ning Q4 2017 plan.
"I would like to recommend two features that are crucial for my survival, 1. Provision of displaying…"
14 hours ago
Badan Barman replied to Kyryl_Ning_Support's discussion
Creators, we need your opinion regarding one idea
"I loved the existing way of Inviting the members. Will not recommend a third party not for the cost…"
14 hours ago
Badan Barman replied to Scott Bland's discussion
Should I or shouldn't I?
"Dear Bland, I am here from the year 2008 and I loved the way Ning is moving. Will recommend it full…"
14 hours ago
Ning via Facebook

The law is hard, but it is the law. Do you think that social media marketing laws are too…

Ning via Facebook

A or B? Black or white? Discover why A/B testing is more than simple choice of 2 landing page…

More…

Meanwhile, you can check our social media channels