• Resolved stephl26789

    (@stephl26789)


    I just downloaded the accordion plugin and now where do I add this css code in the editor?

    /* Accordion Styles */
    .accordion {
    border-bottom: 1px solid #dbdbdb;
    margin-bottom: 20px;
    }
    .accordion-title {
    border-top: 1px solid #dbdbdb;
    margin: 0;
    padding: 20px 0;
    cursor: pointer;
    }
    .accordion-title:hover {}
    .accordion-title:first-child {border: none;}
    .accordion-title.open {cursor: default;}
    .accordion-content {padding-bottom: 20px;}

    https://www.ads-software.com/plugins/accordion-shortcodes/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    If you are an administrator you should be able to add it to your sites style.css file by going to Appearance > Editor. Once there, make sure the title at the top says: Stylesheet (style.css), then scroll to the bottom of that file and paste that code in.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If you’re not using a Child Theme, and if the theme doesn’t have a designated section of the dashboard for CSS modifications then do the following:

    1. Install this Custom CSS Manager plugin https://www.ads-software.com/plugins/custom-css-manager-plugin
    2. use its “CSS Code” section of the dashboard to hold your CSS modifications:
    3. (put this code in)

      /* Accordion Styles */
      .accordion {
      border-bottom: 1px solid #dbdbdb;
      margin-bottom: 20px;
      }
      .accordion-title {
      border-top: 1px solid #dbdbdb;
      margin: 0;
      padding: 20px 0;
      cursor: pointer;
      }
      .accordion-title:hover {}
      .accordion-title:first-child {border: none;}
      .accordion-title.open {cursor: default;}
      .accordion-content {padding-bottom: 20px;}
    4. Save

    Alternatively use your Child Theme style.css file to hold your CSS modifications

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding CSS Code’ is closed to new replies.