Solved

How to remove text and button on mobile mode

user_000
Tourist
6 0 1

Hello everybody, I am using the Brookyln theme and am not sure how to add the following to my theme.scss.liquid file:

 

@media (max-width: 600px) {

.carousel-caption {

display: none; /* Hide the carousel text when the screen is less than 600 pixels wide */

}

.button {

display: none; /* Hide the button when the screen is less than 600 pixels wide */

}

 

If someone could let me know, that would be great and send me a screenshot of where to add or change the code. In addition, how do I style my company name on my homepage using css? I would like use to center the second part of my company store name, such as the following:

Coffee Cup

      Cafe --get the cafe in the center under Coffee Cup Thanks.

Accepted Solutions (2)
Katy
Shopify Staff
779 43 178

This is an accepted solution.

Hi, @user_000 !

 

Katy here from Shopify. I hope all is well. 

 

@oscprofessional is indeed 100% on where you should add this code - you can place it at the bottom of the CSS - your Custom Style Sheet. 

 

For the Brooklyn theme however, we will need to change the code here to replace the .carousel-caption class for it to work correctly. I have taken a look on my own test store and the following code should do the trick for you: 

 

 

@media screen and (max-width: 600px) {
      .hero__slide a.hero__cta, .hero--adapt a.hero__cta, .hero__subtitle {
        display: none; 
   } 
}

 

As this is located within your theme's CSS I strongly recommend to test this in a duplicate version of your theme (if you have not done so already) as this file cannot be rolled back. 

 

Do let us know how this goes for you.

 

Regarding your second query. Do you have a link to your store or an example screenshot that you can share here for this? This is the best way for forum users to get a clear idea of what you would like to achieve. 

 

Cheers,
Katy

 

Please note: This account is no longer regularly monitored.
 - If you need assistance please do start a new topic (referencing an older topic/post if you find this helpful).
 - Thank you for your understanding. We hope you enjoy exploring the Community.
 - To learn more visit the Shopify Help Center or the Shopify Blog.

View solution in original post

Katy
Shopify Staff
779 43 178

This is an accepted solution.

Ah that is brilliant to hear,  @user_000  great stuff!

 

Regarding the image on your homepage, there is the option to add something similar with the theme’s in-built, custom content section. You can add this via your: Theme customizer > Add section > Image with text. Let me show you on my sample store:

 

06-18-ptr43-4tpts

 

This can be aligned to the left or right, and can be moved on your homepage using the drag and drop function. You can even add a button with a link to your blog for example. Do you think this would work for you?

 

In terms of responsiveness - absolutely! Each theme available from the Shopify theme store is responsive, and is built to be fully adaptive to mobile/smaller devices.

 

Shopify does not use Bootstrap, no. It has instead its own stye sheet (theme.scss.liquid,  for example). This is built-in to each theme. Generally there is no need to add a style library on top of this, and it may prove more harm than good in trying to get these to work with one another. This would not be something that our team would be able to help with or support should you get stuck.

 

If you are interested in editing code, I suggest having a look through the liquid style options in our guide here and here, as well as in our design tutorials. Alternatively if you would like for our Theme support to help, we offer 1 hour Design time on all free Shopify themes, provided that you are on a paid plan. 

 

I hope this helps!

 

Cheers, 
Katy

Please note: This account is no longer regularly monitored.
 - If you need assistance please do start a new topic (referencing an older topic/post if you find this helpful).
 - Thank you for your understanding. We hope you enjoy exploring the Community.
 - To learn more visit the Shopify Help Center or the Shopify Blog.

View solution in original post

Replies 10 (10)