Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How I can use multiple "Apple Touch Icon" with addLink() method? #36

Closed
pirmax opened this issue Feb 13, 2021 · 3 comments
Closed

How I can use multiple "Apple Touch Icon" with addLink() method? #36

pirmax opened this issue Feb 13, 2021 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@pirmax
Copy link

pirmax commented Feb 13, 2021

Trying to use addLink() method to add multiple apple-touch-icon but only one is added to HTML because the package use an array_merge. How I can to do this?

Meta::addLink('apple-touch-icon', [
    'href' => asset('apple-icon-57x57.png'),
    'sizes' => '57x57',
])
->addLink('apple-touch-icon', [
    'href' => asset('apple-icon-60x60.png'),
    'sizes' => '60x60',
])
...

Full HTML tags:

<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192"  href="/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
@butschster
Copy link
Owner

Hi.

You can try this approach https://github.com/butschster/LaravelMetaTags#multiple-favicons

@butschster butschster self-assigned this Feb 15, 2021
@butschster butschster added the question Further information is requested label Feb 15, 2021
@scvn1
Copy link

scvn1 commented Feb 21, 2021

Unfortunately that didn't fix the issue. Implemented it as given in example but nothing outputs on all the pages for the new favicons.
image
image

All the other packages render just fine on all the pages. Just not this custom one.

@butschster
Copy link
Owner

Where did you create this package. It will be registered in ServiceProvider

@pirmax pirmax closed this as completed May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants