First post here. I have a pretty simple problem that I can’t fix. I’m trying to add a hyperlink to some text my my footer. Can anyone give some tips on making the text a clickable link? Thanks!
Here is the code:
<p class="mb-0"><?php printf( '© %s %s', date( 'Y' ), esc_html__( 'Designed by Site. All rights reserved.', 'theme' ) ) ?></p>
</div>
2
Answers
Thanks! This is what I ended up with:
preg_replace has many important roles Here in this example, I have used this special PHP function to replace URL inside text block clickable.