Inhalte aufrufen

Profilbild

size in homepage slider on product template


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
1 Antwort zu diesem Thema

#1 juanholgado

juanholgado

    Advanced Member

  • Members
  • 32 Beiträge

Geschrieben: 16 September 2019 - 12:17

Hi i want to reduce the text size in homepage slider, 

in the Slider type product

where can i do it?



#2 Marcel Schmidt

Marcel Schmidt

    SmartStore AG

  • Administrators
  • 53 Beiträge

Geschrieben: 16 September 2019 - 13:47

Hi juan,

 

to change ContentSlider text-size you can add some attributes to slider css classes. When inspecting the slider in the browser (f12 in chrome), you can see the title and subitle in html. Title has a slide-title class, besides others. Sub-Title has slide-subtitle class.

You can add a font-size attribute to these two classes.

 

Open you _user.scss located in your theme under

 

Themes > [your theme] > Content > _user.scss

 

now you can add font-size like

 

.slide-title {
    font-size: 2rem !important;
}
.slide-subtitle{
    font-size: 1rem !important;
}
 
replace values with your desired ones.
 
Best regards