Acquia Copilot is a conversational AI connected into our product documentation and knowledge base. Ask Copilot about product features, technical details, troubleshooting and how to get started with Acquia products.
The Source Code Exclude function lets you configure custom exclusions to website scans. The exclusions target particular elements and stop the contents from being flagged as issues.
Add exclusions to accessibility, readability, and misspelling checks on a customer level and then apply them to specific domains.
This article provides advanced instructions on how to configure a source code exclude for a website scan.
Add a source code exclusion to the Accessibility module
This section provides instructions on how to add a source code exclusion to the module on a customer level and then apply it to a domain.
Click AdminSettings (gear icon) on the top menu bar. The Domain Settings page opens.
Select Source Code Excludes from the menu on the left side of the page.
The Source Code Excludes page opens.
Click Add Source Code Exclude.
The Source Code Excludes page opens.
Click to select Accessibility.
The Source Code Exclude details page opens.
Short Description (required): Click in the text field and type in a short description for this excluded snippet.
Default for CMS: Click in the field and identify the CMS from the drop-down menu, if applicable.
Notes
If a CMS is selected here and a domain with the same selected CMS exists on the account, the domain will automatically have the source code exclude applied to it.
If you use a CMS and it is not present in the list, contact the Support Team to see if it can be added.
Type (required): Click in the field and select the exclusion type from the drop-down menu.
Exact: Identifies and filters out all instances where the complete and exact HTML snippet appears. For example, the snippet https://www. example.com/ is an exact match for:
https://www.example.com/
While these HTML snippets are NOT a match:
https://www.example.com
http://www.example.com/
https://example.com/
https://example.com/?something=1
https://example.com/#something=1
Regex: Identifies and filters out specific patterns of HTML through the use of regular expressions.
Contains: Identifies and filters out all snippets that contain the HTML values entered. For example, the snippet example.com is a match forthese HTML values:
https://www.example.com/
https://www.example.com
http://www. example.com/
https://example.com/
https://example.com/?query=1
https://example.com/subpage
https://example.com/subpage/product_page
Value (required): Click in the text input field and type or paste in the HTML snippet to be excluded.
Identify specific HTML snippets for the filter and enter them into the value field.
See the section Locate HTML snippets to use in a Source Code Exclude for instructions on how to find the snippets.
Note
The source code exclusion is now stored on an account level but not applied to any domains. See the steps in this document on howto apply the source code exclusion to a domain.
Add a source code exclusion to the Readability module
This section provides instructions on how to exclude a segment of the webpage from the spellcheck.
Click AdminSettings (gear icon) on the top menu bar. The Domain Settings page opens.
Select Source Code Excludes from the menu on the left side of the page.
The Source Code Excludes page opens.
Click Add Source Code Exclude.
The Source Code Exclude page opens.
Click Readability.
The Source Code Exclude details page opens.
Description (required): Click in the text field and type in a short description for the excluded snippet.
Default for CMS: Click in the field and select the CMS from the drop-down menu, or select None if there is no CMS. If your CMS is not on the list, contact the Support Team to see if it can be added.
CSS Target Selector (required): Click in the field and select an existing CSS selector pattern from the drop-down menu, or click + to add a new one.
The scan identifies elements that match the entered CSS selector patterns and omits them from the results.
Note
The source code exclusion is now stored on an account level but not applied to any domains. Refer to the steps in this article for instructions on to apply the source code exclusion to a domain.
This section provides instructions on how to exclude a segment of the webpage from the spellcheck.
Click AdminSettings (gear icon) on the top menu bar. The Domain Settings page opens.
Select Source Code Excludes from the menu on the left side of the page.
The Source Code Excludes page opens.
Click Add Source Code Exclude.
The Source Code Exclude page opens.
Click Misspellings.
The Source Code Exclude details page opens.
Description (required): Click in the text field and provide a short description for the excluded snippet.
Default for CMS: Click in the field and select the CMS from the drop-down menu, or select None if there is no CMS. If your CMS is not on the list, contact Support to see if it can be added.
CSS Target Selector (required): Click in the field and select an existing CSS selector pattern from the drop-down menu, or click + to add a new one.
Once they are added, subsequent scans will identify elements that match the entered CSS selector patterns and omit them from the results.
Note
The Source Code Exclude is now stored on an account level but not applied to any domains. See the steps in this article for instructions on how to apply the source code exclusion to a domain.
This section provides instructions on how to apply a source code exclusion to a domain.
Click AdminSettings (gear icon) on the top menu bar. The Domain Settings page opens.
Click Action on the same row as the domain to scan.
Select Edit Domain from the drop-down list.
The Edit Domain pane opens.
Locate the Features section.
In the Source Code Excludes field: Click the drop-down arrow and select the domain that contains the source code.
Click Save at the bottom of the page.
Locate HTML snippets to use in a source code exclusion
This section provides instructions on how to locate HTML snippets that can be used to set up a source code exclusion.
Locate snippets with FastTrack:
HTML snippets that affect the website compliance level can be found in FastTrack, along with a list of the checks the snippets are flagged for.
How to find HTML snippets that affect website compliance levels:
Click the domain URL on the domain list. The domain dashboard opens.
Click Accessibility (icon of a person standing with arms outstretched) on the menu bar at the top of the domain dashboard. The Accessibility page opens.
Click FastTrack, from the menu on the left side of the page.
The Accessibility FastTrack pane opens.
Locate and copy the HTML snippets to include and paste them into the form for Source Code Excludes.
Locate snippets in Accessibility Page Details:
Click Accessibility (icon of a human with outstretched arms) on the top menu bar.
Snippets with potential errors are listed on the right side panel of the page.
Copy the HTML snippets to include and paste them into the form for Source Code Excludes.
The Source Code Exclude function lets you configure custom exclusions to website scans. The exclusions target particular elements and stop the contents from being flagged as issues.
Add exclusions to accessibility, readability, and misspelling checks on a customer level and then apply them to specific domains.
This article provides advanced instructions on how to configure a source code exclude for a website scan.
Add a source code exclusion to the Accessibility module
This section provides instructions on how to add a source code exclusion to the module on a customer level and then apply it to a domain.
Click AdminSettings (gear icon) on the top menu bar. The Domain Settings page opens.
Select Source Code Excludes from the menu on the left side of the page.
The Source Code Excludes page opens.
Click Add Source Code Exclude.
The Source Code Excludes page opens.
Click to select Accessibility.
The Source Code Exclude details page opens.
Short Description (required): Click in the text field and type in a short description for this excluded snippet.
Default for CMS: Click in the field and identify the CMS from the drop-down menu, if applicable.
Notes
If a CMS is selected here and a domain with the same selected CMS exists on the account, the domain will automatically have the source code exclude applied to it.
If you use a CMS and it is not present in the list, contact the Support Team to see if it can be added.
Type (required): Click in the field and select the exclusion type from the drop-down menu.
Exact: Identifies and filters out all instances where the complete and exact HTML snippet appears. For example, the snippet https://www. example.com/ is an exact match for:
https://www.example.com/
While these HTML snippets are NOT a match:
https://www.example.com
http://www.example.com/
https://example.com/
https://example.com/?something=1
https://example.com/#something=1
Regex: Identifies and filters out specific patterns of HTML through the use of regular expressions.
Contains: Identifies and filters out all snippets that contain the HTML values entered. For example, the snippet example.com is a match forthese HTML values:
https://www.example.com/
https://www.example.com
http://www. example.com/
https://example.com/
https://example.com/?query=1
https://example.com/subpage
https://example.com/subpage/product_page
Value (required): Click in the text input field and type or paste in the HTML snippet to be excluded.
Identify specific HTML snippets for the filter and enter them into the value field.
See the section Locate HTML snippets to use in a Source Code Exclude for instructions on how to find the snippets.
Note
The source code exclusion is now stored on an account level but not applied to any domains. See the steps in this document on howto apply the source code exclusion to a domain.
Add a source code exclusion to the Readability module
This section provides instructions on how to exclude a segment of the webpage from the spellcheck.
Click AdminSettings (gear icon) on the top menu bar. The Domain Settings page opens.
Select Source Code Excludes from the menu on the left side of the page.
The Source Code Excludes page opens.
Click Add Source Code Exclude.
The Source Code Exclude page opens.
Click Readability.
The Source Code Exclude details page opens.
Description (required): Click in the text field and type in a short description for the excluded snippet.
Default for CMS: Click in the field and select the CMS from the drop-down menu, or select None if there is no CMS. If your CMS is not on the list, contact the Support Team to see if it can be added.
CSS Target Selector (required): Click in the field and select an existing CSS selector pattern from the drop-down menu, or click + to add a new one.
The scan identifies elements that match the entered CSS selector patterns and omits them from the results.
Note
The source code exclusion is now stored on an account level but not applied to any domains. Refer to the steps in this article for instructions on to apply the source code exclusion to a domain.
This section provides instructions on how to exclude a segment of the webpage from the spellcheck.
Click AdminSettings (gear icon) on the top menu bar. The Domain Settings page opens.
Select Source Code Excludes from the menu on the left side of the page.
The Source Code Excludes page opens.
Click Add Source Code Exclude.
The Source Code Exclude page opens.
Click Misspellings.
The Source Code Exclude details page opens.
Description (required): Click in the text field and provide a short description for the excluded snippet.
Default for CMS: Click in the field and select the CMS from the drop-down menu, or select None if there is no CMS. If your CMS is not on the list, contact Support to see if it can be added.
CSS Target Selector (required): Click in the field and select an existing CSS selector pattern from the drop-down menu, or click + to add a new one.
Once they are added, subsequent scans will identify elements that match the entered CSS selector patterns and omit them from the results.
Note
The Source Code Exclude is now stored on an account level but not applied to any domains. See the steps in this article for instructions on how to apply the source code exclusion to a domain.
This section provides instructions on how to apply a source code exclusion to a domain.
Click AdminSettings (gear icon) on the top menu bar. The Domain Settings page opens.
Click Action on the same row as the domain to scan.
Select Edit Domain from the drop-down list.
The Edit Domain pane opens.
Locate the Features section.
In the Source Code Excludes field: Click the drop-down arrow and select the domain that contains the source code.
Click Save at the bottom of the page.
Locate HTML snippets to use in a source code exclusion
This section provides instructions on how to locate HTML snippets that can be used to set up a source code exclusion.
Locate snippets with FastTrack:
HTML snippets that affect the website compliance level can be found in FastTrack, along with a list of the checks the snippets are flagged for.
How to find HTML snippets that affect website compliance levels:
Click the domain URL on the domain list. The domain dashboard opens.
Click Accessibility (icon of a person standing with arms outstretched) on the menu bar at the top of the domain dashboard. The Accessibility page opens.
Click FastTrack, from the menu on the left side of the page.
The Accessibility FastTrack pane opens.
Locate and copy the HTML snippets to include and paste them into the form for Source Code Excludes.
Locate snippets in Accessibility Page Details:
Click Accessibility (icon of a human with outstretched arms) on the top menu bar.
Snippets with potential errors are listed on the right side panel of the page.
Copy the HTML snippets to include and paste them into the form for Source Code Excludes.
Click Save to save the source code exclusion. The Details page closes and the Source Code Excludes list page is visible. The new source code exclusion is on the list.
Add the updated script to the website HTML code.
Note
There is no limit on the number of CSS Target Selectors that can be added.
Click Save to save the source code exclusion. The Details page closes and the Source Code Excludes list page is visible. The new source code exclusion is on the list.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Note
There is no limit to the number of CSS Target Selectors that you can add.
Click Save to save the source code exclusion. The Details page closes and the Source Code Excludes list page is visible. The new source code exclusion is on the list.
Add the updated script to the website HTML code.
Note
There is no limit on the number of CSS Target Selectors that can be added.
Click Save to save the source code exclusion. The Details page closes and the Source Code Excludes list page is visible. The new source code exclusion is on the list.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.