Table of Contents:

Back to the main Table of Contents

Source Code Exclude

Scan with Source Code Exclude


Introduction

This chapter gives instructions for advanced users on how to configure a source code exclusion for a website scan.

The Source Code Exclude feature allows users to 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.


Add a Source Code Exclude to the Accessibility module

This section gives instructions on how to add a source code exclusion to the module on a customer level and then apply it to a domain.

  1. From the Monsido Domain Overview (globe icon), click Settings (gear icon) at the top of the page. The Admin Settings page opens.

    Note: The Settings button is only available to site admins.

  2. Select Source Code Excludes from the menu on the left-hand side of the page.

    The Source Code Excludes page opens.

  3. Click Add Source Code Exclude.

    Image showing the location of the Add Source Code Exclude button, on the upper right-hand side of the page.

    The Source Code Excludes selection page opens.

    Image showing the Source Code Excludes landing page.

  4. Click to select Accessibility.

    Image showing the location of the Accessibility source code excludes creation button.

    The Accessibility Source Code Exclude page opens.

    Image showing the Accessibility Source Code Excludes creation page.

  5. Short Description (required): Click in the text field and type in a short description for this excluded snippet.

  6. Default for CMS: Click in the field and identify the CMS from the drop-down menu, if applicable.

    Note: 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.

    Note: If you use a CMS and it is not present in the list, contact Monsido Support to see if it can be added.

  7. Type (required): Click in the field and select the exclusion type from the drop-down menu.

  8. Value (required): Click in the text input field and type or paste in the HTML snippet to be excluded.

  9. Identify specific HTML snippets for the filter and enter them into the value field.

    Screenshot showing where you can create a short description, set the exclusion type, and then identify the particular HTML snippets for filtering by entering them into the value field.

  10. 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 Exclude is now stored on an account level but not applied to any domains. See the steps HERE to apply the Source Code Exclude to a domain.


Add a Source Code Exclude to the Readability module

This section gives instructions on how to exclude a segment of the webpage from the spellcheck.

  • From the Monsido Domain Overview (globe icon), click Settings (gear icon) at the top of the page. The Admin Settings page opens.

    Note: The Settings button is only available to site admins.

  • Select Source Code Excludes from the menu on the left-hand side of the page.

    The Source Code Excludes page opens.

  • Click Add Source Code Exclude.

    Image showing the location of the Add Source Code Exclude button, on the upper right-hand side of the page.

    The Source Code Excludes selection page opens.

    Image showing the Source Code Excludes landing page.

  • Click Readability.

    The Readability Source Code Exclude 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 Monsido 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.

    The scan will now identify elements that match the entered CSS selector patterns and omit them from the results.

    Note: There is no limit on the number of CSS Target Selectors that can be added.

    For more information, see the User Guide chapter:

  • 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: The Source Code Exclude is now stored on an account level but not applied to any domains. See the steps HERE to apply the Source Code Exclude to a domain.

    For more information, see the User Guide chapters:


Add Source Code Exclude to the Spellcheck module

This section gives instructions on how to exclude a segment of the webpage from the spellcheck.

  • From the Monsido Domain Overview (globe icon), click Settings (gear icon) at the top of the page. The Admin Settings page opens.

    Note: The Settings button is only available to site admins.

  • Select Source Code Excludes from the menu on the left-hand side of the page.

    The Source Code Excludes page opens.

  • Click Add Source Code Exclude.

    Image showing the location of the Add Source Code Exclude button, on the upper right-hand side of the page.

    The Source Code Exclude selection page opens.

    Image showing the Source Code Excludes landing page.

  • Click Misspellings.

  • The Misspellings Source Code Exclude 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 Monsido 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 added, subsequent scans identify elements that match the entered CSS selector patterns and omit them from the results.

    Note: There is no limit on the number of CSS Target Selectors that can be added.

    For more information, see the User Guide chapter:

  • 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.

Note: The Source Code Exclude is now stored on an account level but not applied to any domains. See the steps HERE to apply the Source Code Exclude to a domain.

For more information, see the User Guide chapters:


Apply the Source Code Exclude to a Domain

This section gives instructions on how to apply a source code exclusion to a domain.

  1. From the Monsido Domain Overview (globe icon), click Settings (gear icon) at the top of the page. The Admin Settings page opens.

    Note: The Settings button is only available to site admins.

    Image that shows the location of the Settings button, on the top menu bar.

  2. On the same row as the domain to scan, click Action.

    Image showing the location of the Actions button for a domain, on the right-hand side of the page.

  3. In the drop-down list, select Edit Domain.

    Image of the location of the Edit Domain option in the Actions menu.

  4. The Edit Domain page opens.

    Image showing the Edit Domain Features section.

  5. Locate the Features section.

    Source Code Excludes: Click the drop-down arrow and select the domain that contains the source code.


Locate HTML snippets to use in a Source Code Exclude

This section gives instructions on how to locate HTML snippets that can be used to set up a Source Code Exclude.

Locate snippets in 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:

  1. From the Monsido Home page (the globe icon on the top menu bar), click the URL to the domain. The domain dashboard opens.

  2. 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.

  3. Click Fast Track, from the menu on the left-hand side of the page. The Accessibility Fast Track pane slides open.

    Image of the list of the checks that flagged the snippets for further attention.

  4. Copy the HTML snippets to include and paste them into the form for Source Code Excludes.

Locate snippets in Accessibility Page Details:

From the PageDetails section for any page within Monsido, click Accessibility (icon of a human with outstretched arms) on the top menu bar:

Snippets with potential errors are listed on the right-hand side of the page.

  • Copy the HTML snippets to include and paste them into the form for Source Code Excludes.

For more information, see the User Guide chapter:


Additional information

For more information, see the User Guide chapters:

For further assistance, contact the Monsido support team at support@monsido.com or via the Monsido chat and help features inside the application.

Image of the Monsido toolbar with the help buttons highlighted.

See Monsido for Developers for documentation containing advanced help for developers.

See also:

Contact us

Monsido, an Optimere brand:

San Diego, CA, USA

5880 Oberlin Dr,
San Diego, CA 92121, USA

Monsido US Support:+1 858-281-2185

Australia & New Zealand

Suite 2.04
80 Cooper St
Surry Hills, NSW 2010

Monsido APAC Support:+61 2 9051 0590

Copenhagen, Denmark

Borupvang 3
2750 Ballerup, Denmark

Monsido Europe Support:+45 89 88 85 05

London, UK

14 New Street
London, EC2M 4HE

Monsido UK Support:+44 20 8138 8450

Did this answer your question?