• HI Guys,

    I am currently using a theme that shows user’s information based on their input.

    <?php echo ($place->et_facebook) ? $place->et_facebook : __( 'No specify phone' , ET_DOMAIN );; ?>

    For example this give me their facebook username whish will show on the site so I would like to add a HREF with the https://facebook.com/<<here goes the username>> so the site can display his user name and being clickable to get to their facebook page.

    hope you understand and help

Viewing 1 replies (of 1 total)
  • Hi Joandajer1

    You should just need to change this to (if I understand correctly)

    <?php echo ($place->et_facebook) ? '<a href="'. $place->et_facebook . '">' . $place->et_facebook . '</a>' : __( 'No specify phone' , ET_DOMAIN ); ?>
Viewing 1 replies (of 1 total)
  • The topic ‘How to add HREF for a code’ is closed to new replies.