Example Keep for Reference on Shortcodes

Accordion with image

The first accordion, accordion_image, has three fields plus the content: image, title, trigger and the content. You can use any size image as long as it is at least 600px wide. If you put two of these shortcodes side-by-side like the example below, then it is good to use the same size image so that it looks even/good. FYI…both instances of accordion_image shortcode below are put on the page without any line below them. That is so that WordPress does not add a break and mess up the design. So it is a bit hard to tell from the example below where one starts and the other one ends. Although, it is important not to put a break between them. Here is a text file with the code for both types of accordion.

  • image=”https://www.confenv.com/wp-content/uploads/2022/10/testing.jpg” (full url to the image)
  • trigger=”About Edward” (this is the text that is clicked to trigger the accordion)
  • title=”Edward G Smith” (this is the text that overlays the image)

About Edward
Kon hoppade over mina stjarnor vart tog regnbagens giraff ga? Jag ser det sa giraffen med rosa prickig ost att prata med mannen pa manen. Finns det en kvinna pa andra sidan av manen ljuset sot. Sag du dar jag uttryckte det. Ja det ar det. Efter dagen efter igar nar morgon ar nasta efter det. Det ar pa vag att ta det till banken och lagga den i kontroll. Ja kontroll pa det. Jag tror du har ratt i dag. Igar kunde ha varit nar osten mannen landade pa moonbeam.
The Persons Name
About This Person
Kon hoppade over mina stjarnor vart tog regnbagens giraff ga? Jag ser det sa giraffen med rosa prickig ost att prata med mannen pa manen. Finns det en kvinna pa andra sidan av manen ljuset sot. Sag du dar jag uttryckte det. Ja det ar det. Efter dagen efter igar nar morgon ar nasta efter det. Det ar pa vag att ta det till banken och lagga den i kontroll. Ja kontroll pa det. Jag tror du har ratt i dag. Igar kunde ha varit nar osten mannen landade pa moonbeam.

 

Accordion without image

This accordion has only the trigger and content.

Why was Cinderella dropped from the soccer team?
She kept running away from the ball.
Why are art collectors such big fans of gasoline?
Because it makes their Van Gogh.