Centralize related products ( Title )

Centralize related products ( Title )

Suco
Explorer
117 0 14

IMG_2758.jpeg

 Hello guys , do you know a code to centralised this title ( YOU MIGH ALSO LIKE ) 

thanks guys 

 https://www.behumblee.com/

Pass-Humblee3030

Replies 2 (2)

niraj_patel
Shopify Partner
2391 516 515

Hello @Suco 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
   .related-products__heading {
      text-align: center !important;
   }
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

Made4uo-Ribe
Shopify Partner
10036 2387 3014

Hi @Suco 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

product-recommendations.related-products h2 {
    text-align: center !important;
}

 

And save. 

Result:

Made4uoRibe_0-1716570399098.png

If the code wont work on the mention files. 

You can paste the code on the custom css on the customize theme edits.  Just go on the product pages. 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.