Support

Account

Home Forums General Issues URL field

Unread

URL field

  • Hi,

    I have created an url field to be displayed into buttons with the code below :

    <div>
      <a class="wp-block-button__link" href="<?php the_field( 'vibe_url' ); ?>"><?php the_field( 'vibe_url' ); ?></a>
    </div>

    As you can see my goal is to display the url as a link but also as the button text. But having a button with “http” into the text doesn’t looks great. Is there a work around to remove the http (or https) without creating two fields (one for the url and another for the text button) ?

    Thanks by advance,
    Jeremy

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.