| | #1 | |
| You can call me"easycash" War Room Member Join Date: 2007 Location: sunny Brazil
Posts: 2,410
Thanks: 642
Thanked 745 Times in 550 Posts
Blog Entries: 3 |
Hey guy's this is my last resource before I give up. Can you please take a look at this and tell me how to resolve it so that one of both codes will work in a WP PAGE (not sidebar widget or post)
I tried WP plugins, no success as all have some poblems or work in the sidebar only or popup only once as for list building etc. Many thanks if I can get some help from someone which knows the fix. G. P.S. I thought that WP 3.9 got smarter to accept code like this, but guess I'm wrong. | |
|
Affiliates Wanted! Make anywhere from 42,- to $72 in commissions. Simply Recommend the Best QuickBooks Pro Video Course available at Clickbank.
| ||
| |
| | #2 |
| Active Warrior Join Date: 2014 Location: UK [North Yorkshire]
Posts: 59
Thanks: 0
Thanked 9 Times in 9 Posts
|
Where are you entering the script? In the page editor? How does the page render and what HTML is generated? I may be barking up the wrong tree here but would https://wordpress.org/plugins/simple-embed-code/ help? I be never tried it , as I try to have all my JavaScript in a separate Js file rather then embedding it in the main page body |
| |
| | #3 | |
| You can call me"easycash" War Room Member Join Date: 2007 Location: sunny Brazil
Posts: 2,410
Thanks: 642
Thanked 745 Times in 550 Posts
Blog Entries: 3 |
The first one with the button doesn't look any different after I saved it but the button does anything at all when clicked. He appears nicely as it should but there is no link linked to the click (hope that makes sense). The second one, the Java code, get simply cut off when saving. I looked for a plugin which let me use Javascript, but there is non to use it inside a page, in the middle somewhere as I need it. I never used the plugin you menitoned, will take a look at it if that could help me out. Many thanks for your help G. | |
|
Affiliates Wanted! Make anywhere from 42,- to $72 in commissions. Simply Recommend the Best QuickBooks Pro Video Course available at Clickbank.
| ||
| |
| | #4 |
| Active Warrior Join Date: 2014 Location: UK [North Yorkshire]
Posts: 59
Thanks: 0
Thanked 9 Times in 9 Posts
|
I just tried the code that you posted and it worked OK (I did change URL). Tried it on FireFox and the latest Chrome looking at a local website running WordPress 3.8.. Do you have the URL of the page that isn't working?
|
| |
| | #5 |
| Active Warrior Join Date: 2014 Location: Hampshire, UK
Posts: 33
Thanks: 8
Thanked 18 Times in 11 Posts
|
I have tried the code in isolation and it does work but here are the things I noticed that are wrong with it. 1) there should be no space between parameters in your window.open function. i.e. window.open("http://qbuniversity.org/video-overview/", "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400"); Should be window.open("http://qbuniversity.org/video-overview/","_blank","toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400"); Internet Explorer will have problems if there are spaces. 2) Use a suitable function name myFunction helps no one. Also you use two scripts to do the same thing. Rename the popup to something useful like popupVideoOverview() Then just reference the function in both links. 3) In the img javascript there is no such parameter as copyHistory. 4) The img you link to is not a valid URL, you need the image full src. 5) The page you link to is full of errors to. Regarding it not working in wordpress when you enter the javascript try putting in a XML parser exclude tag. like this.. <script>// <![CDATA[ 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> Let us know if that helps |
| | |
| |
| The Following User Says Thank You to littleCowCoding For This Useful Post: |
| | #6 |
| You can call me"easycash" War Room Member Join Date: 2007 Location: sunny Brazil
Posts: 2,410
Thanks: 642
Thanked 745 Times in 550 Posts
Blog Entries: 3 |
Hey, thanks guys I took the code off the page (it didn't worked so why leaving it there) I'm very happy for your help, will see to squeeze some time to try those tips. Have a bit a stressy week so don't know if I can do it but as soon as I can I will let you know. G. |
|
Affiliates Wanted! Make anywhere from 42,- to $72 in commissions. Simply Recommend the Best QuickBooks Pro Video Course available at Clickbank.
| |
| |
| | #7 | |
| You can call me"easycash" War Room Member Join Date: 2007 Location: sunny Brazil
Posts: 2,410
Thanks: 642
Thanked 745 Times in 550 Posts
Blog Entries: 3 |
![]() I'm running WP 3.9 and the theme is ProfitsTheme, but that shouldn't make any difference. G. | |
|
Affiliates Wanted! Make anywhere from 42,- to $72 in commissions. Simply Recommend the Best QuickBooks Pro Video Course available at Clickbank.
| ||
| |
| | #8 |
| Active Warrior Join Date: 2014 Location: UK [North Yorkshire]
Posts: 59
Thanks: 0
Thanked 9 Times in 9 Posts
| |
| |
| | #9 |
| Senior Warrior Member War Room Member Join Date: 2010 Location: USA, Europe
Posts: 1,163
Thanks: 57
Thanked 266 Times in 213 Posts
|
Just write a custom page template. Something like this is really, really easy to do. |
| FAQ: Need a Site5/Arvixe/Hostgator alternative? And who is EIG? Reviews: Need a good VPS, dedicated server, or unlimited host? (This is NOT a fake "top 10" list!) | |
| |
| | #10 |
| HC STUDIOS War Room Member Join Date: 2005 Location: India
Posts: 68
Thanks: 85
Thanked 5 Times in 5 Posts
|
Hi bwh1, I suggest not to take off the code as it didn't work. We can sort out the issue. If you need help please do not hesitate PM me. I will try to help you. Cheers Dhana |
| | |
| |
|
| Bookmarks |
| Tags |
| make, post, pro, work |
| |