• Resolved skipper0802

    (@skipper0802)


    Why is it that when I have a functions.php file loaded to the child theme folder I cannot logon? Doesn’t the child functions.php file run after the parent file? (Tested with the Jigoshop plugin activated and deactivated when this happens.) After I click the login button the action hangs as in this screen pic.

    Our website.

    This child theme folder’s functions.php file hook are supposed to help us wrap the Jigoshop v1.2.3 cart in our Creativix theme. In this file I’ve been trying to locate the correct div IDs to wrap the cart per the threads elsewhere. Here’s the Jigoshop system info.

    When I remove the file from the child folder, I can logon with no problem.

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter skipper0802

    (@skipper0802)

    For now I just manually appended the code lines (hooks) to wrap Jigoshop in the Creativix theme. (No problems noted with login.)

    This is not the solution I wanted as the next time I update the parent theme I’ll have to remember to append the code lines again. That is, until I can determine why having the above particular child functions file in the child theme folder causes the issue with the login.

    My theory is that since the child theme functions.php file runs before the parent file, and that the child functions.php file is not a complete functions.php file; it breaks the login process. The evidence is anecdotal at this point. I’m not a strong-enough PHP coder to trace/trap the error.

    I’ll mark this as resolved until more can be understood about this.

    Thanks to all,
    Eric

    Thread Starter skipper0802

    (@skipper0802)

    The divs are opened in header.php and closed in footer.php of your parent theme.
    You can copy both files to your child theme and add your necessary divs and classes. The child theme files will replace the parent files so you can update the parent theme and retain your changes in the child theme.

    Editing functions.php is the long way around for your purpose. You could also make a single-page.php and call a different header and footer for your divs.
    I guess you’ve seen this page.
    https://codex.www.ads-software.com/Theme_Development

    I followed some advice from this post https://www.ads-software.com/support/topic/functionsphp-on-twentyten-child-theme-causes-blank-pages-mu-setup?replies=24 and removed any returns after the closing PHP tag. This fixed the problem. That finicky PHP…

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Whitescreen WP Login with Child Theme functions.php file’ is closed to new replies.