[wp-meta] [Making WordPress.org] #2633: Make full description 'read more' link larger or remove

Making WordPress.org noreply at wordpress.org
Fri Mar 31 21:56:55 UTC 2017


#2633: Make full description 'read more' link larger or remove
------------------------------+------------------
 Reporter:  brianhogg         |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:
Component:  Plugin Directory  |  Resolution:
 Keywords:                    |
------------------------------+------------------

Comment (by kevinwhoffman):

 Replying to [comment:10 brianhogg]:
 > I think if the plugin author wants to have the screenshots further down
 in favour of a longer description, it should be there choice.  Could have
 it expanded by default, and provide a `<!--more-->` type mechanism to put
 a read more button if the plugin author wishes?

 I may be on board with that. One challenge would be properly setting the
 height of the Description so as to end at the correct line of content just
 before the `<!--more-->` tag in the Readme. The current `max-height` is
 set to `400px`.

 If we could detect the `<!--more-->` tag and wrap everything before it in
 a container, that would allow us to position the "Read more" link without
 any tricky JS height-detection based on content.

 Everything after the  `<!--more-->` tag could be wrapped in `.screen-
 reader-text` and that class could be removed upon clicking the "Read more"
 link, thus revealing the entire Description.

 With this approach, the full Description would be accessible on page load
 and the challenge of dynamically positioning the "Read more" link would be
 mitigated.

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2633#comment:12>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list