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.

RELATED ARTICLES

  • Read Customizing Post Pagination

    Customizing Post Pagination

    In this article, I show how CSS can be used to customize the Avada pagination element.

    February 20, 2023

  • Read Accordion Cards

    Accordion Cards

    Another custom accordion example using pseudo element.

    February 17, 2023

  • Read Moving away from builder settings

    Moving away from builder settings

    I am beginning to restructure my site to rely less and less on the Avada element settings in favor of site-wide styling.

    February 12, 2023

  • Read Adding Dynamic Data to a Toggle

    Adding Dynamic Data to a Toggle

    Adding dynamic data to a toggle in Avada is easier than you think.

    February 12, 2023

  • Read Horizontal Image Accordion

    Horizontal Image Accordion

    I just added a demo of an accordion-style image slider using nothing but Avada and some custom CSS.

    February 11, 2023

  • Read Styling the RankMath Sitemap

    Styling the RankMath Sitemap

    If you are a RankMath user, you may know that they recently introduced a feature that automatically generates an HTML version of the XML sitemap. This post is to share the CSS I am using to add some layout to an otherwise long list of links.

    December 11, 2022