Merge pull request #3091 from jitendra-webkul/1.0
SEO optimization added for velocity and og tag added
This commit is contained in:
commit
b520af03c3
|
|
@ -14,6 +14,28 @@
|
|||
{!! app('Webkul\Product\Helpers\SEO')->getProductJsonLd($product) !!}
|
||||
</script>
|
||||
@endif
|
||||
|
||||
<?php $productBaseImage = app('Webkul\Product\Helpers\ProductImage')->getProductBaseImage($product); ?>
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
|
||||
<meta name="twitter:title" content="{{ $product->name }}" />
|
||||
|
||||
<meta name="twitter:description" content="{{ $product->description }}" />
|
||||
|
||||
<meta name="twitter:image:alt" content="" />
|
||||
|
||||
<meta name="twitter:image" content="{{ $productBaseImage['medium_image_url'] }}" />
|
||||
|
||||
<meta property="og:type" content="og:product" />
|
||||
|
||||
<meta property="og:title" content="{{ $product->name }}" />
|
||||
|
||||
<meta property="og:image" content="{{ $productBaseImage['medium_image_url'] }}" />
|
||||
|
||||
<meta property="og:description" content="{{ $product->description }}" />
|
||||
|
||||
<meta property="og:url" content="{{ route('shop.productOrCategory.index', $product->url_key) }}" />
|
||||
@stop
|
||||
|
||||
@section('content-wrapper')
|
||||
|
|
|
|||
|
|
@ -24,7 +24,36 @@
|
|||
|
||||
@section('seo')
|
||||
<meta name="description" content="{{ trim($product->meta_description) != "" ? $product->meta_description : str_limit(strip_tags($product->description), 120, '') }}"/>
|
||||
|
||||
<meta name="keywords" content="{{ $product->meta_keywords }}"/>
|
||||
|
||||
@if (core()->getConfigData('catalog.rich_snippets.products.enable'))
|
||||
<script type="application/ld+json">
|
||||
{!! app('Webkul\Product\Helpers\SEO')->getProductJsonLd($product) !!}
|
||||
</script>
|
||||
@endif
|
||||
|
||||
<?php $productBaseImage = app('Webkul\Product\Helpers\ProductImage')->getProductBaseImage($product); ?>
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
|
||||
<meta name="twitter:title" content="{{ $product->name }}" />
|
||||
|
||||
<meta name="twitter:description" content="{{ $product->description }}" />
|
||||
|
||||
<meta name="twitter:image:alt" content="" />
|
||||
|
||||
<meta name="twitter:image" content="{{ $productBaseImage['medium_image_url'] }}" />
|
||||
|
||||
<meta property="og:type" content="og:product" />
|
||||
|
||||
<meta property="og:title" content="{{ $product->name }}" />
|
||||
|
||||
<meta property="og:image" content="{{ $productBaseImage['medium_image_url'] }}" />
|
||||
|
||||
<meta property="og:description" content="{{ $product->description }}" />
|
||||
|
||||
<meta property="og:url" content="{{ route('shop.productOrCategory.index', $product->url_key) }}" />
|
||||
@stop
|
||||
|
||||
@push('css')
|
||||
|
|
|
|||
Loading…
Reference in New Issue