Reputation: 21
$aux_links_output .= '<li><a href="'.$login_url.'">'. __("Register", "swiftframework") .'</a>'. "\n";
$aux_links_output .= '<li><a href="'.$login_url.'">'. __("Login", "swiftframework") .'</a>'. "\n";
This code display Register and Login but i want an icon i have made in png to be displayed instead.So anybody can please help I shall be thankful.
Upvotes: 2
Views: 25
Reputation: 182
You have to add an img tag in your anchor:
$aux_links_output .= '<li><a href="'.$login_url.'">'. __("Register", "swiftframework") .'<img src="link to your icon" title="" alt=""/></a>'. "\n";
$aux_links_output .= '<li><a href="'.$login_url.'">'. __("Login", "swiftframework") .'<img src="link to your icon" title="" alt=""/></a>'. "\n";
Upvotes: 1