• Hi,
    On a new (old) site I am working on now, I get a strange behavior with the Child theme.
    Theme customize stopped to save the changes with the message to try again later,
    The theme editor not saving files with the message to try SFTP and now I am also cannot edit pages in Elementor – page is loading and nothing happens.
    I tried to disable plugins but nothing was changed until I activated Astra parent theme instead of Astra Child theme that was activated.
    Then all started to work fine.
    I tried to download a new child theme with your online child theme generator and when I upload it, it works at the beginning well but then again, same problems.
    Hosting is in Cloudways and I already contacted with them. They tried several ways without any solution and advice to contact Astra.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter webcart

    (@webcart)

    Hi,
    Looks like a jave script I am adding to functions.php file is causing this issue.
    Can you understand why?

    //////////////////////Customs code starts below////////////////////////////
    //BOF header scroll change
    ?>
    <script>
    window.onscroll = function() {scrollFunction()};
    
    function scrollFunction() {
      if (document.body.scrollTop > 50 || document.documentElement.scrollTop > 50) {
        document.getElementById("ast-desktop-header").style.background = "#000";
      } else {
        document.getElementById("ast-desktop-header").style.background = "transparent";
      }
    }
    </script>
    <?php
    //EOF header scroll change
    //

    Hi @webcart,

    We are sorry for the delay.

    If I read the description you described the issue, I would say it is clear that something on your child theme causes the issue. If you remove the code you shared with us in your last comment above then everything starts working, then obviously that code is the one that causes the issue.

    Since we cannot help you with a query related to custom code as it is beyond our support, I would suggest you contact the code provider to get help or let see if there’s someone in the community who can provide any insights.

    Kind regards,
    Herman 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Child theme problem’ is closed to new replies.