Jump to content


This topic is now archived and is closed to further replies.


Accordion transparent background

Recommended Posts




How do I do a accordion with a transparent background? 


FOr example, using this code (from http://demo.pagelines.me/tools/):



  1. [pl_accordion name="accordion"][pl_accordioncontent name="accordion" number="1" heading="Tile 1" open="yes"]
  2. Content 1
  3. [/pl_accordioncontent][pl_accordioncontent name="accordion" number="2" heading="Title 2"]
  4. <img class="pl-imageframe" src="http://placekitten.com/285/125" alt="" />
  5. [/pl_accordioncontent]
  7. [/pl_accordion]


The following didn't work with the div is put on either side. Nor does bg-color:

<div style="background: rgba(255, 255, 255, 0.0);"></div>

Share this post

Link to post
Share on other sites

The correct way to do this is to add CSS styling to the element. 


I recommend using Firebug or your browsers built-in web dev tools and inspect the Accordion sections to find the correct code.


For assistance visit our custom CSS documentation - http://support.pagelines.me/docs/customization/custom-css/

The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 


Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post

Link to post
Share on other sites

Oh  thanks for that. :) HUGELY APPRECIATED! That is an amazing tool (in Chrome).


However, I can't get it to select the element I want to work with. 


How do I implement the code on the page or through pagelines > site options > custom CSS?



element.style {
  1. background-colorrgba(255, 255, 255, 0.0);

Share this post

Link to post
Share on other sites

Wrap the entire accordion code into a div with a unique class as below:

  1. <div class="myownaccordion">
  2. [pl_accordion name="accordion"][pl_accordioncontent name="accordion" number="1" heading="Tile 1" open="yes"]
  3. Content 1
  4. [/pl_accordioncontent][pl_accordioncontent name="accordion" number="2" heading="Title 2"]
  5. <img class="pl-imageframe" src="http://placekitten.com/285/125" alt="" />
  6. [/pl_accordioncontent]
  7. [/pl_accordion]
  8. </div>

Then, apply your CSS to the unique class:

.myownaccordion {

background-color: transparent;


Former PageLines Moderator, Food Expert and Raconteur

Share this post

Link to post
Share on other sites

Had to dig into the CSS to get a transparent accordion working on DMS.


Two classes to style were:





If you use a rgba background you can get nice effects if you have a background beneath it like:

.accordion-group {
  background: rgba(255, 255, 255, 0.2);
  border: none;}

.accordion-heading {background: rgba(255, 255, 255, 0.3);
  border: none;}

Share this post

Link to post
Share on other sites

Thanks for sharing that grahamd79! :)

Former PageLines Moderator, Food Expert and Raconteur

Share this post

Link to post
Share on other sites

  • Similar Content

    • balfred1345
      By balfred1345
      I'm using El Sue's Accordion plugin  V1.7.4 in DMS2 using WP 4.4.1.
      I've created a set "Jobs2", and selected three accordions for the set. Here's a screen shot: http://screencast.com/t/MXYR9p1QoEAo
      The "accordion set to show" selection box no longer works, and all accordions I've made are showing instead of the set "Jobs2"  You can see this here: http://whub34.webhostinghub.com/~videoh6/cidev2.com/jobs-at-piepho/
      I've deactivated all plugins to see if there was a conflict, and there does not seem to be one, as the accordion selector problem persists even with plugins off. 
      Can you please tell me how to fix this so the "accordion set to show" selector works again?
    • jagipson
      By jagipson+
      I am trying to make a header like the following site: http://www.nd.edu/
      They have their logo with a blue and yellow bar. Above the blue bar its actually transparent. You can see the image underneath of the building. How can I accomplish this with the Fixed section on DMS? I just started the build here:  http://recruiterwebsitedesign.com/polymer/
      When I scroll down the bar in transparent but the top is white which looks like its the site wrap background. How can accomplish this?
    • lmillslagle
      By lmillslagle
      Hi, I'm using the accordion shortcode on this page: http://actonline.org/releases/
      And it works well for the first ten items and item 20, but it won't open 11-19.
      I checked the shortcodes and the non-working ones match the working ones (aside from the number and heading). I tried deactivating all plugins and still no dice. Any idea what the issue is?
    • kwp4petar
      By kwp4petar
      Hi, i'm trying to get the hover background to be completely transparent.  The closest i've gotten so far is using a 75% opacity grey box I made in photoshop and set that as a background-image:
      .jgHover figure {
        background-image: url("...");
      but that only changed one of the hover 'tiles', and even then the transparency revealed a blue (and now grey) box behind it.  
      My goal here is to have a 100% transparent box with a 2px white outline and the header showing, and that's it.  Then it behaves like normal with showing the content.
      Another question I have is: How do I know what a good image size is to use for this section?

      On your site you have a beautiful 3x3 layout of your staff with no spacing in between what so ever, each having a unique animation. How was that accomplished? Was special padding customizations used?
      Also, when I played with the animations on first installing the section, I noticed that the image gets a grey 'overcast'(?) over it.  Here's an image below using the Niall animation on the far left, while the other two remain as Charlie:

      (side question: what is the default size image being used here?)
    • jharri74
      By jharri74
      Hello, is there a way to add a class to an accordion heading? I've read posts that say a unique class is added to each accordion heading of an accordion but I don't see that when i inspect the element in chrome or in firebug. I'm trying to duplicate this (see attached) where each section (eg: main courses) shows the list items and prices of each item within. Here's my current page: