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

SweetPotato replied to Ron's discussion Reactor2: Responsive Design for Ning 2.0 Networks
"Naturally. :-)"
27 minutes ago
Steve C replied to Ron's discussion Reactor2: Responsive Design for Ning 2.0 Networks
"Thanks, SP. I went to the catamaran site he listed in the discussion I first got the old N2 mobile…"
31 minutes ago
Philip Parker and Ethan B. joined Ning Creators Network
1 hour ago
SweetPotato replied to Ron's discussion Reactor2: Responsive Design for Ning 2.0 Networks
"Yes. I've done it for a client on a private ning 2.0 site. Fully responsive, mobile menu etc.

Here…"
1 hour ago
Martin Stratton left a comment for Martin Stratton
"Thanks John... but I cannot even add a discussion here on the Creator's site.  For some reason I am…"
1 hour ago
John Bizley left a comment for Martin Stratton
"Hi Martin, the best place to add something like this is by creating a discussion on the creators fo…"
2 hours ago
Martin Stratton left a comment for Martin Stratton
"I can use some help, I am unable to edit pages... when I click to edit, I see code on the page and…"
2 hours ago
Steve C replied to Ron's discussion Reactor2: Responsive Design for Ning 2.0 Networks
"There's a way to make Ning 2 responsive? We're losing a ton of traffic because it isn't, and on Apr…"
2 hours ago
Jan Homan replied to Jan Homan's discussion How to create a video as a header?
"Oo Ron, strange thing happened. My navigation buttons dissapeared. I see just the video in the head…"
3 hours ago
John Bizley replied to Mandy's discussion Add Text Box- Photo Upload Page
"No worries Mandy, to give you an idea of how these can be used take a look at this video for my cla…"
6 hours ago
Mandy replied to Mandy's discussion Add Text Box- Photo Upload Page
"Yup, something to definitely look into...thanks again"
8 hours ago
Mandy replied to Mandy's discussion Add Text Box- Photo Upload Page
"@John Bizley interesting, would have to look into that as an option ;) appreciate the suggestion, t…"
8 hours ago
Ron replied to Ron's discussion Reactor2: Responsive Design for Ning 2.0 Networks
"Thanks SP for the heads up. Yes, I already saw previous posts re: those method.
But this will be so…"
12 hours ago
SweetPotato replied to Urban Pulse Media's discussion RSS Feed Not working
"Is this from your activity feed by any chance?
Those xn/detail links tend to get generated by the a…"
13 hours ago
SweetPotato replied to Ron's discussion Reactor2: Responsive Design for Ning 2.0 Networks
"A few of us have already done this Ron. George Compton even posted his as a free tip. ;-)"
13 hours ago
Thiago Santos de Moraes replied to John Bizley's discussion Updated Videos Page: ( code now available )check it out and if all looks good will post the code etc
"It´s ok now. Thanks, John."
16 hours ago
Jenny Jo Bingham, Creativos Latma and Ana Vaz joined Ning Creators Network
20 hours ago
Ron replied to Urban Pulse Media's discussion RSS Feed Not working
"Hey Urban Pulse Media,
Your best option here is to contact Ning support as this is static content a…"
21 hours ago
John Bizley replied to John Bizley's discussion First Look Of My New Classifieds Page now open for viewing. Updated 30/03/15
"NAVBAR MENU UPDATE
Updated the Navmenu to remove all the options and only show the one you are actu…"
21 hours ago
Ron replied to Jan Homan's discussion How to create a video as a header?
"thanks :)"
21 hours ago
More…