tabs auto scrolling to top of screen
-
Hello,
When I click on tabs, it auto scrolls to the top of the screen. I saw your response to others with this issue, so I already tried de-activating all of the plugins except this one. It still didn’t work.
Love this plugin and hope you can help me figure it out.
Thank you!Webpage url = http://drtriciagroff.net/speaking/
Scroll just a little down the page and you’ll see where I started using the tabs.
-
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
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.
Hi, Udesign is a premium theme or it’s a free theme?
It’s a premium theme.
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
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.
Thanks , i will let you know very soon.
Thank you! Looking forward to hearing what you find out.
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
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 ); }
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 );
}
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
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,
TriciaI 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
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.
- The topic ‘tabs auto scrolling to top of screen’ is closed to new replies.