Conflict with AG Custom Admin Plugin
-
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 27Here 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!
- The topic ‘Conflict with AG Custom Admin Plugin’ is closed to new replies.