/ Documentation /General/How to Enable Single Page Import Button with White Label

How to Enable Single Page Import Button with White Label

This document addresses an issue with the Single Page Import Button disappearing within Starter Templates when Astra’s white label functionality is enabled.

Issue: Following the introduction of the “All new AI-based Template Kit library” in Starter Templates v3.5.0, the Single Page Import Button functionality was unintentionally affected by Astra’s white labeling for starter templates. This resulted in the button disappearing when white labeling was active.

Cause: The white label condition was not implemented for the updated Single Page Import Button within Starter Templates v3.5.0. While an older button in a similar location functions correctly with white labeling, the newer button was unintentionally impacted.

Solution: To resolve this issue and ensure the Single Page Import Button functions with Astra’s white labeling for Starter Templates, you can implement the following code snippet:

add_filter( 'ast_block_templates_white_label', '__return_false', 999 );

In this video, you’ll see the Single Page Import Button reappear after adding the code snippet to functions.php. However, since Astra’s white labeling for Starter Templates is configured as “testing”, the button displays the label “Testing” instead of the usual “Template Kits.”

Thus by implementing the provided code snippet, you can restore the functionality of the Single Page Import Button within Starter Templates, which allows you to import templates seamlessly even with Astra’s white labeling active.

We hope this document has been helpful.

If you encounter any challenges or have further questions about adding the code snippet, feel free to leave your comment below or reach out to our support team. We will be happy to assist you.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

On this page
Scroll to Top