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

Mandy replied to Nancy Gruver's discussion Migration from Ning to WordPress
"Hi Kos I'm in the same boat; would you mind sending me  PM with the link to check out as well! Than…"
19 hours ago
⚡JFarrow⌁ replied to ⚡JFarrow⌁'s discussion Tip: For Those Who Need a Personal Site
"no problem bud... definitely cool... one thing that distinguishes this from the rest is the ability…"
21 hours ago
George H. Compton IV replied to ⚡JFarrow⌁'s discussion Megaload of Ning Tips, Tricks and Hacks (over 200+)
"I love the way you organize the tips, awesome job. :-)"
yesterday
George H. Compton IV replied to George H. Compton IV's discussion (TIP N3.0 & N2.0) Nonmembers/visitors redirect scripts
"You're welcome JFarrow. :)  I'm not sure if I've seen your personal site yet, I would love to check…"
yesterday
George H. Compton IV replied to ⚡JFarrow⌁'s discussion Tip: For Those Who Need a Personal Site
"I'll go check this out today, thank you for sharing. :-)"
yesterday
George H. Compton IV replied to Mandy's discussion Redirect Urls / Custom Url
"Good morning Mandy. Here's a website that will customize your links. It may not be exactly what you…"
yesterday
Mandy replied to Mandy's discussion Redirect Urls / Custom Url
"For some reason I'm not getting notifications when someone replies/comments; so didn't realize unti…"
yesterday
Fire-Tech replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"Yeah.. that's what I have been holding off for... a more stable and fully responsive version. I als…"
yesterday
⚡JFarrow⌁ replied to George H. Compton IV's discussion (TIP N3.0 & N2.0) Nonmembers/visitors redirect scripts
"came in handy today on my personal site.  thanks G!  "
yesterday
Kos replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"Troy How's the mobile setup there?  I get a warning "this connection is untrusted" and when I click…"
yesterday
Kos replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"Holy cow"
yesterday
CocteauBoy replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"You were/are so awesome... My Ning community benefited so much from your hard work. I will always b…"
yesterday
CocteauBoy replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"There are a LOT of internal issues with that platform. And the third-party plugins are awesome with…"
yesterday
Dan Lee replied to Saurabh's discussion Fatal Error & warnings
"how to fix this error"
yesterday
Fire-Tech replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"Thanks man and best of luck"
Friday
Fire-Tech replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"Have been focusing on my elearning site...completely different software.I was getting really close…"
Friday
George H. Compton IV replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
":( Sorry to see you go my friend.  Best of luck to you and your new network."
Friday
George H. Compton IV replied to Katy Blagg's discussion Resizing Group Icons
"Hello Katy this should do the trick, the code goes into the design studio global CSS section..
@med…"
Friday
⚡JFarrow⌁ replied to Katy Blagg's discussion Resizing Group Icons
"try adding this to see if it helps .groupHub-group.matrix-itemFluid {
max-width:100%
}"
Friday
CocteauBoy replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"I spent THOUSANDS of dollars on SE PHP and it was the biggest mistake I've ever made beyond stickin…"
Friday
More…