Hello @dibya-cels ,
So there are only two options that you can perform to insert an app-extension-module into the media section of the product page.
1.Admin Extension Points
As of now, Shopify’s extension points don’t include a specific extension point for targeting the Media section of the product page directly, While there is not a pre-defined extension point currently for the media-section at the moment, you can try achieving your goal by targeting a broader area within the product details page and then positioning your app block within the Media section using JavaScript and CSS,
But Shopify is keen on updating their platform and may provide “extension points” that target the media-section of the product’s page in the future.
2.Theme Extension
You can create a custom add block section on your theme extension for your media section within your store that includes your app-extension module and position it on your media-section .
Steps:-
- Design Your App-Extension Module
Create the module that you want to insert into the Media Section, it can include features like images , image galleries ,
videos related to your product etc.
- Create a Custom Section or Block
a. Access Theme Customization:-
First of all Login in to your Shopify Admin Dashboard and find your way to the Online Store and then navigate to Themes section.
b.Edit Theme Code:-
Select the theme you would like to modify and then click on the “more actions” button and Select “edit code” from the dropdown to access the Code Editor.
c.Create a New Section or Block:-
On the left side you can see the “edit code” page structure which has all the templates, sections, Layouts that your theme uses.Create a new section where you can insert your app-extension module. You can achieve this by clicking on the “Add a new section” button.
Write the liquid code for your “Media-section” and style it with HTML,CSS and Java script depending on how you want your module to look and work.
- Integrate Your Module with Product Template
a. Finding Product Template:
On the left hand side of the “edit code” page structure , find the product’s template file (product,json ,product.liquid or similar) inside the “Sections” folder.
b. Add Your Custom Section or Block:
Inside the Product template file, insert/include the custom section you created earlier by rendering the section in the liquid code wherever you desire it to appear on the product page.
- Customize Module Placement
a.Identify Media Section:
Write a Liquid Code to identify your Media Section in the product details page , it should include targeted HTML elements and classes that are used.
b.Position Your Module:
Create the desired css styling to place the section you created with your default “Media-section”, you can include margins, paddings etc.
- Test Your Integration
Finally, test the following integration and publish your changes, to make the “Media-section” available on your Shopify Store.