• What is the CSS class that will ignore the firing of this plugin? Your documentation keeps saying you can “Define a certain CSS-class, when it is attached on a link, the click event will be ignored.”

    But it doesn’t tell me how, or where, or what class?

Viewing 1 replies (of 1 total)
  • Plugin Author k00ni

    (@k00ni)

    Hi,

    in the backend is an option, called “Ignore click events”. The name of the CSS class you enter there, will be checked later and if it is available on the clicked DOM element, clicks will be ignored.

    I will point you to the path from the backend to the frontend, maybe you search for something special.

    In function fixedMenuAnchor_setFrontendVariables from file fixed-menu-anchor.php all options will be gathered and passed through the frontend. It adds a javascript script field in the header with 4 variables it needs later on, e.g. fixedMenuAnchorCssClassesToBeIgnored you asking about.

    In the second step, i register some javascript functions in this file. In the first if clause, you will find the following lines:

    
    if (jQuery(this).hasClass(fixedMenuAnchorCssClassesToBeIgnored)
        && '' != fixedMenuAnchorCssClassesToBeIgnored) {
        return;
    }
    

    Here i check, if the clicked link has a certain CSS class and if thats the case, the execution is stopped.

    ####

    Hope it helps you further.

    Kinda regards
    k00ni

Viewing 1 replies (of 1 total)
  • The topic ‘CSS Class to Ignore Fire’ is closed to new replies.