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

Forum

Add youtube video only in first page

Hi,

I would like to know how to add video only in first page or main page.

I have one code for put video but this appear in all pages. How to add video in main page?

 

See my web, is the video in up....

http://ucraniaonline.com/

 

 

Thanks, gracias in advance

 

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

Join Ning Creators Network

Email me when people reply –

Replies

  • textbox... ?

    • No cause text box add video in this part of the web but i need video in one special position of the web!

      Now i have video with scrypt, you can see in my web www.ucraniaonline.com in the head of page. But i need that only its seeing in the main page and no in all pages of them.

      How to do?

  • NC for Hire

    Hi Igoravance,

    Add this class to display on main page only.

    .xg_widget_main

    • Hi Bernard and thanks for answer...

      I have this two codes

      css code:

      #video {
      position: absolute;
      width: 210px;
      height: 35px;
      margin-left: 395px;
      margin-top: -95px;
      }

       

      and scrypt code

      <script type="text/javascript"> x$(document).ready(function() { x$("div#xg_masthead").append('<div id="video"><iframe width="210" height="120" src="http://www.youtube.com/embed/uF373Iynpsc" frameborder="0" allowfullscreen></iframe></div>');

      });   </script>

      Where i need put the code? thanks in advance

      • NC for Hire

        Then use this code in custom code 

        <script type="text/javascript">
        if(x$('.xg_widget_main ').length > 0){
        x$("#xg_masthead").append('<div id="video"><iframe width="210" height="120" src="http://www.youtube.com/embed/uF373Iynpsc" frameborder="0" allowfullscreen></iframe></div>');
        }
        </script>

        <style>
        #video {
        position: absolute;
        width: 210px;
        height: 35px;
        margin-left: 395px;
        margin-top: -95px;
        }
        </style>

        • OHHHHH YESSSSSSSSSSSSSSS I LOVE YOU MAN, REALLY IM YOUR FAN, SO MUCH THANKSSSSSSSSSSSSSSSS

          • NC for Hire

            Thanks igoravance. Glad it worked for you.

            Have a great time.

  • dang i just used it to put slideshow on the Main that boy Bernard knows his cup of Java... !

This reply was deleted.

Search the Creators Network

Latest Activity

Jamie Baker (Vision) replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"sorry to hear that's awful."
13 minutes ago
Neil Norton replied to Bernard Lama's discussion Killer Tip : How to add seach bar to your ning 3.0 network ?
"Muchas Gracias, I like it!"
25 minutes ago
Alison Frane replied to Martin de Goede's discussion Customizing the standard layout for profile pages
"Anyone?  Anyone?"
29 minutes ago
Neil Norton replied to James Nored's discussion Why is the HTML box so incredibly small!
"It would be nice if the HTML box was Wysiwig design editor. Save time from designing in one program…"
1 hour ago
John Bizley replied to Niche Networkers's discussion Hide header but show navigation
"It's because you are hiding the site header which includes the Navbar. Also in the other part you a…"
1 hour ago
James Higginson replied to Gerry Regan's discussion Alternatives to Apps.IO's Listings App
"That's a shame, I had about 5000 member pins on my io Map, don't suppose there any way to grab that…"
11 hours ago
SweetPotato replied to Gerry Regan's discussion Alternatives to Apps.IO's Listings App
11 hours ago
James Higginson replied to Gerry Regan's discussion Alternatives to Apps.IO's Listings App
"Is apps.io still in business? No reply to my support requests and the map broke, how do I contact t…"
12 hours ago
Cautious replied to PeruCool's discussion Alternatives to Ning social network
"Way to go Jen!  I'm at Spruz and you know me with questions, lol. 
Unfortunately, some owners aren'…"
17 hours ago
Garfield Creator replied to PeruCool's discussion Alternatives to Ning social network
"Thanks Jen"
18 hours ago
Ken Rich replied to Ken Rich's discussion Ning Lied To Us - Your Content is Not Safe
"Thank-you Steve. Ning support actually responded today to a "new" support ticket that had been sit…"
18 hours ago
steve replied to Ken Rich's discussion Ning Lied To Us - Your Content is Not Safe
"I see these new topics are still not showing in the feed unless somebody replies, so i will just do…"
18 hours ago
Alyce Keegan replied to Alyce Keegan's discussion Trying to make my sidebar padding smaller
"Hey Kos! Thanks for your reply. I'm using one of the older themes so I don't have this option. I sh…"
19 hours ago
Lora replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"My 3.0 has just about cut my business in half.
DO NOT MAKE THE SAME MISTAKE I DID and migrate to 3.…"
21 hours ago
Robert Druse replied to PeruCool's discussion Alternatives to Ning social network
"I will stand corrected if anything I say is not correct..."
23 hours ago
Jen replied to PeruCool's discussion Alternatives to Ning social network
"Unless they sold their company, Spruz is located in Tennessee.
And seriously, I'm going to have to…"
23 hours ago
Robert Druse replied to PeruCool's discussion Alternatives to Ning social network
"So, Spruz is based in Europe, not in Tennessee like they say they are?? Another potential fraudulen…"
23 hours ago
Kos replied to Alyce Keegan's discussion Trying to make my sidebar padding smaller
"Hi Alyce.  Have you tried adjusting the padding to zero here and change site size in Design Editor?…"
23 hours ago
Pat Howlett replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"For now I'm still here with you Strumelia :]
I've gone from over 200 Ning Networks (used to spend 1…"
yesterday
Luke Jones replied to Luke Jones's discussion Help
"Ah awesome, thank you ::) I'm currently on ning 2.0 because I havnt got enough members to make it w…"
yesterday
More…