Home › Forums › Front-end Issues › Problems with images in Link Text › Reply To: Problems with images in Link Text
<?php if( $button_buy ):
$button_buy_url = $button_buy['url'];
$button_buy_title = $button_buy['title'];
$button_buy_target = $button_buy['target'] ? $button_buy['target'] : '_self';
?>
<a class="button button-buy" href="<?php echo esc_url( $button_buy_url ); ?>" target="<?php echo esc_attr( $button_buy_target ); ?>"><?php echo strip_tags($button_buy_title); ?></a>
<?php endif; ?>
Hey John, hope this helps. This ist the code from the template. I’m using normal img tag inside the Linktext. Can you see it in the picture i loaded up? I blacked out the URL for reasons.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.