Posted: March 31, 2015 at 6:36 pm
|
On the registration-checkout page, each question group is just a bit to the right of the previous one. Just enough to be annoying.. I wondered if this was the theme at work, but it’s happened with both. Is it the ee-reg-form-qstn-grp-dv CSS padding at work? EE 4.6.18.p WP 4.1.1 |
Hi Ian, can you post a link to any event so we can inspect the registration checkout page? Thanks — |
|
|
It sounds like incorrect HTML nesting content, but that should not happen with a default installation. Can you provide a link to an example please? Have you made any modifications to core files or template files? |
|
redacted – Event Espresso support team – LOC I’ve used the current theme’s files to make the ‘lt-grey-text’ in particular darker: .lt-grey-text { color : #000000; } .. but no other CSS changes. There’s a copy of the current ticket_selector_chart.template.php in uploads/espresso/templates/ with a couple of changes (width of ‘price’ column in the ticket selector, ‘select’ rather than ‘Qty*’, commenting out the “Please note that a maximum number of %d tickets can be purchased for this event per order” bit) but those are the ticket selector page, not this one. |
Hi, your address question group appears within the div for the personal question group. The shift is caused by this being applied twice when they are nested like that: .ee-reg-form-qstn-grp-dv { They should not be nested: http://cl.ly/image/2S0L0x3a3Y0d The ticket editor changes would not cause this. Any customizations to the registration checkout templates? — |
|
Hi Ian, It is the padding, but not at the same time. What’s happening is for some reason all of you question groups are being output within the previous question group. So Personal Info opens a div, then before it closes, the next question group opens its div, then before that close the next and so on. So as each new question group is added its adds the padding again which is why the groups move over. However this doesn’t happen with a default installing using twentyfourteen, so I suspect this is either your sites theme or due to customisations made to one of the template files. Are you using any of the child theme files from the EE Arabica theme that’s included within Event Espresso? Or loading your own versions of the templates anywhere else? |
|
|
Thanks. The theme is Simple Style by fimply.de and downloaded from the wordpress.org repository. It was previously doing it with Decode from there too and it happens if I use Twenty Fifteen. No, I don’t think I’ve touched any except the one I’ve mentioned which I think just controls the previous page. Do you want to ask about any in particular, and I can do an MD5sum of it? |
|
I’ve edited a couple of the questions (the text for the ‘first name’ now asks for someone’s ‘preferred name’ for example) but I don’t think I’ve touched the template for this page or the default CSS one. MD5s: 790550b1be4d0d9d0db8a0a3f0cf229b modules/single_page_checkout/css/single_page_checkout.css 080f451b4b17824ed1d58efd0ff2838f core/templates/global_assets/css/espresso_default.css 33fc97d89e0b62e46c58539dc168fd0c modules/single_page_checkout/EED_Single_Page_Checkout.module.php |
|
(Yep, those match the MD5s of a freshly downloaded copy.) |
Hi, you mentioned that this happens with multiple themes. Could you try deactivating and removing Event Espresso and re-installing a new copy? — |
|
|
A look at the source of the page shows 87 ‘<div ‘s and 84 ‘</div’s. My editor isn’t up to matching them as easily as it might be, but there are three question groups in there and 87-84 = 3. The ticket selection page has a matching number of them… is it possible something’s not outputting the closing div for a question group? |
|
Erm, I’d really rather not do an deactivate, delete and re-install at this stage – we’re just about to open bookings to real people. |
|
Ah, I do have the new ‘Show Ticket Sale Info?’ option (thanks for that) set to ‘no’ – does that have any impact on anything? Interestingly, looking at the source, each of the questions on each of the question groups has one more tab character at the start of the line than the previous one. |
|
Hi, I tested the theme with EE4.6.1 and it didn’t do this (screenshot http://take.ms/iTGte). This suggests it’s something else that is causing this, either a modification or some sort of conflict. It does like like a closing div is missing, that was definitely my first thought, but then it should show up on my test site and with other themes too, but it isn’t. While I know the timing is not quite right, I would suggest testing with another theme (use the Theme Test Drive plugin, that way your customers will never know the difference). Also you could try deactivating all other plugins except EE to see if it’s a plugin conflict somehow. |
|
I’ve done a new install on another site using the same theme, and yes it’s fine on that (although don’t have all the options quite the same on it yet. I needed to add another question group anyway. Once that’s done, the page now has four question groups: 88 opening div’s, and 85 closing ones. So what else are there three of on the page? |
|
Ah ha! It’s the radio buttons questions. That comes from looking at the page’s source, but if I add a radio button question to the previously fine test site, we get the drifting effect. Source of a typical question:
Source of a radio button question:
.. spot the missing closing /div! And, by no coincidence, there are three radio button questions on the page. The comments in the source helped a lot in spotting this… |
|
Note that the default questions on a new install don’t include a radio buttons question 🙂 A few greps on the plugin’s files suggests that either core/libraries/form_sections/strategies/display/EE_Radio_Button_Display_Strategy.strategy.php doesn’t set up the clear-float properly (unlikely that EEH_HTML::div fails just for that) or whatever does the radio button question section doesn’t do a final /div. (The other thing that helped was using the better-than-the-other-editor-at-matching-opening-and-closing-tags, Atom, to look at the source.) |
Great troubleshooting here Ian! I was able to duplicate the issue and I’ve created a bug ticket so we can have that fixed: http://cl.ly/image/2J122l3z1o2N — |
|
|
Now fixed in 4.6.20 – thank you! |
The support post ‘EE4 registration-checkout page – question groups drift to the right’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.