WPIntell

Source evidence

CSS Class to Ignore Fire

Fixed Menu Anchor · support · 2017-03-26T13:56:00+00:00

complaintsentiment
mediumseverity
0.87relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

2 / 19 rows with source links

10.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

17 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
dwashy unresolved
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? 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

Comments

1 shown
k00ni 2017-03-26T16:52:00+00:00

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