Redirect link button

Posted by: Elio Bergamini

4th December 2020, 11:05 am

Elio Bergamini

@elioberga

4 Dec 2020
11:05 am

Hi,

How can I change the style of the redirect link that appears to logged out users instead of the download button? I would like it to be identical to the download button but obviously with the link that I set in the plugin settings. I think it’s really easy but I can’t manage to do it.

Thanks.

  • Richard Webster

    @rwebster

    4 Dec 2020
    1:27 pm

    Hi Elio can you post a link to one of your free products so I can see?

  • Elio Bergamini

    @elioberga

    4 Dec 2020
    1:46 pm

    Hi,

    the website is under construction, an example would be:

    https://www.myenglishcoach.com/product/past-simple/

    I would like the get started link to be a button like the ones in the homepage:

    https://www.myenglishcoach.com/

    In the settings you put how to customize the download button but not this link. Thanks!

  • Richard Webster

    @rwebster

    4 Dec 2020
    2:42 pm

    Send me admin login details via email and I'll take a look at the backend. All the links and buttons I output can be customised and have custom classes add to them, so I'm sure it can be sorted.

  • Elio Bergamini

    @elioberga

    4 Dec 2020
    4:24 pm

    Don’t worry, I found a workaround to make it look like a button even if the user should click the test and not the entire button.

    I would have liked to decide whether to have a button or a link instead of only a text or link for not logged in users.

    I can’t manage to transform in button with css the somdn-download-error class.

    Thanks.

  • Richard Webster

    @rwebster

    4 Dec 2020
    4:35 pm

    I'm still unsure what button/link you're talking about mate. Can you post a screenshot?

  • Elio Bergamini

    @elioberga

    4 Dec 2020
    4:49 pm

    Sorry I can't upload an image here.

    I didn't explain it well: I clicked on the option to block the download for not logged in users (waiting for the possibility to limit certain products with certain tags to users with a membership plan, it would be great!) and in the text that should appear instead of the download button (in the text box after i clicked the option to restrict the download to logged in users) I inserted a link to the membership page, in this way:

    <a href="myurl">Get Started</a>

    I simply would like this text to become a button (like the download now button it is replacing), if possible. Now i managed to make it look like a button.

  • Richard Webster

    @rwebster

    4 Dec 2020
    4:52 pm

    Ok so you've created that link, in my text box setting for the message to display on the product page if the user is not logged in?

  • Elio Bergamini

    @elioberga

    4 Dec 2020
    5:31 pm

    Exactly! Is it the best way?

  • Richard Webster

    @rwebster

    4 Dec 2020
    6:15 pm

    Yea I'd say so, but you could add the button class to the link.

    <a class="wp-block-button__link" href="myurl">Get Started</a>
  • Elio Bergamini

    @elioberga

    4 Dec 2020
    7:19 pm

    I tried but it doesn’t work, I also tried to change the class but nothing, it keeps it’s original layout. I’ll figure it out.

This topic is closed to new replies.

Looking for Square One Media? Check this post