Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author wpshopmart

    (@wpshopmart)

    Actually tabs plugin is conflict with another plugins.

    Please try to deactivate others plugin one by one and then let me know which one is conflict with it.

    Thanks

    Thread Starter drtricia

    (@drtricia)

    Okay, it seems like it’s a compatibility problem with the theme. I deactivated all of the plugins one by one with no difference. Then I switched themes (tried Twenty Sixteen). It worked fine with the Twenty Sixteen but scrolls to the top with UDesign. My site is built with UDesign, version 2.10.6. Both the theme and all plugins are up-to-date.

    Plugin Author wpshopmart

    (@wpshopmart)

    Hi, Udesign is a premium theme or it’s a free theme?

    Thread Starter drtricia

    (@drtricia)

    It’s a premium theme.

    Plugin Author wpshopmart

    (@wpshopmart)

    Hello drtricia,

    This theme is not available in my collection, SO can you provide me theme package. I will test it on my server with tabs then let you the solution.

    Here i my gmail id – wpshopmart[at]gmail[dot]com

    Thanks

    Thread Starter drtricia

    (@drtricia)

    Just sent an email to you. It will be coming from Dr Tricia….
    Let me know if you have any problems receiving or obtaining the files you need.

    Thank you so much.

    Plugin Author wpshopmart

    (@wpshopmart)

    Thanks , i will let you know very soon.

    Thread Starter drtricia

    (@drtricia)

    Thank you! Looking forward to hearing what you find out.

    Plugin Author wpshopmart

    (@wpshopmart)

    SOrry for late reply.

    I have found one solution, please follow my steps here-

    Step-1 : open your plugin directory and then open tabs-responsive plugin folder

    Step-2: Now follow this path ink -> install, in install folder you will see a file name is installation.php open it on any editor.

    Step-3: Finally add below code in this file(installation.php) after line no. 5 —

    function wpsm_dequeue_script() {
    	global $wp_query;
        $Posts = $wp_query->posts;
        $Pattern = get_shortcode_regex();
    
        foreach ($Posts as $Post) {
            if( preg_match_all( '/'. $Pattern .'/s', $Post->post_content, $Matches ) && array_key_exists( 2, $Matches ) && in_array( 'TABS_R', $Matches[2] ) ) {
                 wp_dequeue_script('superfish-menu');
    
        break;
            } //end of if
        } //end of foreach
    }
    add_action( 'wp_print_scripts', 'wpsm_dequeue_script', 1 );

    Save your code and then check your tab page.

    Let me know after try this procedure.

    Thanks

    Plugin Author wpshopmart

    (@wpshopmart)

    One small update add this code in installation.php not previews provided code-

    if(!is_admin()){
    function wpsm_dequeue_script() {
    	global $wp_query;
        $Posts = $wp_query->posts;
        $Pattern = get_shortcode_regex();
    
        foreach ($Posts as $Post) {
            if( preg_match_all( '/'. $Pattern .'/s', $Post->post_content, $Matches ) && array_key_exists( 2, $Matches ) && in_array( 'TABS_R', $Matches[2] ) ) {
                 wp_dequeue_script('superfish-menu');
    
        break;
            } //end of if
        } //end of foreach
    }
    add_action( 'wp_print_scripts', 'wpsm_dequeue_script', 1 );
    }
    Thread Starter drtricia

    (@drtricia)

    Thanks for working on this. Okay, I’m not seeing a change. And I get this a warning that says this
    “Warning: Invalid argument supplied for foreach() in /home4/drtricia/public_html/drtriciagroff.net/wp-content/plugins/tabs-responsive/ink/install/installation.php on line 12” when I go to the admin login for my website.

    I cut and pasted the second code you provided under line 5. Below is what I have, including the very beginning and then several lines after the new code insert.

    <?php
    add_action(‘plugins_loaded’, ‘wpsm_tabs_r_tr’);
    function wpsm_tabs_r_tr() {
    load_plugin_textdomain( wpshopmart_tabs_r_text_domain, FALSE, dirname( plugin_basename(__FILE__)).’/languages/’ );
    }
    if(!is_admin()){
    function wpsm_dequeue_script() {
    global $wp_query;
    $Posts = $wp_query->posts;
    $Pattern = get_shortcode_regex();

    foreach ($Posts as $Post) {
    if( preg_match_all( ‘/’. $Pattern .’/s’, $Post->post_content, $Matches ) && array_key_exists( 2, $Matches ) && in_array( ‘TABS_R’, $Matches[2] ) ) {
    wp_dequeue_script(‘superfish-menu’);

    break;
    } //end of if
    } //end of foreach
    }
    add_action( ‘wp_print_scripts’, ‘wpsm_dequeue_script’, 1 );
    }
    function wpsm_tabs_r_front_script() {

    wp_enqueue_script(‘jquery’);

    //font awesome css
    wp_enqueue_style(‘wpsm_tabs_r-font-awesome-front’, wpshopmart_tabs_r_directory_url.’assets/css/font-awesome/css/font-awesome.min.css’);
    wp_enqueue_style(‘wpsm_tabs_r_bootstrap-front’, wpshopmart_tabs_r_directory_url.’assets/css/bootstrap-front.css’);
    wp_enqueue_style(‘wpsm_tabs_r_animate’, wpshopmart_tabs_r_directory_url.’assets/css/animate.css’);

    wp_enqueue_script( ‘wpsm_tabs_r_bootstrap-js-front’, wpshopmart_tabs_r_directory_url.’assets/js/bootstrap.js’, array(), ”, true );

    }

    Plugin Author wpshopmart

    (@wpshopmart)

    Please don’t take this error seriously. We have provide your temporary solution for resolve scroll issue. SO that’s why at backend this notice has been displayed.

    But do not worry about it, If any permanent solution will find then find i will diffidently let you know.

    Thanks

    Thread Starter drtricia

    (@drtricia)

    Hi,
    The error wasn’t my main concern. I added the above code and it is still scrolling to the top. I did it several times to make sure that it wasn’t a mistake on my end. Do you have other suggestions?

    Thank you,
    Tricia

    Plugin Author wpshopmart

    (@wpshopmart)

    I found a permanent solution so undo all code.

    Follow my steps here –

    Step-1 : open your theme directory now open u-design theme folder

    Step-2 : here you will need to open scripts folder and then download a file from given link at below –

    http://wikisend.com/download/498952/script.js

    Step-3 : Replica this downloaded file in script folder with give file script.js

    Try this process and then let me know.

    Thanks

    Thread Starter drtricia

    (@drtricia)

    Okay, I did that and the problem remained. BUT I figured out a different solution. I noted that when I turned off the animation on Tabs Responsive, that I couldn’t click from tab to tab. I wondered if somehow the tab animation options were incompatible with the theme. Anyway, the theme has a setting which is to ‘turn off smooth scrolling.’
    When I turned off the the option for smooth scrolling, the problem stopped. I don’t think I need smooth scrolling at this point, and it seems the easiest fix. Let me know if you have any suggestions that would fix the incompatibility w smooth scrolling. Otherwise, I’m going to work around that because I really want to keep your plugin.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘tabs auto scrolling to top of screen’ is closed to new replies.