How do I change the icon for opening and close the content in pagebuilder 3?
I would like to have a '+' for open and a '-' for close, is that possible?
Accordion: How to change icon for opening content?
Accepted answer
Marked as the solutionPeter, are you sure that you paste that line from my shared CSS?
.sppb-panel-heading.active .sppb-toggle-direction {
-webkit-transform: none;
transform: none; top: 20%;}
I don't see it.
8 more replies
Hi Peter,
I would use Custom CSS to override FontAwesome icon.
I found the icon for open the accordion in css, but not the icon for close again (the opened accordion item)
Do you have a tip for me?
TRY THAT:
.sppb-panel-faq .fa-chevron-right::before {content: "\f067";}
.sppb-panel-faq .active .fa.fa-chevron-right::before {content: "\f068";}
.sppb-panel-faq .sppb-panel-heading.active .sppb-toggle-direction
{-webkit-transform: none; transform: none; top: 20%;}
use it in template Custom CSS, more in helix guide!
Hi Paul,
It almost fits, the icon for openaccordion item is rotated 90°

It seems to be rotated by code.
WIth "^" it had sense, that's why I also used transform: none in shared code.
please share URL if it do not work.
Hello Paul,
I have added the code again, url in hidden content.
(https://i.imgur.com/v6dWd6m.png)
Paul,
I now have added the last code above and it looks fine!

.sppb-panel-faq .fa-chevron-right::before {content: "\f067";}
.sppb-panel-faq .active .fa.fa-chevron-right::before {content: "\f068";}
.sppb-panel-faq .sppb-panel-heading. Active .sppb-toggle-direction
{-webkit-transform: none; transform: none; top: 20%;}
.sppb-panel-heading.active .sppb-toggle-direction {
-webkit-transform: none;
transform: none; top: 20%;}
Thank you very much!
:)
yes, now looks perfecto.