How do I add an image above the product name on my product page?

On my product pages, I want to add an image above the product title.

Here, there will be a favorite review of my favorite customer.

I want to scroll everything else down a bit and add the image. How can I do that?

Store’s URL: https://buythewall.com/products/trump-adidas-collab-hoodie

Hello @FelaC

To add an image above the product name on your Shopify product page, you’ll need to modify your theme’s Liquid code. Here are the steps to do this:

  1. Access the Theme Editor:
  • From your Shopify admin, go to Online Store > Themes.
  • Find the theme you want to edit and click Actions > Edit code.
  1. Locate the Product Template:
  • In the Sections or Templates directory, find the main-product.liquid file. It might also be named something similar, depending on your theme (e.g., product-template.liquid).
  1. Modify the Liquid Code:
  • Open the product.liquid file.
  • Locate the code for the product name. This is often within a

    or

    tag with a class like product-title. It might look something like this:

  • {{ product.title }}

  1. Insert the Image Code:
  • Above the product name code, insert the HTML for your image. You can use the following code snippet, replacing image_url with the actual URL of the image you want to display:

{{ product.title }} Image

  • For example, it should look like this:

{{ product.title }} Image

{{ product.title }}

  1. Save and Preview:
  • Save the changes to the main-product.liquid file.
    Go to your product page on your store to preview the changes and ensure the image appears above the product name.
  1. Adjust Styling (Optional):
  • If needed, you can adjust the styling of the image by adding CSS rules in your theme’s CSS file (usually found in assets/base.css).

For example:

.product-page-image {
width: 100%;
max-width: 300px;
margin-bottom: 10px;
}
By following these steps, you can successfully add an image above the product name on your Shopify product page.

It broked I think. Doesn’t show up.

I found the code you said in the main.product liquid file. I pasted the image_url code you showed right above that code.

I uploaded my photo to Shopify My Content. I copied the URL and pasted it into the image_url section. I saved and refreshed my page, but this is what happened