Shopify product title and price inline

Solved
fleuparis
Tourist
65 0 12

Hey, i just made my store and i want my product text and product price in line and i have tried everything.

 

Example: BODY WASH    €19

 

Would appreciate it if you would help me.

Theme is Sense

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
4092 939 1146

This is an accepted solution.

Hi @fleuparis 

Check this one,. 

  • 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:

 

.card-information .price {
    margin-top: 0px !important;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1700233363220.png

     

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 12 (12)
Abdosamer
Shopify Partner
333 49 55

Hi @fleuparis , can you share your store url?

Email : abdelrahamansamer71@gmail.com
Buy me a Coffee
Chat on WhatsApp
fleuparis
Tourist
65 0 12
Abdosamer
Shopify Partner
333 49 55

@fleuparis , Go to Component-card.css and add the following :

.card--standard>.card__content .card__information {
    padding-left: 0;
    padding-right: 0;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.card-information {
    width: auto !important;
}
Email : abdelrahamansamer71@gmail.com
Buy me a Coffee
Chat on WhatsApp
fleuparis
Tourist
65 0 12

Where in the file?

 

Abdosamer
Shopify Partner
333 49 55

In you theme files,  choose edit code and search for component-card.css file 

Abdosamer_0-1700224948859.png

 

Email : abdelrahamansamer71@gmail.com
Buy me a Coffee
Chat on WhatsApp
fleuparis
Tourist
65 0 12

yes i know, but where in the file? On the bottom?

 

Abdosamer
Shopify Partner
333 49 55

Yes, in the bottom.

Email : abdelrahamansamer71@gmail.com
Buy me a Coffee
Chat on WhatsApp
fleuparis
Tourist
65 0 12

thanks!

 

Abdosamer
Shopify Partner
333 49 55

Glad it helped, feel free to contact me if you run into any problems in the future.

Email : abdelrahamansamer71@gmail.com
Buy me a Coffee
Chat on WhatsApp
fleuparis
Tourist
65 0 12

Hey @Abdosamer, i have one question. The price shows a little bit lower than the title. How do i change this?

 

Made4uo-Ribe
Shopify Partner
4092 939 1146

This is an accepted solution.

Hi @fleuparis 

Check this one,. 

  • 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:

 

.card-information .price {
    margin-top: 0px !important;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1700233363220.png

     

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Abdosamer
Shopify Partner
333 49 55

Add the following code :

.card-information .price{
    margin-top :0 !important;
}
Email : abdelrahamansamer71@gmail.com
Buy me a Coffee
Chat on WhatsApp