• Hi there,

    While in customizer, I can’t seem to click any links I have, even clicking post titles doesn’t take you to posts.

    This is the error I see in the console:
    Uncaught TypeError: $(…).sharrre is not a function

    When I disable the plugin, everything works fine.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, @minachu!

    First, it would be worth reinstalling Simple Share to make sure all files are present and that you’re running 1.1.1.

    If that does not fix things, it sounds like the sharrre JavaScript library is not being enqueued in the Customizer. It’s possible that minification or other performance plugins could cause this. If you disable other plugins, does Simple Share then work for you?

    If you still see the issue with other plugins disabled, please could you file a support ticket at https://my.studiopress.com/help/ and be sure to include a link to your site? We’d be happy to take a closer look for you.

    Thread Starter minachu

    (@minachu)

    Hi Nick,

    Thank you for the reply, I did what you said, I even installed the plugin on a new blog using the Genesis Sample theme, but the issue still persists.

    Please note that it only happens when I use a code like this one:

    // Reposition the Genesis Simple Share buttons
    add_action( 'genesis_entry_footer', 'bg_reposition_simple_share', 1 );
    function bg_reposition_simple_share() {
            if( 'post' === get_post_type() && is_single() ) {
                global $Genesis_Simple_Share;
                echo '<div class="share-buttons"><h3 class="share-title">' . __( 'Share this post', 'theme-name' ) . '</h3>';
                genesis_share_icon_output( 'after-entry', $Genesis_Simple_Share->icons );
                echo '</div>';
            }
    }

    And I skipped selecting a display position. I have no other plugins, and version is 1.1.1

    I’ll be sending a support ticket shortly.
    Thank you for your time.

    • This reply was modified 7 years, 4 months ago by minachu.
    • This reply was modified 7 years, 4 months ago by minachu.

    Hey Minachu – did you ever get this worked out? I’m having the exact same issue and cannot find a solution.

    Thread Starter minachu

    (@minachu)

    Hey Pmcgilvray!

    Unfortunately I couldn’t find a proper solution so I opted to excluding the share buttons from the customizer by using this:

    if (!is_customize_preview()) {
    ...
    }
    

    Like this:

    
    // Reposition the Genesis Simple Share buttons
    function bg_reposition_simple_share() {
        if (!is_customize_preview()) {
            if( 'post' === get_post_type() && is_single() ) {
                global $Genesis_Simple_Share;
                echo '<div class="share-buttons"><h3 class="share-title">' . __( 'Share this post', 'theme-name' ) . '</h3>';
                genesis_share_icon_output( 'after-entry', $Genesis_Simple_Share->icons );
                echo '</div>';
            }
        }
    }
    

    Hope this helped! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Causing errors in the customizer’ is closed to new replies.