Conflict with Royal Slider - by scolwell

This topic has 7 replies, 2 voices, and was last updated 10 years, 4 months ago ago by Eva Kemp

  • Avatar: scolwell
    scolwell
    Participant
    July 20, 2014 at 01:48

    Hello,

    I am using the tabs feature that is a part of the Legenda Theme and the Royal Slider plugin. When I have both on the same page, Royal Slider does not work.

    I suspect that it is because there are two requests for jquery on the same page and that I need to replace the call in the tabs code with the follow:

    wp_enqueue_script(“jquery”);

    However, I can’t seem to find where it is calling jquery for the tabs. Are you able to help me with this? The page is: http://www.thestatisticalmind.com/?page_id=19#ert_pane1-1

    Thanks,

    6 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    July 20, 2014 at 08:54

    Hello,

    The error “Uncaught TypeError: undefined is not a function” is in the file wp-content/plugins/js_composer/assets/js/js_composer_front.js (line 236).
    Try to replace the code as you said.
    Let us know if you need more help.

    Regards,
    Eva Kemp.

    Avatar: scolwell
    scolwell
    Participant
    July 20, 2014 at 17:12

    Thank you. I replaced this from line 260 and the closing } from line 283:

    /* jQuery(‘.wpb_accordion’).each(function (index) {
    var $tabs,
    interval = jQuery(this).attr(“data-interval”),
    active_tab = !isNaN(jQuery(this).data(‘active-tab’)) && parseInt(jQuery(this).data(‘active-tab’)) > 0 ? parseInt(jQuery(this).data(‘active-tab’)) – 1 : false,
    collapsible = active_tab === false || jQuery(this).data(‘collapsible’) === ‘yes’;
    //

    …with this:
    */wp_enqueue_script(“jquery”);

    It works and I think it is correct. Do you see any issues with this?

    Thanks again.

    Scott

    Avatar: scolwell
    scolwell
    Participant
    July 20, 2014 at 17:41

    Actually, although I’m not seeing any issues, I am getting the following errors in the console (using Chrome):

    Failed to load resource: the server responded with a status of 404 (Not Found) http://www.thestatisticalmind.com/wp-content/themes/legenda/custom.css?ver=2.2
    2
    Consider using ‘dppx’ units, as in CSS ‘dpi’ means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual ‘dpi’ of a screen. In media query expression: only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) ?page_id=19:1
    Uncaught SyntaxError: Unexpected token ILLEGAL http://www.thestatisticalmind.com/wp-content/plugins/js_composer/assets/js/js_composer_front.js?ver=4.2.3:266

    Avatar: Eva
    Eva Kemp
    Support staff
    July 21, 2014 at 08:10

    Hello,

    404 error means you don’t have custom.css file. Here you can watch the tutorial how to create it.
    “Uncaught SyntaxError” means you’ve made some syntax error in the code. Please check it more carefully.

    Regards,
    Eva Kemp.

    Avatar: scolwell
    scolwell
    Participant
    July 21, 2014 at 13:32

    Hi Eva,

    I do have a custom.css file and the site seems to read it. It is in my child theme folder.

    With regards to the “Uncaught SyntaxError” is this seems to be where I exchaged:

    jQuery(‘.wpb_accordion’).each(function (index) {
    var $tabs,
    interval = jQuery(this).attr(“data-interval”),
    active_tab = !isNaN(jQuery(this).data(‘active-tab’)) && parseInt(jQuery(this).data(‘active-tab’)) > 0 ? parseInt(jQuery(this).data(‘active-tab’)) – 1 : false,
    collapsible = active_tab === false || jQuery(this).data(‘collapsible’) === ‘yes’;
    //

    for

    /wp_enqueue_script(�jquery�);

    to stop the conflict between royal slider and the default tabs. Should I be replacing the entire Tabs + Tours code with this?

    Scott

    Avatar: Eva
    Eva Kemp
    Support staff
    July 21, 2014 at 14:11

    Hello,

    In this case we recommend you to create a ticket at https://support.8theme.com/ and our specialists will look into this issue more deeply. Don’t forget to provide your credentials to FTP and wp-admin panel in the ticket.
    Thank you.

    Regards,
    Eva Kemp.

  • Viewing 7 results - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.