0

I would like to code this footer code:

<p class="mh-copyright"><?php printf(esc_html__('Copyright &copy; %1$s | Made by %2$s', 'mh-magazine-lite'), date("Y"), '<a href="' . esc_url('https://www.example.com/') . '" rel="nofollow">Dev</a>'); ?></p>

So my footer will look something like this (plus Terms of Use and Privacy Policy has hyperlink with "_blank" target in them):

Copyright © 2016 | Made by Dev | Privacy Policy Terms of Use

1 Answer 1

1

you can use this code in the footer ...

         <div class="your-class-name">
         <?php _e('Copyright &copy ', 'textdomain'); ?> <?php echo date('Y'); ?>  | <?php _e('Made by Dev ', 'textdomain'); ?>| <a href="#"><?php _e('Privacy Policy Terms of Use', 'textdomain'); ?></a>  
</div>
1
  • 1
    Thanks! It needed a bit more tweaks but it worked. Dec 26, 2016 at 5:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.