• Hi Team,
    I recently activated Oxygen theme and the AG Custom Admin Plugin gave JS error for the theme.

    It quoted the following line:

    Reference error: Slider settings not defined
    /wp-content/themes/oxygen/js/footer-scripts.js?ver=1.0
    Line 27

    Here is the code from this link:

    /* <![CDATA[ */
    
    var jqu = jQuery.noConflict();
    
    jqu( function () {
    
    /* Remove a class from the body tag if JavaScript is enabled */
    jqu( 'body' ).removeClass( 'no-js' );
    
    /* Masonry */
    var $container = jqu( '.hfeed-more' );
    var width = $container.width();
    $container.imagesLoaded( function() {
    $container.masonry( {
    temSelector: '.hentry',
    columnWidth: width * 0.4787234042553191,
    gutterWidth: width * 0.0425531914893617,
    isResizable: true,
    } );
    } );
    
    /* Cycle */
    jqu( '#featured-content' ).cycle( {
    slideExpr: '.featured-post',
    fx: 'fade',
    speed: 500,
    timeout: slider_settings.timeout,
    cleartypeNoBg: true,
    pager: '#slide-thumbs',
    slideResize: true,
    containerResize: false,
    width: '100%',
    fit: 1,
    prev: '#slider-prev',
    next: '#slider-next',
    pagerAnchorBuilder: function( idx, slide ) {
    // return selector string for existing anchor
    return '#slide-thumbs li:eq(' + idx + ') a';
    }
    } );
    
    /* FitVids */
    jqu( ".entry-content" ).fitVids();
    
    /* Fancybox */
    jqu( "a[href$='.jpg'], a[href$='.jpeg'], a[href$='.png'], a[href$='.gif']" ).attr( 'rel', 'lightbox' );
    jqu( "a[rel^='lightbox']" ).fancybox( { titleShow: false, overlayOpacity: .8, overlayColor: '#000' } );
    
    } );
    
    /* ]]> */

    Please let me know if something can be done to resolve the error.
    I don’t wanna give up the theme or the plugin.

    Thanks!

    https://www.ads-software.com/plugins/ag-custom-admin/

Viewing 3 replies - 1 through 3 (of 3 total)
  • You should report this issues to theme author. However you can fix it by yourself. Just replace the line

    timeout: slider_settings.timeout,

    with

    timeout: (typeof slider_settings === "undefined")? 10000 : slider_settings.timeout,
    Thread Starter Lavenderworld

    (@lavenderworld)

    Where do I find this code to be able to edit it?
    From where I pasted it – it was more of a notification – I’m not able to edit it from there.
    Any ideas?

    Thanks!

    You should change this in /wp-content/themes/oxygen/js/footer-scripts.js
    but remmember that the next time you update the theme, these changes will be removed, so I would kindly suggest reporting this issue to theme developers in case that this fix work for you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conflict with Oxygen Theme’ is closed to new replies.