• Hello,
    my Sydney Child-Theme does not show the back to top button on scroll. And this causes a jquery error, that ‘a is undefined’, because there is no element with the go-top class attached to it. I have not overridden any template files in my child-theme.
    The site is still hosted on a local server, so I cannot provide any link for you. But maybe there is something I still have to adjust.

    Sydney Theme version is 1.77

    I hope you can help me with this problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Perhaps there is an issue with your child theme.

    Can you share your child theme to a file hosting services like Google Drive in public access mode and link it here, so I can check?

    Regards,
    Kharis

    Thread Starter mschwarz6

    (@mschwarz6)

    Hi,

    thank you for your reply.
    I don’t have much in my Child-Theme Data…. pretty much only the code that is neccessary. No real need for a file-hosting.

    sidney-child/styles.css:

    /*
    Theme Name: Sydney Child
    Theme URI: https://athemes.com/theme/sydney
    Author: aThemes
    Author URI: https://athemes.com
    Template: sydney
    Version: 1.0
    License: GNU General Public License v2 or later
    License URI: https://www.gnu.org/licenses/gpl-2.0.html
    Text Domain: sydney
    */

    sidney-child/functions.php:

    <?php
    /**
    * Sydney child functions
    *
    */

    /**
    * Enqueues the parent stylesheet. Do not remove this function.
    *
    */
    add_action( ‘wp_enqueue_scripts’, ‘sydney_child_enqueue’ );
    function sydney_child_enqueue() {

    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    }

    Thats it…

    When I create an empty element and give this element the classes .go-top
    and .preloader the Error disappears, since the js file:

    /wp-content/themes/sydney/js/functions.min.js?ver=20210120:1

    finds these Elements.

    Maybe this helps a little bit.

    Thank you for your time.

    Regards,

    Malte

    Hi Malte,

    Thank you for sharing. I didn’t see any trouble with it and it shouldn’t break the go-to-top button. I believe it could be something else. Can you share a link to your website here when it goes live?

    Regards,
    Kharis

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Go to top Button not visible’ is closed to new replies.