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

Poppili left a comment for Poppili
"Thanks Jamie 
Please send me an email to contact@mumaround.com
Thanks a lot"
36 minutes ago
Jim Kinson replied to George H. Compton IV's discussion (TIP) Ning 2.0 responsive fullwidth network at any screen resolution. :O Cellphones to TV's ;)
"George, this is awesome as usual. Why did we even have to do this 3.0 thing. They could have hired…"
3 hours ago
Jamie Baker left a comment for Poppili
"Hi,
I see your looking for some design help. Drop me a message if your stuck.
Jamie"
4 hours ago
steve replied to Neil Norton's discussion No notifications equals slow death for groups
"The last time this was mentioned it was pointed out that inline notification wont be included in Ni…"
6 hours ago
Fire-Tech replied to Anant Garg's discussion CometChat Network Edition now available for NING
"Just installed and have to say that first impressions are great! Notifications and file uploads are…"
9 hours ago
steve replied to Theresa Happe's discussion Looking for someone to switch my site for ning 3.0
"I think the reality is, it doesn't much matter when you compare N2 to N3, the fact is N2 is being d…"
9 hours ago
United Spirits replied to Traddie's discussion Does any member have Code to add "views" to a page
"Freehostedscripts gives you the ability to show whose online two."
16 hours ago
United Spirits replied to United Spirits's discussion Alternative Text Editor
"This makes me pretty excited. The default Text editor just I don't really like it. I just hope it w…"
16 hours ago
United Spirits replied to Theresa Happe's discussion Looking for someone to switch my site for ning 3.0
"Ning 3 is better for designers. Fine grain controls are its selling point. Ning 2 is better for fix…"
16 hours ago
Jen replied to Willerie Razote's discussion CSS Advice: How to change the title to buttons
"It was such a small bit of help. =) Thank you, Willerie!"
yesterday
Bernard Lama replied to Traddie's discussion Does any member have Code to add "views" to a page
"Hi Traddie,
You can use the code from here http://www.hitwebcounter.com as I'm using the same here …"
yesterday
George H. Compton IV replied to George H. Compton IV's discussion (TIP) Ning 2.0 responsive fullwidth network at any screen resolution. :O Cellphones to TV's ;)
"hello Scott.. Sure that should be a simple thing I'll work on it Monday and get back to you as soon…"
yesterday
Simon Farnworth replied to Ceddy J's discussion Quick Add Feature For Activity Feed?
"Wow! How did you do that??"
yesterday
George H. Compton IV replied to United Spirits's discussion Alternative Text Editor
"SP I've been really busy this weekend I'll try to work out the CSS Monday.
Even though I'm sure you…"
yesterday
Willerie Razote replied to Willerie Razote's discussion CSS Advice: How to change the title to buttons
"@Jen--echoing Joanna, you are AWESOME!  Helpful and always on point!"
yesterday
Jen replied to Willerie Razote's discussion CSS Advice: How to change the title to buttons
"@Joanna, Goodness, made my day. Thanks, happy it helped a tiny bit."
yesterday
Poppili left a comment for vaqz
"Hi
Please send me an email to contact@mumaround.com
I am looking to hire a ning developer"
yesterday
SweetPotato replied to Traddie's discussion Member Map Not Working
yesterday
Joanna replied to Willerie Razote's discussion CSS Advice: How to change the title to buttons
"Jen - as usual, you're awesome. Thanks.
I had the same problem."
yesterday
Magesoad replied to Theresa Happe's discussion Looking for someone to switch my site for ning 3.0
"I managed to leave my perfect 3.0 network and all the features it suits me, so do not have to compl…"
Saturday
More…