How can I used shortcode for a button?

Guys,

I am looing for a button plugin which accepts shortcode.
I am using this theme http://wp.color-theme.com/streak/ theme has few shortcode for button.

like: [button style='2' caption='Primary' link='button url'][/button]

Here the caption for the button is Primary.
in place of link I want to insert a [ajax_login] shortcode.
Could you please help me acheive that?

------
Basically I want this button to work like this.

I want to insert this "Join Us" button in my pages.
On tap of it there should be a login form which pops up.

Could you please tell me how can I do this?

this is my site: http://wowdesigns.in/projects/nesties/

Thanks.

  • Dimitris
    • Support Star

    Hey there Harsha.wowd,

    hope you're having a beautiful day! :slight_smile:

    There's already a plugin that can help you build this and it's called "ZM Ajax Login & Register"
    https://wordpress.org/plugins/zm-ajax-login-register/

    Through its settings you can set which class (or ID) will trigger the login modal.

    Then in your content you can use something like
    <button class="login-link">LOGIN</button>
    or your button's shortcodes if they provide a class argument like
    [button style='2' caption='Primary' link='button url' class='login-link']LOGIN[/button]

    Let me know if this could be a working solution for you! :slight_smile:

    Warm regards,
    Dimitris

  • Adam Czajczyk
    • Support Gorilla

    Hello Harsha.wowd!

    I checked your site and I can see how the box shows at the bottom of the page. I assume it would be best if it was just showing at the "center" of the page without scrolling it, is that right?

    Would you mind granting me a support access to your site so I could add some CSS to the "ZM Ajax Login & Register" settings? Here's a guide on how to grant an access:

    https://premium.wpmudev.org/manuals/wpmu-dev-dashboard-enabling-staff-login/

    Best regards,
    Adam

  • Dimitris
    • Support Star

    Hey there Harsha.wowd,

    hope you're having a beautiful day!

    I just tried to access your website but I was getting the following error instead:
    Parse error: syntax error, unexpected T_STRING in /home1/hi2uamit/public_html/********.in/projects/nesties/wp-content/plugins/accesspress-social-login-lite/inc/frontend/login_check.php on line 110

    Could you please access your server via FTP, navigate to the root folder where the WP installation lies, and rename
    /wp-content/plugins/accesspress-social-login-lite/
    folder, to
    /wp-content/plugins/_accesspress-social-login-lite/
    (mind the underscore in plugin's folder name)

    By doing so, the "accesspress-social-login-lite" plugin should be deactivated and your website should be accessible again.
    Let me know about your results here so I could dig in considering the login modal window. :slight_smile:

    Warm regards,
    Dimitris

  • Harsha.wowd
    • Site Builder, Child of Zeus

    Hello,

    Yes it is working now.
    One minor thing I am stuck with.
    When user register, they are not getting an option to logout. Could you please tell me how can I enable it?

    When user login they will be able to logout.

    There is some issue with Registration who h I need to fix. It would be really helpful if you can help me with this.

    Thanks much.

  • Adam Czajczyk
    • Support Gorilla

    Hello Harsha.wowd!

    I have checked your site again and I also tried to register but I wasn't able to: an account was not created and I didn't got any e-mail to be able to activate an account.

    I did however noticed that you decided to go for a different plugin (which is perfectly fine of course) but there are still actually three different front-end login/registration plugins enabled: ZM AJAX Login & Register, Clean Login and AccessPress Social Login Lite. I'm not quite sure how that works together but it might be worth going for just a single one or at least disabling those that are not used anymore (I suspect it'd be AJAX Login & Register) to see if they are conflicting.

    Could you try that? Also if disabling the "no-longer used" plugin doesn't work, please give a try to a full theme/plugin conflict test to see if there's anything that may be conflicting with your currently implemented login plugins:

    https://premium.wpmudev.org/manuals/using-wpmu-dev/getting-support/

    Best regards,
    Adam

  • Adam Czajczyk
    • Support Gorilla

    Hello Harsha.wowd!

    Thank you for your replay.

    I have checked your site again, trying to register and I now found out that when the form is submitted there's a JavaScript error related to it returned in a browser console. Such errors are usually caused by one of two things: it's either a theme/plugin conflict or a bug in plugins code.

    I then noticed however that the registration popup is not a "self-contained" popup coming from the plugin but it's composed with our PopUp Pro plugin. Therefore I tested it on my end and it seems that these two plugins: Clean Login and PopUp Pro doesn't work good together. The Clean Login plugin's shortcode works fine when used directly in page/post content but not inside the popup.

    This plugin however seems to be working fine.

    https://wordpress.org/plugins/custom-frontend-login-registration-form/

    If you install it, you could then replace your current Clean Login shortcode inside the popup with a shortcode from this plugin and if there's no any other plugin conflict, that should let your users successfully register on the site. It worked fine when I tested it on my end.

    The downside is that its using some additional fields (it requires Name, Last Name, Bio) and would require some CSS styling. If these additional fields wouldn't be much of a problem though, I'm sure we could help you with CSS for the form.

    Would that be an acceptable solution for you?

    Best regards,
    Adam

  • Harsha.wowd
    • Site Builder, Child of Zeus

    Hey Hi,

    I did intall that plugin and used the shortcode [cflrf_registration_form]
    I am still not able to register, can you please look in to this?

    I am not sure why is this happening?

    I get this error Failed to load resource: the server responded with a status of 404 (Not Found)
    http://wowdesigns.in/projects/nesties/wp-content/plugins/custom-frontend-login-registration-form/bootstrap/css/bootstrap.css?ver=4.7.2

    Thanks

  • Harsha.wowd
    • Site Builder, Child of Zeus

    Hey,

    Yes, I am able to register.
    I can see you have registered as well, but I am not getting the confirmation Email

    After user is register, the popup just disappear, Can I have a toast msg or acknowledge saying.
    "Thank you for Joining Us"

    Two things.

    1. Not getting the confirmation Email
    2. How to display toast msg

  • Dimitris
    • Support Star

    Hello Harsha.wowd,

    hope you're doing good and please excuse my late reply here, it's been quite busy in our forums lately and we try keep up with every single member and issue here! :slight_smile:

    About the "thank you" message. There's already a message in place after registration saying:
    "Before you can access your account *********, you need to confirm your email address. Please check your inbox and click the activation link."
    You can use Ultimate Branding plugin and specifically the Text Replace module from it and "replace" this text, appending a welcome message too.

    As for the confirmation emails, could you please install Check Email plugin https://wordpress.org/plugins/check-email/ to ensure that default WP emails are getting out?
    If this isn't the issue here, please proceed with a theme/plugin conflict test (you should leave the login plugin as well as our PopUp plugin active) as described in a nice flow chart here?
    https://premium.wpmudev.org/manuals/using-wpmu-dev/getting-support/
    (just scroll down a little to see the image)

    Warm regards,
    Dimitris

  • Harsha.wowd
    • Site Builder, Child of Zeus

    Used the check Email plugin,
    No luck, did the getting support way as well, no luck yet.

    I have asked question with my requirement mentioned here https://premium.wpmudev.org/forums/topic/how-can-i-make-the-popup-pro-work?replies=3#post-1207342

    I am waiting for them to revert, could you please ask them to look into it as early as possible, I am stuck with this Login popup from quite some time.
    I am sure, only you ninjas can help me to resolve this.

    Kindly let me know.

  • Adam Czajczyk
    • Support Gorilla

    Hello Harsha.wowd

    As for your other thread regarding PopUp. I can see that my colleague Luis has already passed the case to our second line support so we need to wait for their replay. If we push the issue to them, it means that it's getting complex so they'll most likely need to dig a bit deeper. Luis will update that other thread for you as soon as he gets a response.

    As for e-mail. I understand that Check E-mail plugin didn't work so can you please confirm that other WP e-mails are also not being delivered? To do this you may e.g. register using standard WP registration form (not the one from plugin in popup) or use "Lost password" option.

    If that doesn't work either, try switching your site's mail transport to SMTP. One of these plugins may be used for that:

    https://wordpress.org/plugins/wp-mail-smtp/

    https://wordpress.org/plugins/easy-wp-smtp/

    Kind regards,
    Adam

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.