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

Thiago Santos de Moraes replied to Emer Dareloth's discussion Ning 2.0: Adding Two "Groups" Sections?
"It is not possible."
7 minutes ago
The Builder :) replied to Alan's discussion Adding Java Script
"Hi JQueryHelp and Bernard, sorry for taking to answer, I was in a difficult personal situation.

we…"
1 hour ago
JFarrow replied to Dominic Lehane's discussion APP Builder
"I've set up a couple of apps using Como.com  which allows you to do quite a bit with feeds and even…"
1 hour ago
Ning via Facebook

Designing The Perfect Newcomer To Regular Journey Part 5 http://ow.ly/AxqEC

JFarrow replied to JFarrow's discussion Community Compass: Reimagining Getting Started Guides for Online Communities-UPDATED
"Just a quick note to let those of you who are using the Community Compass that I have added a new w…"
6 hours ago
SweetPotato replied to SweetPotato's discussion Simple, Responsive Slider for Ning 3.0
"For anyone who is interested in dynamically loading blog posts into this slider (i.e. no manual upd…"
7 hours ago
Jamie Baker replied to Gerry Emery's discussion I'd like to see an example or two of the new NIng 3.0 websites
"Looks great Mike, one of the best I've seen & that was just on mobile, will look again on desktop l…"
8 hours ago
Mike Collins replied to Gerry Emery's discussion I'd like to see an example or two of the new NIng 3.0 websites
"Here's ours and after migrating just a couple of weeks ago it's great to see it come to life. There…"
8 hours ago
steve replied to Gerry Emery's discussion I'd like to see an example or two of the new NIng 3.0 websites
"Can see i have a long way to go looking at some of these wonderful sites but im happy with it so fa…"
21 hours ago
JFarrow replied to JFarrow's discussion How to Map Your Members on a Ning Network
"Because this actually happens outside of the actual network, i don't see how they could, Gerry....…"
22 hours ago
JFarrow commented on Gerry Regan's blog post Seeking provider of alternative to Apps.IO's Listings app. in Hire a Creator
"If you're still looking for help with this, I have a few ideas...ill send you my contact info.."
22 hours ago
JFarrow left a comment for Natasha Dyer
"Just sent you a message by email...happy to help!"
22 hours ago
JFarrow replied to Bernard Lama's discussion Thank you TJ, Jen and other NCs!
"for sure... always inspired by these guys!"
yesterday
Tyler Durbin replied to Bernard Lama's discussion Thank you TJ, Jen and other NCs!
"TJ has saved my butt a few times!  The guy is a master at what he does and his code always works fl…"
yesterday
Rowald replied to Rowald's discussion Site host name, https://network.com, does not match your SSL certificate Subject Name
"Hi Laura, well.. like Amanda said it's expected behavior on their end. Not sure if there is anythin…"
yesterday
George H. Compton IV replied to Bernard Lama's discussion Thank you TJ, Jen and other NCs!
""
Sunday
Katie McKay replied to Bernard Lama's discussion Thank you TJ, Jen and other NCs!
"Agree!"
Sunday
George H. Compton IV replied to soaringeagle's discussion mobile traffic reaches new high and no 3.0 completion date in sight
"Hello seoaringeagle :-)  fullwidth responsive Ning 2.0 network. That's what I'm working on right n…"
Sunday
Kos replied to Heather Ales's discussion How to center group images in Group Hub
"Oh cool.  I had worried a/b how it would appear oh phone when it needs to be responsive (had just p…"
Sunday
Heather Ales replied to Heather Ales's discussion How to center group images in Group Hub
"That worked perfectly! Thank you!!"
Sunday
More…