Astra detector

Astra logo

How can you detect if a website is using the Astra theme?

Detecting if a website is using the Astra theme by looking at the page source involves identifying specific markers characteristic of the Astra theme.

Heres a step-by-step guide on how to do it:

  1. Open the Page Source: Right-click on the webpage and select “View Page Source” or press Ctrl+U (Windows) or Cmd+Option+U (Mac) to open the page source code.
  2. Search for Astra-Specific Keywords: Use Ctrl+F (Windows) or Cmd+F (Mac) to open the search function and look for the following keywords:
    • themes/astra: This keyword appears in the code as the path to the Astra theme’s directory. For example, <link rel="stylesheet" href="https://your-site.com/wp-content/themes/astra/style.css">
    • Astra: Look for mentions of Astra in the comments or other sections of the code, e.g., <!-- Astra: Footer -->.
  3. Check for Astra-Specific Meta Tags: Some Astra settings or features might include certain meta tags. Look for tags that reference Astra, like <meta name="astra-options" content="... ">.
  4. Look for Astra CSS and JS Files: Astra theme styles and scripts are usually linked within the source code. Look for lines such as:
    • <link rel="stylesheet" href="https://your-site.com/wp-content/themes/astra/assets/css/style.min.css">
    • <script src="https://your-site.com/wp-content/themes/astra/assets/js/main.js"></script>
  5. Inspect the Body Class: Astra often adds specific classes to the body tag. Check for classes such as astra-body or ast-site-header-default. For example: <body class="astra-body ast-site-header-default">.
  6. Look for Astra Customizer Options: Astra themes often have customizable options. Check if there are any specific settings loaded in the JavaScript or the page source that reference Astra theme customizations.
  7. Detect WooCommerce Integration: If the website is a WooCommerce store, check for Astra-specific hooks or classes in the WooCommerce templates.