Ez a bővítmény nem lett tesztelve a WordPress legutóbbi 3 fő kiadásával. Lehetséges, hogy már nincs karbantartva, frissítve és a használata gondot jelenthet a frissebb WordPress verziókkal.

WP-ShowHide

Leírás

By default the content is hidden and user will have to click on the „Show Content” link to toggle it. Similar to what Engadget is doing for their press releases. Example usage: [showhide type="pressrelease"]Press Release goes in here.[/showhide]

Usage

  1. By default, content within the showhide shortcode will be hidden.
  2. Example: [showhide]Press release content goes in here.[/showhide]
  3. Default Values: [showhide type="pressrelease" more_text="Show Press Release (%s More Words)" less_text="Hide Press Release (%s Less Words)" hidden="yes"]

  4. You can have multiple showhide content within a post or a page, just by having a new type.

  5. Example: [showhide type="links" more_text="Show Links (%s More Words)" less_text="Hide Links (%s Less Words)"]Links will go in here.[/showhide]

  6. If you want to set the default visibility to display.

  7. Example: [showhide hidden="no"]Press release content goes in here.[/showhide]

  8. You can style the content via CSS that is generated by the plugin. Here is a sample of the generated HTML. Note that pressrelease is the default type.

<div id="pressrelease-link-1" class="sh-link pressrelease-link sh-hide">  
  <a href="#">  
    <span id="pressrelease-toggle-1">Show Press Release (4 More Words)</span>  
  </a>  
</div>  
<div id="pressrelease-content-1" class="sh-content pressrelease-content sh-hide" style="display: none;">Content</div>
  1. With the example above, here are the following styles you can use in your CSS:
.sh-link A { }  
.sh-content { }  
.pressrelease-link { }  
.pressrelease-link.sh-hide A { }  
.pressrelease-link.sh-show A { }  
.pressrelease-content { }  
.pressrelease-content.sh-hide { }  
.pressrelease-content.sh-show { }

Fejlesztés

https://github.com/lesterchan/wp-showhide

Fordítók

http://dev.wp-plugins.org/browser/wp-showhide/i18n/

Köszönet

Adományok

A szabad időm nagy részét a bővítmény megalkotásával, frissítésével, karbantartásával és a támogatással töltöm. Amennyiben a bővítményt igazán hasznosnak tartjuk, ne sajnáljunk néhány dolcsit ennek a kedves, szeretetreméltó szerzőnek adományozni, mert igazán jól jönne neki is egy kis segítség. Ha nincs lehetőségünk adni pár dollárt, akkor sincs nagy baj; minden további nélkül használjuk sok szeretettel a bővítményt. Majd, a egyszer tellik rá, akkor ne feledje… 😉

Képernyőmentések

  • Show More – Press Release
  • Hide More – Press Release
  • Editor – Short Code

GYIK

N/A

Vélemények

2022.02.09.
I don’t understand why developers take the time to write a plugin and then don’t bother to provide detailed documentation. Looks like it might do what I want but I give up trying and notice a lot of support requests have not been replied to.
2021.01.30.
Simple and working plugin. Tried several more, but they had issues with filter Im using on my page, this one worked like a charm. Additionally I would recommend to add an option to show hide button on the bottom of displayed text.
2020.12.23. 1 reply
Love this plugin. Had a little panic that it wasn’t going to work with Wordpress 5.6 and php 7.4, but it does. Please keep maintaining this plugin! (I just sent my donation.)
2020.09.20.
It’s a great idea and could be very useful but it doesn’t work on the current WP version. The site I was trying to use this on uses WP 5.5.1, with plugins Akismet, Feed Them Social, Feedzy, and Lightbox. I figure this plugin may be incompatible with one of those plugins or this current version of WP. The link doesn’t do anything when clicked and the wrong text is showing up. Even though I changed the shortcode to say ‘MORE INFO’ it still said Press Release along with the additional number text and a number next to it. I didn’t see settings anywhere for this plugin.
2020.08.17.
It is a nice plugin, but can I use it for css ass wel? To hide a row or a div?
41 (az összes) vélemény olvasása

Közreműködők és fejlesztők

“WP-ShowHide” egy nyílt forráskódú szoftver. A bővítményhez a következő személyek járultak hozzá:

Közreműködők

“WP-ShowHide” 2 nyelvre lett lefordítva. Köszönet a fordítóknak az áldozatos munkájukért!

“WP-ShowHide” fordítása a saját nyelvünkre.

Érdekeltek vagyunk a fejlesztésben?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Változási napló

Version 1.05

  • FIXED: esc_attr type attributes to prevent XSS

Version 1.04

  • NEW: Added aria-hidden and aria-expanded to elements

Version 1.03

  • NEW: Added .sh-link and .sh-content as a standard class name on top of the type specific class name.
  • NEW: Added do_shortcode() to allow shortcode to be parsed within ShowHide

Version 1.02

  • FIXED: Some theme uses .hide as display: none and hence I have changed .show to .sh-show and .hide to .sh-hide to advoid conflicts.

Version 1.01

  • NEW: Added additional show or hide class to the link and content depending on the visiblity of the content to allow more precise CSS styling.

Version 1.00 (01-05-2011)

  • FIXED: Initial Release