Collapse Magic (CLAPS)

설명

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.

스크린샷

  • Sample shortcode including the expand title (title) and the collapse (swaptitle) attributes.
  • Alternative notation for the shortcode where ‘magic_expand’ is replaced by ‘expand’.
  • Text displayed on the front-end (collapsed).
  • Text displayed on the front-end (expanded) when the read-more text is clicked. Notice that any content can be used between the shortcode tags.
  • Settings Menu values. The default values, icons and displayed text values can be set on the Settings menu. Notice the ‘enabled’ button can be used to switch the plugin off.
  • Changing the block height and the fade height changes the way the text is displayed.
  • The content display fades to the read-more link when the Block Height and Fade Height values are increased.

설치

  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’

FAQ

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.

Will this plugin have a negative effect 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.

후기

2024년 7월 24일 답글 2개
I have used Collapse-O-Matic and I was very excited, I am afraid this one simply does not work…
2024년 6월 13일
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.
모든 2 평가 읽기

기여자 & 개발자

“Collapse Magic (CLAPS)”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Collapse Magic (CLAPS)”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

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