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

Lea replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"Yeah Ning 2.0 was great! Ning 3.0 however is very different. We have a lot to complain about. Would…"
3 hours ago
marshall blake replied to albert12's discussion What's going on?
"We have all been waiting, I was a big supporter of N3 network, my view on this has changed in the l…"
11 hours ago
Fire-Tech replied to John Bizley's discussion How To Add Some Design To Your: Pages Categories Nav, Groups Nav & Groups Pages Nav
"+1"
22 hours ago
Randy L. Vollett replied to John Bizley's discussion Enhance Your Photos Edit / Upload Page
"Hi John. I had a piece of code you gave me some time ago that lined up my photos on my Photo Galler…"
yesterday
marilyn mache, Sudev, Mel Adams and 4 more joined Ning Creators Network
yesterday
John Bizley replied to John Bizley's discussion Add Navigation To Photos So Only Need To Click Or Tap On Side Of Photo Instead Of Arrows
"It could be done  I would think but would need a bit of figuring out. The way Ning has it is the ma…"
yesterday
John Bizley replied to John Bizley's discussion Add Navigation To Photos So Only Need To Click Or Tap On Side Of Photo Instead Of Arrows
"Thanks Kos :-)"
yesterday
John Bizley replied to John Bizley's discussion Enhance Your Photos Edit / Upload Page
"It should default to all pages, it might be something that's got mixed up in the copy and paste whe…"
yesterday
Kos replied to John Bizley's discussion Add Navigation To Photos So Only Need To Click Or Tap On Side Of Photo Instead Of Arrows
"Sahweet!  Yes, I missed it but hadn't gotten around to going thru my old code to retrieve it.  Than…"
yesterday
Randy L. Vollett replied to John Bizley's discussion Enhance Your Photos Edit / Upload Page
"I tried to apply the code,but it didn't take. Do I have to target the code or is it a default code…"
Tuesday
Randy L. Vollett replied to John Bizley's discussion Add Navigation To Photos So Only Need To Click Or Tap On Side Of Photo Instead Of Arrows
"The one thing that bugs me about Nings photo page is when you click on the arrow to advance to the…"
Tuesday
John Bizley replied to John Bizley's discussion Add Navigation To Photos So Only Need To Click Or Tap On Side Of Photo Instead Of Arrows
"I did mention in a previous post comment that I was going to post tips once or twice a week with a…"
Monday
George H. Compton IV replied to George H. Compton IV's discussion Ning coding and styling Tool "GeoPlugin" v2.00.003
"aww shucks!!! lol Thank you Garfield. :)  Goofy image below. lol
Yep this is me. lol"
Monday
Kos replied to John Bizley's discussion All New Photos Page Viewer Layout Code
"Whew!  Thank goodness"
Monday
JFarrow replied to John Bizley's discussion All New Photos Page Viewer Layout Code
"i tracked it down and indeed it was a chrome plugin.. thanks everyone"
Monday
Antonio Ancelmo Matos Santos replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"And who told you that I spoke to you? you are happy with the whole situation on Ning? good for you!…"
Monday
Kos replied to John Bizley's discussion How To Add Some Design To Your: Pages Categories Nav, Groups Nav & Groups Pages Nav
"Sounds like a plan.  You know me.  I'll be lingering like an annoying cold.  LOL"
Monday
Garfield Archivist replied to George H. Compton IV's discussion Ning coding and styling Tool "GeoPlugin" v2.00.003
"Awesome in every sense of the word."
Sunday
George H. Compton IV replied to George H. Compton IV's discussion Ning coding and styling Tool "GeoPlugin" v2.00.003
"Update 8/30/15, now you can also easily add HTML to the head or the body of your network.. TJ thank…"
Sunday
John Bizley replied to John Bizley's discussion How To Add Some Design To Your: Pages Categories Nav, Groups Nav & Groups Pages Nav
"Thanks Kos, will do but may hold off a little posting onto creators and just add them to my site as…"
Sunday
More…