Why this doesn't work in WP? Or a better idea needed

by bwh1
6 replies
  • WEB DESIGN
  • |
I try to have a Hyperlink or an image in my WP page which opens a new, small popup browser on top of my open page, but the codes I got from the online sources incl. WC3 doesn't work.

I tried to use the 3 codes here
This is a Button code

<p>CHECK OUT A LIST OF ALL THE VIDEOS HERE.</p>

<center><button onclick="myFunction()"><strong>Quickbooks University Video List</strong></button></center>

<script>
function myFunction() {
window.open("http://qbuniversity.org/video-overview/", "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400");
}
</script>
-------------------------------------------------------------------------------------------------------------------------------

<h2 style="text-align: center;"><a href="http://qbuniversity.org/video-overview/" target="_blank">CHECK OUT A LIST OF THE VIDEOS - CLICK HERE</a></h2>
-------------------------------------------------------------------------------------------------------------------------------
This is a clickable image code

<a><img name="PopUpWin1" border=0 height=400 width=400 src="http://qbuniversity.org/quickbooks-university-training/quickbooks-2014-tutorials/1-introduction-to-quickbooks/flatecover/" onclick="open_win()"></a>
<script type="text/javascript">
function open_win(){
window.open("http://qbuniversity.org/video-overview/","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width=500, height=480") }
</script>
But only the normal text link works, which opens a new tab in my browser.

What I actually like to have is a smaller popup window on top of my page which displays the list of the videos I'd like to show.

Non of the other codes worked, guess it has some to do with the WP compatibility.

Or do you have a better idea how to show that long list of videos to someone interested into seeing them? I don't want to have them in the sales page.

Many thanks for your help.

G.
#idea #needed #work
  • Profile picture of the author Ben Holmes
    This is probably the solution you're looking for:

    Wordpress Onclick Popup Popover Plugin With Multi Click And Responsive Layout | Inteletec.com

    There's a Wordpress plugin, but apparently the plugin is a tad buggy... the link above is for a fix.

    Hope this helps...
    {{ DiscussionBoard.errors[9318326].message }}
    • Profile picture of the author bwh1
      Originally Posted by Khadaji View Post

      This is probably the solution you're looking for:

      Wordpress Onclick Popup Popover Plugin With Multi Click And Responsive Layout | Inteletec.com

      There's a Wordpress plugin, but apparently the plugin is a tad buggy... the link above is for a fix.

      Hope this helps...
      The site from the guy looks like broken, couldn't really get much out of it.

      But I knew about the problems from the plugin, tried it myself and got stuck on the "open one time only" problem.

      On the other hand, I'm a total idiot when it comes to code etc. so I don't know if I would be able to mess with the code in the files.

      Amazing that there is no simple code we can use in a WP page that does work.

      I got rid of about 50% of my plugins which slowed down my loading speed so would love to do this without a plugin if possible.

      Any chances?

      G.
      Signature

      Affiliates Wanted! Make anywhere from 42,- to $72 in commissions. Simply Recommend the Best QuickBooks Pro Video Course available at Clickbank.

      {{ DiscussionBoard.errors[9318465].message }}
      • Profile picture of the author Ben Holmes
        Originally Posted by bwh1 View Post

        I got rid of about 50% of my plugins which slowed down my loading speed so would love to do this without a plugin if possible.

        Any chances?

        G.
        I'm not a programmer - but it seems to me if you posted this on Elance or similar, and got some quotes, I think a good programmer would be able to whip up something fairly cheap.

        Or maybe hold a contest with a prize for the solution...

        Perhaps post this in the programmers section - and someone might have the answer.

        Myself - if the code snippet isn't online somewhere findable by Google, or if it doesn't have a plugin, I'm at the end of my ability!
        {{ DiscussionBoard.errors[9320362].message }}
        • Profile picture of the author bwh1
          Originally Posted by Khadaji View Post

          I'm not a programmer - but it seems to me if you posted this on Elance or similar, and got some quotes, I think a good programmer would be able to whip up something fairly cheap.

          Or maybe hold a contest with a prize for the solution...

          Perhaps post this in the programmers section - and someone might have the answer.

          Myself - if the code snippet isn't online somewhere findable by Google, or if it doesn't have a plugin, I'm at the end of my ability!
          Will do this, post in the programmer forum here, thanks a lot
          G.
          Signature

          Affiliates Wanted! Make anywhere from 42,- to $72 in commissions. Simply Recommend the Best QuickBooks Pro Video Course available at Clickbank.

          {{ DiscussionBoard.errors[9320507].message }}
  • Profile picture of the author RobinInTexas
    You can create a custom page template and include that code or any other code you would like in the template. Instructions are here Page Templates
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[9320882].message }}
    • Profile picture of the author bwh1
      Originally Posted by RobinInTexas View Post

      You can create a custom page template and include that code or any other code you would like in the template. Instructions are here Page Templates
      I found a plugin which should let me embed any Javascript code into a page.

      Basically it will create a shortcode for my Javascript.

      Found this thanks to a Warrior in the Programming Forum.

      Will keep you guy's posted if it worked (or not).

      Thanks
      Signature

      Affiliates Wanted! Make anywhere from 42,- to $72 in commissions. Simply Recommend the Best QuickBooks Pro Video Course available at Clickbank.

      {{ DiscussionBoard.errors[9321830].message }}

Trending Topics