[wp-trac] [WordPress Trac] #41316: Introduce "Try Gutenberg" callout

WordPress Trac noreply at wordpress.org
Wed Jul 25 05:55:40 UTC 2018


#41316: Introduce "Try Gutenberg" callout
-------------------------------------+-------------------------------------
 Reporter:  melchoyce                |       Owner:  pento
     Type:  task (blessed)           |      Status:  reopened
 Priority:  normal                   |   Milestone:  4.9.8
Component:  Editor                   |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch has-           |     Focuses:  administration,
  screenshots                        |  privacy
-------------------------------------+-------------------------------------
Changes (by pento):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Thank you for the feedback, @andrew.taylor!

 [attachment:"41316.20.diff"] does two things:

 - It only displays the "Install" buttons if we're able to directly write
 to disk to install the plugins. This does exclude FTP/SFTP users, but
 we're not loading the credentials dialog, so the Install button doesn't
 work actually for them.
 - It adds a `try_gutenberg_after_install_button` action, which hosts can
 use to add their own information link to the dialog. It's important to
 note that you will probably need to adjust the CSS, as adding more lines
 to this block causes some overflow.

 For example:

 {{{#!php
 <?php
 add_action( 'try_gutenberg_after_install_button', function() {
 ?>
         <style type="text/css">
                 .try-gutenberg-panel .try-gutenberg-panel-column:not(.try-
 gutenberg-panel-image-column) {
                         grid-template-rows: auto 120px;
                 }
         </style>
         <p><a href="https://support.my.host/gutenberg">Learn more about
 Gutenberg on My Host</a></p>
 <?php
 } );
 }}}

 I've attached some screenshots above of what it would look like with this
 simple link: the HTML you choose to add is entirely up to you. 🙂

 Do you think this setup would work for your case?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/41316#comment:160>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list