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

John Bizley replied to Gerry Regan's discussion Alternatives to Apps.IO's Listings App
"The WordPress Log in is a separate log in because it is not part of the Ning site. I actually prefe…"
3 minutes ago
Gerry Regan replied to Gerry Regan's discussion Alternatives to Apps.IO's Listings App
"John, how do you incorporate the Ning log-in on the WordPress version, or does it require a separat…"
44 minutes ago
Zachary Moonshine replied to Gwynnyth's discussion CHAT
"I have cometchat for my members in  a bar at the bottom and it works just like facebook and we love…"
1 hour ago
Edie2k2 left a comment for Pat Howlett
"Thank you for accepting. Wonderful posts!"
1 hour ago
Jeffrey Haskins replied to JFarrow's discussion How to Get Google to Recognize Sitemap
"How has this worked out for everyone?"
3 hours ago
Pat Howlett replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
":]"
4 hours ago
Pat Howlett replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"Great recap Anthony - of course I didn't think that any of those folks would engage - I still hold…"
4 hours ago
Pat Howlett left a comment for Edie2k2
"Great to connect with you Edie2k2 - please let me know whenever I might be of help."
4 hours ago
George H. Compton IV replied to George H. Compton IV's discussion (TIP) Ning3.0 thimes v1 full width network
"To widen your network you can use my code from this tip.
"TIP" widen your network too 1202px
I did…"
4 hours ago
George H. Compton IV replied to George H. Compton IV's discussion ( TIP "N3.0,2 ) Add Google translate to your Ning bar on all pages. Update 8/21/14 v8.1
"Update 8/21/14 v8.1 --  I fixed the cell phone users links. The mailbox and friends request is no l…"
4 hours ago
Anam replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"nothing from Monday night to yesterday shows up when it came back. nothing posted today went into i…"
4 hours ago
Ceddy J replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"Mine is back up everyone."
4 hours ago
steve replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"still as buggy as crap though,,"
5 hours ago
Anam replied to Tim Atkinson's discussion RSS semi-workround for missing Activity Feed
"Copied and Saved ! thanks Tim. Have to say i did all this but it still did not work, but i will try…"
5 hours ago
Anam replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"Thank you so much Tim :)
I almost got all the way there with this tip...I will copy it down now for…"
5 hours ago
Tim Atkinson replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
5 hours ago
steve replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"thanks god.. its showing life again..."
5 hours ago
John Bizley replied to Strumelia's discussion Why are only Ning Facebook Posts now showing in the Creators Activity Feed??
"Seems someone found the switch and turned the activity feed back on !"
5 hours ago
Edie2k2 replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"You are the man, Pat. Bravo. I am still rolling laughing at the caring gerbil reference. I love int…"
5 hours ago
Tim Atkinson replied to John Bizley's discussion My New Classifieds using WordPress and iframed into my site
"That's very impressive! That must have taken an age.....

I like the look of it a lot - do you anti…"
5 hours ago
More…