Hybrid store using shopify theme and custom storefront

Eydwales
New Member
2 0 0

Hi all,

We'd like to use a fancy page for our collection page. For that, we can use the storefront API with our own server-side rendering app.
However, is it possible for our website to use the Shopify theme except for the collection page that will use our custom storefront?

 

Thanks !

0 Likes
Jayvin
Shopify Partner
162 24 34

Hi,

Everything is possible.

Just remove whatever is inside /templates/collection.liquid and add your fancy app code in that file.

Example might be like this below:

<div id="my-fancy-app">
</div>
<script src="/my-fancy-app.js"></script>
......

 

 

0 Likes
Eydwales
New Member
2 0 0
Hi, thank you for your response.

I'd like it to be read by Google Crawler, so I want my page to be rendered
server side, not dynamically on the client side.
0 Likes
Jayvin
Shopify Partner
162 24 34

Hi,

You will not able to load server side content from your own server app. Dynamic client side rendering is possible and you need to send a pageview when the contents has loaded. The content will be tracked by google then. More info here 

0 Likes