Home > OS >  Why anchor not showing after adding social media share links
Why anchor not showing after adding social media share links

Time:04-19

I am working on a Laravel application and trying to add social share options. But bellow codes are not working and tag not showing!

<a href="https://www.facebook.com/sharer.php?u={{ route('single-course', $course->slug) }}" target="_blank" ><i ></i></a>
<a href='https://twitter.com/share?url={{ route('single-course', $course->slug) }}' target="_blank" ><i ></i></a>

Bellow codes are also not working and anchor tag become hidden!

<a href="https://www.facebook.com/sharer.php?u=https://www.facebook.com/sharer.php?u=https://www.google.com" target="_blank" ><i ></i></a>
<a href='https://twitter.com/share?url=https://www.google.com/' target="_blank" ><i ></i></a>

CodePudding user response:

The text inserted in between will be displayed as a link. You have inserted nothing. So, the link seems like hidden

<a>Insert some text here</a>

<a><i>In your case,insert some text here to display</i></a>

CodePudding user response:

  1. The icons have correct height or width? By default, the anchor element takes the size from its content.
  2. Are the fontawesome icons correctly added to your page? Maybe the CDN is missing...
  • Related