In a recent project and for this site’s new menu, I needed to change the default of the toggle heading and place the icon on the right side but not pushed the full width of the toggle panel. Fortunately, this is easy to do with a couple of lines of CSS.

Since it is unlikely this would be appropriate for every toggle element, simply assign a class to the toggle element — in this example, I used main-menu__accordion. The targeted elements are the panel-heading and the fusion-toggle-heading with the latter reducing the space between the text and the icon.

.main-menu__accordion .panel-heading {
  display:flex!important;
}
.main-menu__accordion .fusion-toggle-heading{
  margin-right: 16px!important;
}

Originally published on Sept. 25, 2022

Colorful Vespa scoot parked in front of a brick wallPlugin Possibilities - Webyx
coffee latte near white wireless keyboard and Apple EarPods on the table photographyCustomizing the Off Canvas Background

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.