• Resolved abledragon

    (@abledragon)


    Hi Phil,

    I’m using Accordian shortcodes with WooCommerce and I cannot get anything to work. Here are the short codes I’m using:

    [accordion openfirst=”false” clicktoclose=”true”]
    [accordion-item title=”DESCRIPTION” state=”closed”]
    Content here
    [/accordian-item]
    [/accordian]

    I have been through all the documentation, tried adding define(‘AS_COMPATIBILITY’, true); to the wp_config, and manually adding the as- to the shortcodes above, checked that the wp_footer() function is there, and none of that works. The page opens with all content displaid and clicking the title has no effect.

    I want the headers to appear when the page loads but with the content closed, to be opened on a click and closed again on a click

    Can you let me know what I should be doing to get this working?

    Many thanks!

    Martin.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    Hi Martin,

    Is it possible to see a link of the page so I can take a closer look?

    Plugin Author philbuchanan

    (@philbuchanan)

    Could you also try using this block and see if it works?

    [accordion openfirst="false" clicktoclose="false"]
    [accordion-item title="DESCRIPTION" state="closed"]
    Content Here
    [/accordion-item]
    [/accordion]
    Thread Starter abledragon

    (@abledragon)

    Hi Phil,

    I tried the code block you suggested but it made no difference.

    The page concerned is: http://misscogirl.com/product/prism-backpack-blk/

    Cheers,

    Martin.

    Plugin Author philbuchanan

    (@philbuchanan)

    I took a look at the site. It looks like the script file is never getting executed. I see a couple of errors in the developer console related to the http://misscogirl.com/wp-content/themes/storesmart/ui/ui.js file of your theme. I’m not sure, but it might be a conflict with the theme. Is it possible to test with another theme (maybe the default Twenty Sixteen) and let me know if that works?

    Thread Starter abledragon

    (@abledragon)

    Hi Phil,

    I tested it with twentyfifteen (twentysixteen is not installed) but the problem still exists.

    If you’re able to suggest how I might correct the error in that .js file, might that fix the problem..?

    Cheers,

    Martin.

    Plugin Author philbuchanan

    (@philbuchanan)

    If I manually try activating the plugin through the console it seems to work. (I added jQuery('#accordion-1').accordionShortcodes([{"id":"accordion-1","autoClose":true,"openFirst":false,"openAll":false,"clickToClose":true,"scroll":false}]); to the console and everything started working).

    I took a look at the file and I’m not really sure what is causing the error. It is showing at line 11763 of that JavaScript file though. I’d suggest contacting the developer of the theme and seeing if they can assist.

    Thread Starter abledragon

    (@abledragon)

    Hi Phil,

    Apologies for the late reply, I’m travelling at the moment.

    No worries, I’ll try the theme vendor and see what they come up with.

    Cheers,

    Martin.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Short Codes Not Working with WooCommerce’ is closed to new replies.