NiallASD
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Cannot find 'Theme Options' (using Mystile)Is there anyone out there?
Thank you questas, I’ll have a look at that and let you know if it helps!
Thanks for the reply.
I found out earlier today that it was a result of my server restricting outgoing connections – I’ll now mark this as resolved.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Multiple ThemesThank you!
Forum: Fixing WordPress
In reply to: Drop-Down Link Opens Inside Drop-Down ListI hope so, though I have yet to see if it works through multiple pages and can be easily updated.
I also don’t know what to do about it appearing in the top-left corner.
I’ll be away for the weekend so can’t resolve this just yet.
Forum: Fixing WordPress
In reply to: Drop-Down Link Opens Inside Drop-Down ListIt seems if I use paste the code from the PHP page into the plugin and refer to it via shortcode it works, though now I see the drop-list twice on the page (very top and in the intended place).
Forum: Fixing WordPress
In reply to: Drop-Down Link Opens Inside Drop-Down ListI’ve added the shortcode now along with the original directly below it.
Forum: Fixing WordPress
In reply to: Drop-Down Link Opens Inside Drop-Down ListI think the problem lies with me rather than the plugin, it seems to be well received by others and I can’t find any alternatives (other than TC Custom JavaScript, which also didn’t work).
I tried adding the iframe to the plugin as a HTML code block to the page in addition to the JavaScript (with tags as otherwise it just appears under <body>) and although it then appeared via shortcode on the page it was with the same problem. I can’t change it from iframe to anything else.
To recap here is my code.
JavaScript
<script> function JumpToIt(list) { var newPage = list.options[list.selectedIndex].value, location; if (newPage != "None") { location = newPage; } } </script>
HTML
<iframe src="https://www.greencastleparish.com/wordpress/wp-content/themes/greencastleparish/newssheetarchive.php" style="border: 0px #FFF none; float: right; clear: both;" name="newssheetarchive" scrolling="no" frameborder="1" marginheight="0px" marginwidth="0px" height="20px" width="213px"></iframe>
.php Page
<script> <!-- function JumpToIt(list) { var newPage = list.options[list.selectedIndex].value if (newPage != "None") { location=newPage } } //--> </script> <!-- archive list --> <div class="monthlist"> <form> <select name="select" onchange="parent.JumpToIt(this)"> <option value="None">Select a month from the archive</option> <option onclick="parent.newPage;" value="https://www.greencastleparish.com/wordpress/native-priests">April to June, 2015</option> <option value="https://www.nialldevlin.com/newssheetarchive/2015/january-march.php">January to March, 2015</option> <option value="https://www.nialldevlin.com/newssheetarchive/2014/october-december.php">October to December, 2014</option> <option value="https://www.nialldevlin.com/newssheetarchive/2014/july-september.php">July to September, 2014</option> <option value="https://www.nialldevlin.com/newssheetarchive/2014/april-june.php">April to June, 2014</option> </select> </form> </div> <!-- monthlist -->
Forum: Fixing WordPress
In reply to: Drop-Down Link Opens Inside Drop-Down ListStill nothing – the errors are gone, though it still says ‘Read ony’ at the following line.
location = newPage;
Forum: Fixing WordPress
In reply to: Drop-Down Link Opens Inside Drop-Down ListThat’s what I had at first which led to the code appearing under the <body> tag – doing so also give me these errors.
Forum: Fixing WordPress
In reply to: Drop-Down Link Opens Inside Drop-Down ListI had forgotten to add the <script> tags in the CSS & JavaScript Toolbox plugin – here’s a screenshot of the errors I now get with the tags added.
With the TC plugin I can only paste the JavaScript with no option as to where.
Forum: Fixing WordPress
In reply to: Drop-Down Link Opens Inside Drop-Down ListI’ve tried posting a reply here, but it doesn’t seem to be going through – sorry if it has multiple times.
Forum: Fixing WordPress
In reply to: Drop-Down Link Opens Inside Drop-Down ListI’ve tried following your instructions like so, but I guess I messed up somewhere along the way.
I installed and activated the TC Custom JavaScript plugin and adding the code below.
function JumpToIt(list) { var newPage = list.options[list.selectedIndex].value if (newPage != "None") { location=newPage } }
Along with this for the newssheetarchive.php page.
<script> <!-- function JumpToIt(list) { var newPage = list.options[list.selectedIndex].value if (newPage != "None") { location=newPage } } //--> </script> <!-- archive list --> <div class="monthlist"> <form> <select name="select" onchange="JumpToIt(this)"> <option value="None">Select a month from the archive</option> <option onclick="parent.newPage;" value="https://www.greencastleparish.com/wordpress/native-priests">April to June, 2015</option> </select> </form> </div> <!-- monthlist -->
And this on the WordPress page.
<iframe src="https://www.greencastleparish.com/wordpress/wp-content/themes/greencastleparish/newssheetarchive.php" style="border: 0px #FFF none; float: right; clear: both;" name="newssheetarchive" scrolling="no" frameborder="1" marginheight="0px" marginwidth="0px" height="20px" width="213px"></iframe>
I still get the same iFrame problem, I understand it’s because it’s an iframe that this is happening but everything else I’ve used causes the drop-down list to disappear entirely.
I also tried this plugin as an alternative to TC Custom JavaScript, but with no luck.
Thanks for the helping hand along the way.
Forum: Fixing WordPress
In reply to: Drop-Down Link Opens Inside Drop-Down ListNot losing money, but wanted to try my luck here first before resorting to hiring someone.
I can kind of see what you are saying about “location” being the issue, but I don’t know how to fix it. Is it a matter of changing the following JavaScript?
<script> <!-- function JumpToIt(list) { var newPage = list.options[list.selectedIndex].value if (newPage != "None") { location=newPage } } //--> </script> <!-- archive list -->
I have the same drop-down list working fine on this site, albeit the following differences:
> Not created in WordPress, but as .php pages with a
<?php include (
to the form
> JavaScript on the same page as the<?php include (
Thanks again Andrew.
Hope I’m not butchering any terminology.
Forum: Fixing WordPress
In reply to: Drop-Down Link Opens Inside Drop-Down ListI hope it’s OK to move this post to the top of the forum, my reason being that I’m in the UK and not many people may have been active when I made the last post 10 hours ago.