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

Ramin Tehrani replied to Ramin Tehrani's discussion Global CSS keeps losing and pages get deleted- how to resolve-urgent help needed
"Is it possible to get the backup from History? I have changed the theme itself.I'll see how it goes."
59 minutes ago
Jen replied to Ramin Tehrani's discussion Global CSS keeps losing and pages get deleted- how to resolve-urgent help needed
"Wow, not good. Could you not get your CSS back using the history feature?"
1 hour ago
Vipster replied to Vipster's discussion How to change the text color of one navigation tab with CSS in Ning 2.0?
"That's working. Thanks!"
4 hours ago
Ramin Tehrani replied to Ramin Tehrani's discussion Global CSS keeps losing and pages get deleted- how to resolve-urgent help needed
"You mean, the CSS codes will come back. By the way, how would I know which default theme is being u…"
4 hours ago
Ramin Tehrani replied to Ramin Tehrani's discussion Global CSS keeps losing and pages get deleted- how to resolve-urgent help needed
"Hello Tim,
Actually, there is only below CSS scripts which I didn't add. I had added huge chunk of…"
4 hours ago
Tim Atkinson replied to Ramin Tehrani's discussion Global CSS keeps losing and pages get deleted- how to resolve-urgent help needed
"Mind you, these things tend to happen when Ning is testing stuff...this could be a positive develop…"
5 hours ago
Tim Atkinson replied to Ramin Tehrani's discussion Global CSS keeps losing and pages get deleted- how to resolve-urgent help needed
"Similar happened to me - lost a couple of revisions I'd recently made, but not whole CSS - did any…"
5 hours ago
Tim Atkinson replied to Kos's discussion OK Ning Wizards - I Need Your Help
5 hours ago
Strumelia replied to Traddie's discussion Contingency Planning. What's Yours?
"I know very little as well about all this.  But... I believe the only platforms that will actually…"
5 hours ago
Writer Chick {Diane} replied to Jeffrey Haskins's discussion Interesting post on Ning Facebook.....
"Your opinion carries a lot of weight around here, as does JFarrow's.  :) "
6 hours ago
John Bizley replied to Vipster's discussion How to change the text color of one navigation tab with CSS in Ning 2.0?
"You can do it by specifying the url of the tab in css to change a colour of a particular tab, this…"
8 hours ago
Donna Mac replied to Tim Atkinson's discussion My letter to Bernard Desarnauts, SVP & GM, Ning
"That does indeed sound like your solution!  :)"
10 hours ago
Strumelia replied to Ken Rich's discussion Ning Lied To Us - Your Content is Not Safe
"Yay!  I'm going to be part of building/migrating my beta test network site on Jamroom-  big, big th…"
10 hours ago
Ken Rich replied to Tim Atkinson's discussion My letter to Bernard Desarnauts, SVP & GM, Ning
"Well it seems there is another viable path out of Ning, which only makes me happier, because I hate…"
10 hours ago
Strumelia replied to Ken Rich's discussion Ning Lied To Us - Your Content is Not Safe
"Yep, me too, I've sent a note top Paul and I too would like to be part of the beta migration to Jam…"
10 hours ago
Donna Mac replied to Tim Atkinson's discussion My letter to Bernard Desarnauts, SVP & GM, Ning
"Ning PRO site that is still running until the end of this year.  I would keep it in a second if I t…"
10 hours ago
Ken Rich replied to Ken Rich's discussion Ning Lied To Us - Your Content is Not Safe
"No problem, happy to help..."
10 hours ago
John Koch-Northrup replied to Ken Rich's discussion Ning Lied To Us - Your Content is Not Safe
"I've sent a note to paul at jamroom. My music and creative related community would likely fit perfe…"
10 hours ago
steve replied to Jeffrey Haskins's discussion Interesting post on Ning Facebook.....
"oh yes Anam, ive seen it a lot worse than this. :("
10 hours ago
Ken Rich replied to Tim Atkinson's discussion My letter to Bernard Desarnauts, SVP & GM, Ning
"Cool... Thanks for the info... It seems to be in the same category of solutions, in that it is a "o…"
10 hours ago
More…