Title: Custom Accordion
Author: imajade
Published: <strong>5. meje 2024</strong>
Last modified: 5. meje 2024

---

Tykače pytać

![](https://ps.w.org/custom-accordion/assets/banner-772x250.png?rev=3081481)

Tutón tykač **njeje so z najnowšimi 3 hłownymi wersijemi WordPress testował**. Snano
so hižo njewothladuje abo njepodpěruje a ma problemy z kompatibelnosću, hdyž so 
z nowšimi wersijemi WordPress wužiwa.

![](https://ps.w.org/custom-accordion/assets/icon-256x256.png?rev=3081481)

# Custom Accordion

 Wot [imajade](https://profiles.wordpress.org/imajade/)

[Sćahnyć](https://downloads.wordpress.org/plugin/custom-accordion.zip)

 * [Podrobnosće](https://hsb.wordpress.org/plugins/custom-accordion/#description)
 * [Pohódnoćenja](https://hsb.wordpress.org/plugins/custom-accordion/#reviews)
 *  [Instalacija](https://hsb.wordpress.org/plugins/custom-accordion/#installation)
 * [Wuwiće](https://hsb.wordpress.org/plugins/custom-accordion/#developers)

 [Podpěra](https://wordpress.org/support/plugin/custom-accordion/)

## Wopisanje

The Custom Accordion plugin allows you to easily create accordions in your WordPress
posts, pages, and widget areas. Simply use the [ca-accordion] and [ca-accordion-
item title=“Your Title Here“]

<

p>Your Content Here

<

p>[/ca-accordion-item][/ca-accordion] shortcodes to create accordions.

### Arbitrary section

The Custom Accordion plugin is optimized for performance by conditionally loading
its assets. This helps prevent unnecessary HTTP requests on pages where the accordion
functionality is not needed. The plugin now supports accordion shortcodes in ‚text‘
widgets, making it even more versatile.

#### Advanced Customization

For developers looking to further customize the accordions, the plugin provides 
CSS classes that can be easily targeted for custom styles. You can add your custom
CSS in your theme’s stylesheet to change the look and feel of the accordion to match
your site’s design.

#### Troubleshooting

If you encounter any issues with the display of accordions on your site, first ensure
that there are no JavaScript conflicts with other plugins by disabling other plugins
one by one to identify any conflicts.

#### Future Enhancements

Future updates may include new features such as:
 – Multiple accordion styles to
choose from. – Integration with the WordPress Customizer for adjusting styles.

#### Feedback and Support

For feedback, support, and suggestions, please visit the support forums on the WordPress
plugin directory page or the GitHub repository page.

Remember, if you enjoy using the Custom Accordion plugin and find it useful, rate
it and leave a review on the WordPress plugin directory page. Your feedback is appreciated
and it helps to improve the plugin!

### Sample Shortcode Usage

[ca-accordion]
 [ca-accordion-item title=“Section 1″]

<

p>This is the first section of the accordion.

<

p>
 [/ca-accordion-item] [ca-accordion-item title=“Section 2″]

<

p>This is the second section of the accordion.

<

p>
 [/ca-accordion-item] [/ca-accordion]

## Fota wobrazowki

[⌊Screenshot 1.⌉⌊Screenshot 1.⌉[

Screenshot 1.

[⌊Screenshot 2.⌉⌊Screenshot 2.⌉[

Screenshot 2.

## Instalacija

 1. Upload the plugin files to the `/wp-content/plugins/custom-accordion` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‚Plugins‘ screen in WordPress
 3. Use the [ca-accordion] and [ca-accordion-item title=“Your Title Here“]

<

p>Your Content Here

<

p>[/ca-accordion-item][/ca-accordion] shortcodes to create accordions.

## HSP

### Can I use HTML inside the accordion content?

Yes, HTML can be used within the content of each accordion item.

### Is there a limit to the number of accordion items I can add?

No, you can add as many accordion items as you want.

## Pohódnoćenja

Za tutón tykač pohódnoćenja njejsu.

## Sobuskutkowarjo a wuwiwarjo

„Custom Accordion“ je softwara wotewrjeneho žórła. Slědowacy ludźo su k tutomu tykačej
přinošowali.

Sobuskutkowarjo

 *   [ imajade ](https://profiles.wordpress.org/imajade/)

[Přełožće „Custom Accordion“ do swojeje rěče.](https://translate.wordpress.org/projects/wp-plugins/custom-accordion)

### Na wuwiću zajimowany?

[Přehladajće kod](https://plugins.trac.wordpress.org/browser/custom-accordion/),
hladajće do [SVN-repozitorija](https://plugins.svn.wordpress.org/custom-accordion/)
abo abonujće [wuwiwanski protokol](https://plugins.trac.wordpress.org/log/custom-accordion/)
přez [RSS](https://plugins.trac.wordpress.org/log/custom-accordion/?limit=100&mode=stop_on_copy&format=rss).

## Protokol změnow

#### 1.3.0

 * Added GPL-2.0+ license declaration in the plugin header.
 * Added a check to prevent direct file access to the plugin.
 * Changed prefixes of functions, shortcodes, and CSS classes to „ca_“ for uniqueness
   and to avoid conflicts.
 * Updated shortcode names to use the „ca-“ prefix.
 * Updated CSS selectors to match the new class names with the „ca-“ prefix.

#### 1.2.0

 * Added support for accordion shortcodes in ‚text‘ widgets.
 * Optimized code to conditionally load assets only when accordion shortcodes are
   present in posts, pages, or widgets.
 * Refactored code for better readability and maintainability.

#### 1.1.1

 * Fixed stable tag mismatch issue.
 * Ensured consistent versioning across all plugin files.

#### 1.1.0

 * Performance improvement: Conditionally load styles and scripts only on pages 
   with accordions.
 * Security fix: Escaped title attribute in shortcode output to prevent XSS attacks.
 * Other minor bug fixes and improvements.

#### 1.0

 * Initial release.

## Meta

 *  Version **1.3.0**
 *  Last updated **3 lěta**
 *  Active installations **10+**
 *  WordPress version ** 5.0 abo nowši **
 *  Tested up to **6.4.14**
 *  Language
 * [English (US)](https://wordpress.org/plugins/custom-accordion/)
 * Tags
 * [Accordion](https://hsb.wordpress.org/plugins/tags/accordion/)[custom-accordion.](https://hsb.wordpress.org/plugins/tags/custom-accordion/)
   [Responsive accordion](https://hsb.wordpress.org/plugins/tags/responsive-accordion/)
 *  [Rozšěrjeny napohlad](https://hsb.wordpress.org/plugins/custom-accordion/advanced/)

## Pohódnoćenja

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/custom-accordion/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/custom-accordion/reviews/)

## Sobuskutkowarjo

 *   [ imajade ](https://profiles.wordpress.org/imajade/)

## Podpěra

Chceće něšto prajić? Trjebaće pomoc?

 [Forum pomocy pokazać](https://wordpress.org/support/plugin/custom-accordion/)