Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #249418

    Hi.
    I created an accordian/toggle on a Enfold page and saved it as a template so that I could just import it on my product pages instead of re-creating it over and over. I do plan on removing some of the toggles depending on which product page it is on, but by using the template, I don’t have to recreate it entirely with every product.

    The only problem I realized is the Avia template import isn’t available on the product pages. So I’m not able to import the accordian I created into the product short description section. I know I can use the shortcode on the product pages and create a new accordian, but I can’t import all the info from my template accordian.

    I also thought about just copying the accoridan code over to the product page, but when I switch to the Default editor, it doesn’t show anything–the accordian I created disappears, even though when I switch back to the Avia layout it is still there.

    What do you recommend? I would prefer to not have to mess with the raw code, as it can get complicated, but if that’s my only option I will. It would be best if I could somehow import my template accordian directly into my product page.
    Here is the accordian I want to copy to the product pages: http://outtagear.com/sample/

    Thanks!

    #249419
    This reply has been marked as private.
    #249551

    Hi!

    Thank you for using the theme!

    Please switch your theme to debug mode. Edit function.php, find this code:

    if(isset($avia_config['use_child_theme_functions_only'])) return;
    

    Below, add this code:

    //set builder mode to debug
    add_action('avia_builder_mode', "builder_set_debug");
    function builder_set_debug()
    {
    return "debug";
    }

    You will be able to see the actual shortcode below the builder. You can now copy the accordion shortcode to your product items.

    Regards,
    Ismael

    #249572

    Hi Ismael
    I followed your instructions and now my site is totally unresponsive, on the backend and the store front??? Here’s what I did. I went to WooCommerce > Settings > Tools (I think that is where it is, I’m writing from memory) and checked the box to put it in debugging mode. Then I went to the functions.php file and added the code and pushed save. Then the page just went to a blank screen, and every other page is the same. Even the store front is a blank screen.
    Help!!!

    #249578

    Ok, I had to go into my FTP client and open the funtions.php file and remove the code you gave me. My site has returned. :)
    What now? Is there a way to handle my original question that won’t break my site ;)
    Thanks

    #250458

    Hi!

    You may have not pasted in the code correctly and caused a php error. The snippet should be added in exactly as it appears here: http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/

    A single missing bracket will cause the functions.php file not to be able to run.

    Regards,
    Devin

    #250478

    HI Devin
    Thankfully, I was able to figure out what went wrong, even though I’m not a programmer, since its taken 2 days for anyone to respond to me. I understand you guys probaby have tons of issues coming at you, but it was a little scary to have my site down for 45 mins and no way to flag a message as “urgent” to you (that would be a nice addition to the forum btw).

    The reason the site went down was that instead of pasting the text under the if(isset . . . line of code in the functions.php in the enfold theme that Ismael gave me (which totally broke my site), I inserted it into a functions.php file of my child enfold theme (even though there’s no if(isset. . . line of code) and I was able to see the code of the avia layout builder which is what I was after.

    #250668

    Hmm, it should actually work in both. The child theme functions.php has no difference as long as you have the initial opening php tag.

    If you download the big download from your downloads on themeforest I included a child theme in that package which has some commented out functions that I included when creating client sites using Enfold and we recommend often.

    Glad its working for you now and if you do have an issue you can make a new topic with URGENT in the title and we should pick it up quickly. With how crazy busy we have been lately we look at both the “start” of our queue (oldest posts) and the “end” (newest posts) in turn.

    #250687

    Hi!

    In addition to this topic, I insist to paste the debug function below the code that I mentioned above because sometimes it doesn’t work when I put it at the very bottom of functions.php which is weird. Glad it is working now. I hope it helps with your problem.

    I forgot to give you a link on the documentation which is way more comprehensive and with much more details. Noted. :)

    Cheers!
    Ismael

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Using Accordian Template on Product Pages’ is closed to new replies.