Learn to hide your Login Page URL from search engines with the Removals Tool.
In this article:
- Using custom code to hide your login page
- Adding custom code to hide your login page
- Adding custom code to the legacy theme, Premier
Using custom code to hide your login page
This can be prevented by using the Removals Tool to hide the URL.
Alternatively, if you are on an account plan that includes code editor access, like the Pro Plan or Kajabi Access, you have the ability to add custom code to your site to hide your login page from search engines.
Continue reading to learn how to add custom code to your pages on Kajabi to hide your login page from search engines.
Adding custom code to hide your login page
Prevent a page from appearing on most search engines by including a noindex
meta tag in your page's code.
To include noindex
meta tag in your page's code:
- Open the Website tab from the Dashboard.
- Select </> Modify code from the dropdown option next to your Live site name.
- From the Snippets directory, open the global_head.liquid file.
- Copy the code snippet below and paste between the <head></head> tags in your file.
Code snippet:<!-- 'noindex' to hide login page from search engines === -->
{% if template == "login" %}
<meta name="robots" content="noindex">
{% endif %} - Click Save:
Adding custom code to the legacy theme, Premier
If you are using the legacy theme, Premier, you will add the same code snippet to your Premier theme.
To add your code to your Premier theme:
- Open the Website tab from the Dashboard.
- Select </> Modify code from the dropdown option next to your Live site name.
- From the Layouts directory, open the theme.liquid file.
- Copy the code snippet below and paste between the <head></head> tags in your file.
Code snippet:<!-- 'noindex' to hide login page from search engines === -->
{% if template == "login" %}
<meta name="robots" content="noindex">
{% endif %} - Click Save: