Skip to content

Snippets / JS

JS

Remove "Switch to a Different Plan" Button on Create Post

D Donald McGuinn · 150 views · Updated 2 years ago
If you don't want users to be prompted to switch to a different plan when they run out of allowable posts on their current plan, this snippet will do the trick.
Be sure to change the URL to the one you need to remove. Including domain and the "create" page. Easier to not put the code in yet, copy the link from the button then paste it in that section.
// Example: Remove all  elements with a specific URL
document.addEventListener('DOMContentLoaded', function() {
    var links = document.querySelectorAll('a');
    links.forEach(function(link) {
        if (link.href === 'https://staging.mdsmokefree.com/shop-owner-pricing/?redirect_to=https://staging.mdsmokefree.com/create-shop') {
            link.parentNode.removeChild(link);
        }
    });
});
JS · 9 lines

Discussion

Ask a question or share how you used this.

Log in to join the discussion.

No comments yet — be the first.

Voxel Guide assistant
Ask about snippets, addons & how-tos

Hey — how can I help?

I can dig through the library for snippets, addons, and tutorials.

AI can be wrong — double-check anything important.