- This topic has 4 replies, 2 voices, and was last updated 9 years, 7 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember F.A.Q/Instructions › How to Upgrade Membership Level Using a Shortcode
Tagged: customize button, members, membership upgrade, shortcode, wp membership
Please read the standard membership upgrade and renewal documentation first to learn how upgrades work:
The following option is not the standard method of handling upgrade. This option is useful if you want to create a hidden page and send some users to that page to get a free upgrade.
The eMember plugin has the following shortcode that you can use on a page to create a manual upgrade button. When a logged in member clicks on the button that this shortcode generates, it upgrades that user’s membership level to the one specified in the shortcode.
[wp_eMember_upgrade_membership_level_to level=”3″]
3 is the membership level ID.
The shortcode can take a few additional parameters. Here is an example:
[wp_eMember_upgrade_membership_level_to level=”3″ button_text=”Click Me” redirect_to=”example.com/redirect-page”]
Hello,
How can I customize the button of this shortcode :
[wp_eMember_upgrade_membership_level_to level=”3″ button_text=”Click Me” redirect_to=”example.com/redirect-page”]
Pending your reply.
Thanks.
Ludovic
It has CSS classes that you can use to apply CSS tweaks and customize the look and feel of the button.
The following post should be helpful:
Thanks.
The problem is if I change the CSS of the button, I do that in your plugin.
And the day when I will update it, i will lose all the changes.
How can I avoid that ?
Pending your answer.
Thanks
Ludovic
No, you use the following plugin to add your custom CSS (so it doesn’t get lost when you upgrade). It is referenced from that other tutorial I shared with your earlier:
https://www.tipsandtricks-hq.com/wordpress-custom-css-plugin-6413