Disable click

GK User
Mon Aug 31, 2015 3:54 pm
Hello.

On News Show Pro GK5 how can i disable click on items (title and images) ? I want only catalog without open article on click.

Thanks

Haris
User avatar
Fresh Boarder

GK User
Wed Sep 02, 2015 7:02 am
I guess the module doesn't have such functionality. But if you are not afraid of editing template core files it can be done.
User avatar
Moderator

GK User
Wed Sep 02, 2015 7:02 am
Please edit this file:
/templates/gk_steakhouse/js/gk.scripts.js
and find this block of code:
Code: Select all
      var animate_header = function(win_scroll, header_height) {
         var result = (win_scroll / header_height) * 0.75;
         frontpage_module.css('background', 'rgba(0, 0, 0, ' + (result) + ')');
      };
   }
});


// Function to change styles
function changeStyle(style){

and modify it to:
Code: Select all
      var animate_header = function(win_scroll, header_height) {
         var result = (win_scroll / header_height) * 0.75;
         frontpage_module.css('background', 'rgba(0, 0, 0, ' + (result) + ')');
      };
   }
   jQuery('.gkNspPM figure a').click(function(e){e.preventDefault();});
});


// Function to change styles
function changeStyle(style){
User avatar
Moderator

GK User
Thu Sep 03, 2015 5:25 pm
I also need this, and tried it with the code, but it doesn't work.
hhatziioannou have you solved it?
User avatar
Expert Boarder

GK User
Mon Sep 07, 2015 7:41 am
@lisa.samy - could you please post an url to your site?
User avatar
Moderator


cron