• Creator
    Topic
  • #20861

    Paulina Sierzputowska
    Spectator
    Been thanked: 0 times

    Hello,
    I am using alora theme on my client’s website. On one of the pages, I have a map with links and 2 additional dropdown menus that link to # divs using .target class. When clicked, it would show the hidden table on the page. All was working fine till the last update – since then the two dropdown menus are not working – the links on the map work fine, just not the dropdowns.
    You can check how it looks like here:
    http://stowarzyszeniestop.pl/stop/baza-trenerow/

    I tried to resolve this problem using Bootstrap classes like <button> or accordion, but that is not what I need here – the button would just open one part of the content, but not close it when you click another button, and accordion needs the button to be inside of the panel, while I need it outside, near the map.

    From what I found, the culprit is e.preventDefault(). I’m not that good with Javascript, so all my attempts to paste there what I found on the internet, failed… All I need is a simple code that I can put inside of the page content, that would enable default for this page only.

    Thanks in advance for any advice –
    Paulina

Viewing 7 replies - 1 through 7 (of 7 total)
Replies
  • Denzel Chia
    Moderator
    Post count: 2849
    Been thanked: 91 times
    #20866 |

    Hi,

    There is a javascript error on your site.
    Screenshot http://prntscr.com/8jo72b

    Any javascript error will also break other scripts.

    Please remove your added script or find out conflicting plugin, by removing one at a time.

    If you require assistance in adding custom script, Please contact us via our services page. https://theme4press.com/theme-customization-service/

    Thanks!

    Paulina Sierzputowska
    Spectator
    Post count: 3
    Been thanked: 0 times
    #20880 |

    Hi,
    thank you for your answer. The error was just another try to enable the default action that didn’t work. I removed this script already, so the problem remains unresolved – what was working in the previous alora version now won’t work. Is there a way to enable default on a single page, without changing alora’s javascript files, just by putting a script into wordpress page? And what should this script look like?

    Thanks again –
    Paulina

    Denzel Chia
    Moderator
    Post count: 2849
    Been thanked: 91 times
    #20881 |

    Hi,

    Sorry, I don’t understand.

    There is no javascript error now.
    And you menu is working properly. http://prntscr.com/8jov1v

    Where is the Alora feature that’s not working?

    To enter javascript to a page, you can enter it into WordPress content editor, text editor, not the visual editor.

    Thanks!

    Paulina Sierzputowska
    Spectator
    Post count: 3
    Been thanked: 0 times
    #20898 |

    Hello,
    I’m sorry, maybe I was not clear, I will try to explain it better. So, in the content of this page there is a map with links to regions and two additional dropdown menus: “Województwo” and “Certyfikaty”:
    http://prntscr.com/8jt7vy
    http://prntscr.com/8jt7yx

    The links on the map are the same as the ones in “Województwo” menu – they should open (on click change display from none to block with CSS) a div/table with the names from this region. “Certyfikaty” menu is similar – it should open a table with only I-st, II-nd or III-rd degree. The links from the map work fine, so they display the proper table, but the links from the dropdown menus don’t do anything.
    http://prntscr.com/8jt7xi

    The links are there, you can open them in new tab/window with the right mouse button, but they won’t display the table on the same page. Before the alora update both the links from the map and from the dropdown menus would do what they were suppose to. Now javascript from the main.js file is blocking them – this is this e.preventDefault() I mentioned in the beginning: line 6662, collapse data-api in the main.js. The problem is that I cannot just replace it in main.js with “return true;”, because it is affecting other pages. I need to block it only on this specific page, to enable default opening of the links on the same page.

    And there is no javascript error simply because there is no javascript in the page content- I removed the one I put there before, because it was not working… As I said, I tried to look for some solution/script on the forums, but most of them are changing the javascript file, and that I don’t want to do, because I don’t want to break other things in the process;) I don’t know javascript enough to be able to write the code on my own and would really appreciate your help with that…

    Thank you –
    Paulina

    Denzel Chia
    Moderator
    Post count: 2849
    Been thanked: 91 times
    #20903 |

    Hi,

    I don’t know javascript enough to be able to write the code on my own and would really appreciate your help with that…

    Sorry, I am just the support guy and do not have enough javascript knowledge to provide you a customized solution to your requirement. You should be able to see that all my replies on this forum are Custom CSS related.

    I suggest you contact us via our service page https://theme4press.com/theme-customization-service/ My employer will get his developer to provide you a customized solution.

    Thanks!
    Denzel

    Paulina Sierzputowska
    Spectator
    Post count: 3
    Been thanked: 0 times
    #21269 |

    Hello again,
    as you suggested, I contacted the theme customization service via service page. It was around 10 days ago, and I still didn’t get any feedback. I also tried to contact Theme4Press through the contact form, with the same result… How long do you usually wait for their answer? Is there anything more I could do on my side?

    Thank you –
    Paulina

    Denzel Chia
    Moderator
    Post count: 2849
    Been thanked: 91 times
    #21286 |

    Hi,

    Sorry, I have no idea why they are not responding to your request.

    You can post a notice on http://jobs.wordpress.net/ to hire a developer, it’s probably quicker this way.

    Thanks!
    Denzel

Viewing 7 replies - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.