Home Forums Arnold WordPress Theme How to remove ability to click through to posts from Slider 1 Reply To: How to remove ability to click through to posts from Slider 1

#14393

BWSM
Keymaster

Hi,

It needs to change a js file in theme folder: /js/custom.theme.js, line337-389:

update to:

if(Modernizr.touchevents){

			$('.bm-tab-slider-trigger-tilte').on('touchstart', function(e) {
				var _item 		= 	jQuery(this),
				     _id 		= _item.data('id'),
			  		_logo_color = _item.data('color'); 

			  	if(_default_logo != _logo_color) {
			  		themeData.body.removeClass(_default_logo).addClass(_logo_color);
			  		_default_logo = _logo_color;
			  	}

			  	if( !_item.parents('.bm-tab-slider-trigger').siblings('.bm-tab-slider-img').find('#'+_id).hasClass('bm-active') ) {
					_item.parents('.bm-tab-slider-trigger').siblings('.bm-tab-slider-img').find('#'+_id).addClass('bm-active');
					_item.parents('.bm-tab-slider-trigger').siblings('.bm-tab-slider-img').find('#'+_id).siblings('.bm-tab-slider-img-item').removeClass('bm-active');
				}

				if(!_item.hasClass('bm-active')) {
					_item.addClass('bm-active');
					_item.parent('.bm-tab-slider-trigger-item').siblings().find('.bm-tab-slider-trigger-tilte').removeClass('bm-active');
					e.preventDefault();
					return false;
				} else {
					return false;
				}
				
			});

		} else {

			$('.bm-tab-slider-trigger-tilte').hover(function(){  
				var _item 		= 	jQuery(this),
				     _id 		= _item.data('id'),
			  		_logo_color = _item.data('color');

			  	if(_default_logo != _logo_color) {
			  		themeData.body.removeClass(_default_logo).addClass(_logo_color);
			  		_default_logo = _logo_color;
			  	}

				if(!_item.hasClass('bm-active')) {
					_item.addClass('bm-active');
					_item.parent('.bm-tab-slider-trigger-item').siblings().find('.bm-tab-slider-trigger-tilte').removeClass('bm-active');
				}

				if( !_item.parents('.bm-tab-slider-trigger').siblings('.bm-tab-slider-img').find('#'+_id).hasClass('bm-active') ) {
					_item.parents('.bm-tab-slider-trigger').siblings('.bm-tab-slider-img').find('#'+_id).addClass('bm-active');
					_item.parents('.bm-tab-slider-trigger').siblings('.bm-tab-slider-img').find('#'+_id).siblings('.bm-tab-slider-img-item').removeClass('bm-active');
				}

			},function(){
				return false;
			});

			$('.bm-tab-slider-trigger-tilte').click(function(){
				return false;
			});

		}
		
	}

Regards!