Collapse Magic (CLAPS)
Collapse Magic (CLAPS)

Collapse Magic (CLAPS)

creatorseo

Collapse Magic provides an easy way to display (collapsible) read-more text on a page. This plugin is an alternative to other plugins like collapse-o-matic and can be used as a direct replacement without the need for any changes to page content.

Features

  • Easy to implement
  • Configurable expand and collapse titles
  • Configurable up and down arrows
  • Adjustable visible text height in the collapsed state
  • Adjustable fade-out text visible in the collapsed state

Background

Collapse Magic provides an easy way to display (collapsible) read-more text on a page. Also, display a few lines of text and add read-more or expand text.

This plugin was developed when a cross-site scripting vulnerability was identified in collapse-o-matic. This plugin can be used as a direct replacement to collapse-o-matic. There is no need for any on-pages changes to be made for the plugin to work.

Set-up

  • Install the plugin
  • Set any parameters from the admin Settings menu.
  • Place text between [magic_expand][/magic_expand] tags or between [expand][/expand] for the toggle to work.
  • Include alternate ‘read-more’ text if this is required in the shortcode as [magic_expand title=”NEW READ-MORE TEXT”].
  • Use alternate ‘read-less’ text if this is required in the shortcode as [magic_expand swaptitle=”NEW READ-LESS TEXT”].
  • Single click disable button to switch off the shortcodes and show the full text.

Credits

This plugin was inspired by the approach used by:
Nelson Miller: How To Expand And Collapse Text In Divi: the jQuery code was modified for this plugin.

Will this Plugin work with any theme?

Yes, the plugin is theme independent.

Can I display a different drop-down arrow and drop down text?

Yes, the settings can be configured from the styling page.

Where do I find the button styling options?

Click on Collapse Magic option on the WordPress ‘Settings’ admin menu.

Can I place the ‘read-more’ and ‘read-less’ text above the text?

Yes, go to settings>collapse magic>Toggle Above and set this to ‘on’. The toggle text will display above.

Can I display some teaser text to encourage the visitor to click the read-more button?

Yes, if you go to settings>collapse magic>Block Height and increase the value, you can display teaser text. You can also change the fade-out height for disappearing text.

Does the fade text work with the toggle text above the block text?

Yes, the fade works as long as the Block height is set to a value greater than 1px.

Will this plugin have a negative impact on my website?

We make every effort to ensure that all the WordPress guidelines are followed and that our plugins are optimised to perform well in all our tests.

If I install the plugin and the styling does not look correct, what should I do?

The very first time you view the page after installing the plugin you may need to refresh the page (ctrl+F5) to ensure that the new style and script libraries are initiated. If needed this should be a once-off refresh. Everything should be fine thereafter.

Great Collapse-o-matic replacement

By Bob33 on August 29, 2024

Clean, light-weight and does what's needed. Breath of fresh air!

Thanks!

One of my use-everywhere plugins

By Jacko (jacko7) on August 7, 2024

No problems at all. Works perfectly every time for me. I like the fade functionality which even works for images, a pleasant surprise.

Working perfectly for me

By johncaldwell1000 on August 1, 2024

The Plugin works perfectly for me

Does not work

By mariusenepaq on July 26, 2024

it's trying to work but working improperly

Not working

By imanwlas on July 24, 2024

I have used Collapse-O-Matic and I was very excited, I am afraid this one simply does not work...

Good alternative

By digidyle on June 13, 2024

Thank you, I was concerned about vulnerabilities in collapse-o-matic but loved the functionality. First impressions of collapse-magic are good and it was an easy to implement alternative. I also like the text fade.

1.3.1

  • Removed the restriction on the amount of text that could be contained in the read-more block.

1.3.0

  • Included the option to place the read-more and read-less above or below the text (thanks to @bob33 for the suggestion).

1.2.2

  • Fix applied to allow shortcodes within the shortcode (thanks to @bob33 for identifying this bug).

1.2.1

  • Change the default fade and block settings as these were confusing to new users.

1.2.0

  • Scroll back to the original read-more text included. Checks following feedback from a user investigated but no issues could be found.

1.1.0

  • Improvements to better meet WordPress Plugin requirements

1.0.1

  • Launch version

0.0.1

  • Pilot launch April 2024
  1. Upload ‘Collapse Magic’ to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Click on ‘Collapse Magic’ in the Settings menu to set global links or
  4. Go to the Plugins page and click the ‘Settings’ link for ‘Collapse Magic’
  5. Increase the display block value if you want to display some fade-to text.

Reviews

3.7 out of 5 stars

  • Version: 1.3.1
  • Last updated: 4 days ago
  • Active installations: 300
  • WordPress version: 6.1
  • Tested up to: 6.6.2
  • PHP version: 7.3