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

Kos replied to Hammad Shafique's discussion Tell me how to creat ning 2 chat on ning 3
"Ning never built the module so we've all had to utilize outside sources.  My favorite has been Come…"
8 hours ago
Hammad Shafique replied to Hammad Shafique's discussion Tell me how to creat ning 2 chat on ning 3
":("
16 hours ago
⚡JFarrow⌁ replied to ⚡JFarrow⌁'s discussion Web Tools for Responsive Design (share your favorites)
"no problem bud"
yesterday
⚡JFarrow⌁ replied to ⚡JFarrow⌁'s discussion Add Some POWr to Your Ning Community
"something new you can do with POWR"
yesterday
Kos replied to Boris Agranovich's discussion Signup popup stopped working on my Ning 2.0 site
"They always have to sign up or sign in to post.  Must've been something custom designed.  Maybe sha…"
Friday
Kos replied to The Ning Team's discussion Notice of 2016 Storage Limit and Pricing Plan Changes
"idk I would ask Ning in a support ticket. That way you have it in 'writing.'"
Friday
Nidia replied to The Ning Team's discussion Notice of 2016 Storage Limit and Pricing Plan Changes
"I don't know if i'm repeat this question, because there is so much here to read...
I would like to…"
Friday
Randy L. Vollett replied to VU APEX's discussion Want to add (add discussion link) and scroll in forum
"Go to your Dashboard and select Site & Pages. In your Layout & Content click on your FORUM box. Nex…"
Thursday
Kos replied to VU APEX's discussion Want to add (add discussion link) and scroll in forum
"I can answer part of this.  You can place 'buttons' to add a discussion on every page of your websi…"
Thursday
Matt Whisenant is now a member of Tips and advice.
Thursday
Jen replied to Jamie Baker's discussion Kopfans - From Ning 3.0 to Wordpress
"I agree with TJ. It looks nice, Jamie. The narrow width is interesting, like it! =)"
Thursday
TJ @ jQueryHelp replied to Jamie Baker's discussion Kopfans - From Ning 3.0 to Wordpress
"Hi Jamie,
I just visited your site.  It is nicely designed and appears to be very functional and ac…"
Thursday
Just Asking replied to Just Asking's discussion Anyone know how to make a profile activity page?
"Yes. What I'd like to do is to turn that module into its own page."
Wednesday
SweetPotato replied to Just Asking's discussion Anyone know how to make a profile activity page?
"There should be each member's activity feed on their profile page. Like this one:
http://live.autog&hellip;"
Wednesday
Sophie Salmon replied to Sophie Salmon's discussion How to block email @rediffmail.com on our network ?
"Many thanks ! it's so easy !
via (my network)/main/admin/signUpSignIn and Email Domain and IP Addre…"
Wednesday
Janice D Carter replied to Sophie Salmon's discussion How to block email @rediffmail.com on our network ?
"Sophie if you are on 2.0 go to your network sign up/sign in, you can block it there"
Tuesday
mysticpagan replied to The Ning Team's discussion Notice of 2016 Storage Limit and Pricing Plan Changes
"Does all this apply to the people who migrated over from Ning 2.0 and had a sandbox site because at…"
Tuesday
Rowald replied to The Ning Team's discussion Notice of 2016 Storage Limit and Pricing Plan Changes
"Incredible update, thanks for this new feature Ning. Waiting for about three years for an update li…"
Tuesday
Janice D Carter replied to The Ning Team's discussion Notice of 2016 Storage Limit and Pricing Plan Changes
"I know that in 2010 this was a discussion about charging for storage.  At that time, we asked for a…"
Feb 8
Kos replied to The Ning Team's discussion Notice of 2016 Storage Limit and Pricing Plan Changes
"Oye.  Can't be 'simple', can it.  *lol*  At least it's an option for 3.0 owners."
Feb 5
More…