• Resolved AJ Don

    (@cultural-keys)


    Hi Devs. So I think maybe, perhaps, I’ve found another small conflict?

    I was trying to use shortcode on one of my SEP event listings. It didn’t work, so I assumed it was that particular plugin. But then I tried different shortcode, but that didn’t work either.

    All those shortcodes, all by different plugins, work fine on other pages. Just not SEP pages.

    If you take a look at the page I’ve linked, and scroll down to “CLICK TO SHOW EVENT ENQUIRY FORM”, nothing happens when you click. The form is there, but it is being run as 0px long, so it’s just not coming up.

    If you guys have another miracle solve for the problem, it would be awesome! Thanks in advance, of course. ??

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi @cultural-keys,

    We have checked the link you provided and i cant be able to inspect that page.
    It might be possible that your installed plugins or theme are conflicting with SEP. For testing purpose, please deactivate all of plugins except SEP, switch your theme to any Twenty theme and then see this issue. Let us know if the problem still persists.

    Regards,

    Thread Starter AJ Don

    (@cultural-keys)

    Hi guys, sorry it’s taken me so long to get back to you!

    So I did as requested, deactivated all plugins except the Shortcode Plugin (Shortcodes Ultimate) and SEP, and I’m using the 22 Theme. As before, the shortcode doesn’t work on SEP pages, as seen here;

    https://www.culturalkeys.cn/events/the-chinese-zodiac-presentation/

    But works on all other pages, as seen here;

    https://www.culturalkeys.cn/2020/05/01/events-and-offers-in-may/

    As all plugins are deactivated, you can now take a look at the page and right click to inspect. If you see anything I could fix, or if there is other fixes that SEP can supply, I’d be very grateful. ??

    Hello @cultural-keys,

    I have checked the event page and i have noticed a jQuery error in console. SEP jQuery is having conflict with Theme jQuery.
    Can you please activate the Twenty Sixteen theme and see this issue get fix or not. Let us know if it still has problem.

    Regards,

    • This reply was modified 4 years, 6 months ago by Ammar Younas.
    Thread Starter AJ Don

    (@cultural-keys)

    Yes, you’re correct! Once I tried 2016, the shortcode worked. Switching back to 2017 (which is what I was using previously) the shortcode no longer works on SEP.

    Is there a way to fix this? I really don’t want to have to change my theme, as my whole site is built around Twenty Seventeen.

    Any thoughts appreciated!

    Hello @cultural-keys,

    We have added this issue in our pipeline and we will fix this issue in our next release and will make this plugin compatible with all themes.
    Meanwhile if its urgent then you can take help from a WordPress expert to fix this issue for you.

    Regards,

    Thread Starter AJ Don

    (@cultural-keys)

    OK, thanks for letting me know. I look forward to the next update!

    Hi there,

    You are welcome.
    We hope this clarifies your concern.

    Regards,

    Hello @cultural-keys,
    Hope you are well.

    This issue is from the twenty seventeen theme. There is a bug in twenty seventeen theme due to which the error in jQuery is not allowing you to add a shortcode on event page. Hopefully they will fix this issue in their next release. So for now please add the below code at the end of the functions.php file of your twenty seventeen theme.

    
    function add_body_class($classes) {
        $classes = (array) $classes;
        $classes[] = sanitize_title(wp_get_theme());
    
        if (is_sep()) {
            $classes[] = 'twentyseventeen-front-page';
        }
        return array_unique($classes);
    }
    
    add_filter('body_class', 'add_body_class');
    

    Please let us know if your issue is resolved with this.

    Regards,

    • This reply was modified 4 years, 6 months ago by Ammar Younas.
    Thread Starter AJ Don

    (@cultural-keys)

    Thanks guys! Actually, it’s very funny. I used the code you gave me, and it worked, but it actually bad the page more broken! But after I removed the code, it was OK again, and the shortcode was still working! Not sure what happened, or why fixed now, but all good. So thanks!

    Hi there,

    You are welcome. We are happy to know that your issue is resolved.
    If you still face any issue in future, do let us know.
    We will be glad to help you.

    Regards

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘More strangeness – SEP effecting shortcode?’ is closed to new replies.