Home Forums General Issues URL field


URL field

  • Hi,

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

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

    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,

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.