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

Luke Jones replied to marshall blake's discussion Loving My N3 Network
":) this could work out to be a good partnership lolWhat do you want to work on first ? :)"
8 minutes ago
Strumelia replied to Fred Peters's discussion I can't run a social community like this!
"Paul you can go ahead and add my new site to the list in that "mysites" link if you like.   :)"
9 minutes ago
Fred Peters replied to Fred Peters's discussion I can't run a social community like this!
"Hi Paul,

Many thanks!
Looks cool but I think I'll consider Wordpress first: free hosting and a pla…"
10 minutes ago
marshall blake replied to marshall blake's discussion Loving My N3 Network
"Yes"
17 minutes ago
Luke Jones replied to marshall blake's discussion Loving My N3 Network
":)sorry for the late reply :/Maybe we can work together with writing code? :) "
18 minutes ago
George H. Compton IV replied to Tat Ruck's discussion So long and thanks for all the fish
"Love the video :) The Clash - Should I Stay Or Should I Go :)  It takes me back, way back.. awww m…"
48 minutes ago
George H. Compton IV replied to Tat Ruck's discussion Can't get site back online
"LOL :)  That just tells me I should wear my glasses more often. LOL :-)  you're welcome and you hav…"
56 minutes ago
Paul Asher replied to Fred Peters's discussion I can't run a social community like this!
"$49 a month is for JR pre-installed on one of our guaranteed VPS servers, with VIP support and free…"
1 hour ago
Fred Peters replied to Fred Peters's discussion I can't run a social community like this!
"Thanks Sweetpotato, yes, I run several Wordpress sites, so I'd be looking for some help moving over…"
2 hours ago
Fred Peters replied to Fred Peters's discussion I can't run a social community like this!
"Hi Paul,
It's http://starryid.com (a talent website)

Looking at Jamroom though, it may be expensiv…"
2 hours ago
marshall blake replied to marshall blake's discussion Loving My N3 Network
"I have some luck in figuring out codes."
2 hours ago
Luke Jones is now a member of Tips 4 Ning Creators
2 hours ago
Luke Jones replied to marshall blake's discussion Loving My N3 Network
"lol, I just want like a handful of the creators to get together, and Buy them out lol, Ah awesome :…"
2 hours ago
marshall blake replied to marshall blake's discussion Loving My N3 Network
"Not sure I could buy them out lol, but I maybe able to help you with the code."
3 hours ago
Katcha Sanderson replied to Fred Peters's discussion I can't run a social community like this!
"I want to thank all the replies for the good feedback and honest input they offer. Making an active…"
3 hours ago
Luke Jones replied to marshall blake's discussion Loving My N3 Network
":) , and me, I'm trying to code a notifications icon, its sending me nuts :PI have found a code onl…"
3 hours ago
marshall blake replied to marshall blake's discussion Loving My N3 Network
"This is true ning has not done anything in awhile. And I am waiting it out hoping to hear from them…"
3 hours ago
Luke Jones replied to Fred Peters's discussion I can't run a social community like this!
"Ah right :/Well surely they've got something to build on, they've got the root of the code thereI j…"
3 hours ago
Luke Jones replied to marshall blake's discussion Loving My N3 Network
"Hmmm I hope so :) But Ning haven't done anything for more than a year :/I don't suppose you have th…"
3 hours ago
marshall blake replied to marshall blake's discussion Loving My N3 Network
"I am sure these features will come along soon.... I hope"
3 hours ago
More…