Edit Accordion CSS

Hi,

Is it possible to edit the Accordion CSS ?

As far as I can tell, accordion's CSS doesn't have a css file. It's stylesheet is embeded on html files.

Specifaclly, I would like to turn off the "text-transformuppercase" on ".accordion__title" class.

 

Any way around this ? Or are we limited to the options in the buttons when editing the accordion ?

Tags (1)
6,844 Views
Message 1 of 7
Report
2 Best Answers

Best Answer

Hi there!

Yes that's correct, there isn't a way to change the CSS code per say, but you can create CSS code to override what is already there and add it to the Theme > Edit HTML / CSS. 

View Best Answer >

6,827 Views
Message 8 of 7
Report

Best Answer
Looks like
.accordion__title {
text-transform: Capitalize !important;
}
works

I had a typo in it

Thanks for the help.
Bruno

View Best Answer >

6,821 Views
Message 8 of 7
Report
6 REPLIES 6
Alumni

I don't believe you can change the accordion CSS, but you might be able to override it with some additional code. I'm really not sure, but @BJ or @MTpockets might be able to confirm or deny.

Thanks,

Erin

Weebly Community Manager

6,832 Views
Message 8 of 7
Report

Best Answer

Hi there!

Yes that's correct, there isn't a way to change the CSS code per say, but you can create CSS code to override what is already there and add it to the Theme > Edit HTML / CSS. 

6,828 Views
Message 8 of 7
Report

Hi, 

Thanks for the reply.

I've tried placing the code bellow  on the CSS but nothing worked.

.accordion__title {

text-transform: Capitalize !important;

}

#element-c4efd066-820d-4d03-941f-1088f9afc4bf .accordion--box .accordion__item .accordion__title {

text-transform: Capitalize !important;

}

.accordion__title[stile] {text-transform: Capitalize !important;

}

#element-c4efd066-820d-4d03-941f-1088f9afc4bf .accordion--box .accordion__item .accordion__title[stile] {

text-transform: Capitalize !important;
}

I want to remove the Uppercase from the Accordion header.

Can you please tell me what to put on the CSS since none of my attempts worked ?

Thanks

Bruno

6,823 Views
Message 8 of 7
Report

Best Answer
Looks like
.accordion__title {
text-transform: Capitalize !important;
}
works

I had a typo in it

Thanks for the help.
Bruno
6,822 Views
Message 8 of 7
Report
Square

I know this is an old post, but in case anyone comes across it.. you can turn off the caps by going to Themes>Change Fonts>Paragraph Text. Toggle the Uppercase ON and then OFF. Problem solved! Smiley Very Happy

6,411 Views
Message 8 of 7
Report

thanks for this - I really needed to do it, but am not capable in the html/css department so your solution really helped

5,808 Views
Message 8 of 7
Report