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

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 ;)
"WOW Thank you for the compliment and the kind words Garfield :) Hope you have an awesome weekend."
56 minutes ago
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 ;)
"Thank you for the compliment Innocent Hami..  "
1 hour ago
George H. Compton IV replied to Scott Bishop's discussion 301 Redirect from N2 to Offsite
"301 redirect generator!!Scott this should do the trick for any page you would like to be redirected…"
1 hour ago
Kos replied to Peter Matthews's discussion Faceted search for Ning 3.0?
"Faceted search, or advanced search as it is commonly called, has been around for a long time and ga…"
4 hours ago
Garfield Creator replied to George H. Compton IV's discussion (TIP) Ning 2.0 responsive fullwidth network at any screen resolution. :O Cellphones to TV's ;)
"This is a real contribution and service to the community. It would be easy to miss and not get the…"
5 hours ago
Innocent Hami left a comment for George H. Compton IV
""
11 hours ago
Innocent Hami replied to George H. Compton IV's discussion (TIP) Ning 2.0 responsive fullwidth network at any screen resolution. :O Cellphones to TV's ;)
"You are amazing George. I am a student and I am just the beginner of designing. Hope i will learn s…"
11 hours ago
Scott Bishop replied to Scott Bishop's discussion 301 Redirect from N2 to Offsite
"Strumelia, be careful doing this. I'm not sure if this will pass on SEO for all your pages like a 3…"
16 hours ago
Kos replied to The Builder :)'s discussion Help! I need to file my ning network 3
"Legal avenues it is.  If they suddenly shut me down, I'll know why."
16 hours ago
Strumelia replied to The Builder :)'s discussion Help! I need to file my ning network 3
"Ning apparently has their own creative definition of the term "in the near future".
Like remember 3…"
16 hours ago
Kos replied to The Builder :)'s discussion Help! I need to file my ning network 3
"From Ning:

Thanks for writing us. At this time, we don't have an archiver tool in place that would…"
16 hours ago
George H. Compton IV replied to Scott Bishop's discussion 301 Redirect from N2 to Offsite
"Scott she needed it for her whole network that's why the custom code box.I'm still working on your…"
18 hours ago
Fire-Tech replied to Fire-Tech's discussion 3.0 Tip: Message Notification Background
"Thanks guys... super simple.. but may find it handy ;)"
18 hours ago
Strumelia replied to Scott Bishop's discussion 301 Redirect from N2 to Offsite
"Thanks George.  I don't need this right now, but am bookmarking this thread for use if/when I leave…"
18 hours ago
George H. Compton IV replied to Scott Bishop's discussion 301 Redirect from N2 to Offsite
"Strumelia it sounds like you want members and nonmembers redirected to your new website. If that's…"
18 hours ago
SweetPotato replied to Scott Bishop's discussion 301 Redirect from N2 to Offsite
"The group solution is relatively simple but pasting it in iPad seems to add a crucially unwanted se…"
19 hours ago
Scott Bishop replied to Scott Bishop's discussion 301 Redirect from N2 to Offsite
"Love your inputs SweetPotato"
19 hours ago
Scott Bishop replied to Scott Bishop's discussion 301 Redirect from N2 to Offsite
"If you place it in the custom code box how does know which page you want to redirect? "
19 hours ago
SweetPotato replied to Scott Bishop's discussion 301 Redirect from N2 to Offsite
"Tried writing answer on iPad but impossible. Ruined code. Will do it another time"
19 hours ago
Anam replied to The Builder :)'s discussion Help! I need to file my ning network 3
"As a Ning 3 site grows larger the lack of Archive facility outweighs almost every other shortcoming…"
19 hours ago
More…