Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #328083

    Hi everyone,

    I have just one little question. I found your code changes to get the video loop in the colour section off. It works fine :) But the changes will not work, if I use the section.php with my child theme. To be honest I am not very common with that… I have this structure: enfold-child/config-templatebuilder/avia-shortcodes/section.php. It doesn’t work. When I put the section.php direct to enfold-child it does also not work. What is the mistake?
    Thank you for helping me :)
    Sophie

    #328127

    Hi Sophieja23!

    You need to add a function in your child theme to tell the parent there is are custom shortcodes. WordPress doesn’t “see” that folder structure with a child theme otherwise.

    This starter child theme I have on github shows an example: https://github.com/DevinVinson/enfold-child-starter

    This function is in the functions.php file http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    and the shortcodes folder is where you’ll put your replacement section.php.

    Cheers!
    Devin

    #328162

    Puh… something went wrong:

    I get this error:

    Fatal error: Cannot redeclare avia_new_section() (previously declared in /home/www/erfolgswelt24com/wp-content/themes/Enfold-Child/shortcodes/section.php:411) in /home/www/erfolgswelt24com/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/section.php on line 514

    Thanking you for being so patient :)
    Sophie

    #328171

    Are you using Enfold 3.0, if so did you edit the new section.php and copy it to the child theme?

    #328180

    Hi, thank you. I didn’t use Enfold 3.0 but I updated it and now it works :)

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘section.php in child theme’ is closed to new replies.