Dimitri Vorontzov
Forum Replies Created
-
Thank you very much for the prompt reply @royho – this seems to have solved the issue! I appreciate it very much. There’s no way in the world I’d ever be able to spot that mistake! Thank you!
I am experiencing the problem with Stripe Payment Gateway fields unable to be filled in in Live mode (even though they were OK in test mode). I contacted Stripe and they assured me everything was done correctly. I also disabled the theme and every plugin – but the issue persists. I got in touch with customer support – but no response over the last few days. Here’s the website: tettogo.com/checkout @royho could you please help?
Found them in the ajax-event-calendar/ajax-event-calendar.php and commented out.
This seems to be a decent plugin, and I fully appreciate the importance of adding the necessary timezones and turning off magic quotes, but I can’t help thinking that displaying the demand for these things across the entire admin end is a bit obnoxious.
No. I had to use a separate page template for each page.
Obviously esmi –?but the jQuery scripts for that particular plugin don’t seem to work unless they are placed in the header, under wp_head(). If you have any suggestions on how to make them work, I would be grateful.
But alas, it does not.
Is there any way to add conditionals to the header directly, under
<?php wp_head(); ?>
?
I’m beginning to suspect that for some reason supersized script only works when added under wp_head directly to the header. If I absolutely had to add conditional statements in the header below
wp-head()
, how would I do that?OK, so I do NOT need to put that code in the header, because putting it in the functions.php puts in in the header, correct?
I do not see this code:
https://mysite.com/wp-content/themes/mytheme/js/somescript.js
but I do see this one when I check it:
https://mysite.com/wp-content/themes/mytheme/supersized/js/homescript.js
Am I supposed to see the first one, too?
Do I understand it correctly that I should place the main code in the functions.php file, and then also place this code in the header:
wp_register_script( 'homescript', get_bloginfo( 'template_directory' ). '/js/somescript.js',array('jquery')); wp_enqueue_script( 'homescript' );
Here’s what I have in the header:
[Code moderated as per the Forum Rules. Please use the pastebin]
After I cut and paste into functions.php file the snippet of code that you suggested, I edit the directory paths in it to point to /supersized/js/homescript,js and to /supersized/js/defaultscript.js correspondingly.
I then remove this code from the header:
<!--ADD SUPERSIZED jQUERY SCRIPT--> <script type="text/javascript"> jQuery(document).ready(function($) { $.supersized({ //Background image slides : [ { image : '/supersized/backgrounds/bg.jpg' } ] }); }); </script>
— save everything, and reload the page. And voila! – the background image is gone.
Help please?
Forum: Themes and Templates
In reply to: Styling Submenu Elements Depending on the Parent: TwentyTenI figured it out with quite a bit of help from Matt Gibson Answering my own question, just in case someone stumbles on this post trying to solve a similar issue.
You can add a class to a menu item. Go to Screen Options tab of the Menus page, select the CSS Class checkbox, and add the class to the desired menu.
Curiously, classes are added to top level menu items in WordPress differently from how they’re added to the lower level items. At the top level, classes are added to the
<a>
tag, whereas at the lower levels (submenu, sub-submenu etc.) they are added to the<li>
tag. A bit illogical, but that’s how it is.
If you want to make all the submenus a certain width (for example, 400px) you have to add the same class to each of them, and then write this in your css file:#access ul ul li.someclass > a { width:400px; }
Nope. ??
Thank you for your effort keesiemeijer.
I double-checked all the directories and custom JS files. All correct, all works if added directly to the header, nothing works if added as conditionals to the functions.php.
I would appreciate more ideas from you.
This seems to be a correct script, keesiemeijer – thank you very much for writing the example – but unfortunately it doesn’t work. I’m not quite sure why because the scripts are all in the correct directories and they work if placed in the header. Somehow this code doesn’t invoke them properly. Do you know what may be the issue? Does it depend on the location of the script in the functions.php file?
Anybody?
No one really knows the answer?
Forum: Requests and Feedback
In reply to: Disable Comments for Page OptionGreat idea! Thank you Ipstenu.
I never realized mere mortals can create their own trac tickets.