• Resolved Thierry

    (@theremingenieur)


    Title says it all: Since the installation the Gutenberg plugin, the unique header setting is not longer available in the single post or single page edit sidebar, even when I select the “classic” editor.

    What can be done to make it re-appear? (Deactivating and reactivating the plugin does not help)

    • This topic was modified 6 years, 8 months ago by Thierry.
Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Ryan Hellyer

    (@ryanhellyer)

    Dangit. That’s not good :/ I’m not sure why this problem is occurring for you, but I will find some time in the next day or so to test this and get back to you about it.

    Thread Starter Thierry

    (@theremingenieur)

    Thank you in advance!

    Plugin Author Ryan Hellyer

    (@ryanhellyer)

    I can’t replicate this problem sorry. I installed Gutenberg and the Unique Headers plugin appears to be continuing to work as expected. This makes sense to me, as I wasn’t aware of them removing any hooks like those used in the Unique Headers plugin just to implement the Gutenberg interface.

    • This reply was modified 6 years, 8 months ago by Ryan Hellyer.
    Thread Starter Thierry

    (@theremingenieur)

    Unfortunately, I can’t see a way to attach screenshots here, but I look the right sidebar in the page editor up and down, unfold all possible options, but there is no option for the unique header displayed.

    • This reply was modified 6 years, 8 months ago by Thierry.
    Plugin Author Ryan Hellyer

    (@ryanhellyer)

    It seems to be working fine for me:

    Thread Starter Thierry

    (@theremingenieur)

    So, it might either be another plugin which causes trouble (will have to deactivate theme one by one) or it is a Safari problem (will install chrome) and report back.

    Thread Starter Thierry

    (@theremingenieur)

    Getting closer… Just checked the editor page’s source code. The meta box is there, but it’s hidden (on my macbook in Safari and Firefox as well as on the iPad) because of the hide-if-js class:

    <div id="custom-header-image" class="postbox  hide-if-js" style="">
    <button type="button" class="handlediv" aria-expanded="true"><span class="screen-reader-text">Toggle panel: Custom header</span><span class="toggle-indicator" aria-hidden="true"></span></button><h2 class="hndle ui-sortable-handle"><span>Custom header</span></h2>
    <div class="inside">
    <input type="hidden" id="custom-header-image-nonce" name="custom-header-image-nonce" value="09fd2bc93a"><input type="hidden" name="_wp_http_referer" value="/wp-admin/post-new.php">
    		<p class="hide-if-no-js" style="display: none;">
    			<a title="Set Custom Header Image" href="javascript:;" id="set-custom-header-image-thumbnail" class="set-custom-meta-image-thumbnail">Set Custom Header Image</a>
    		</p>
    
    		<div id="custom-header-image-container" class="custom-meta-image-container">
    			<img src="https://theremin.academy/wp-content/uploads/2018/03/berlin2018-e1521403756853.jpg" alt="" title="berlin2018">
    		</div><!-- # -->
    
    		<p class="hide-if-no-js hidden">
    			<a title="Remove Custom Header Image" href="javascript:;" id="remove-custom-header-image-thumbnail" class="remove-custom-meta-image-thumbnail">Remove Custom Header Image</a>
    		</p><!-- .hide-if-no-js -->
    
    		<p id="custom-header-image-info" class="custom-meta-image-info">
    			<input type="hidden" id="custom-header-image-id" class="custom-meta-image-id" name="custom-header-image-id" value="1570">
    		</p><!-- #custom-header-image-image-info --></div>
    </div>

    Why could that class be added? When I deactivate temporarily the associated display: none; the meta box is shown and operational.

    • This reply was modified 6 years, 8 months ago by Thierry.
    Thread Starter Thierry

    (@theremingenieur)

    BTW: Even when deactivating all other plugins but Gutenberg, the problem is the same. It does not depend on the Theme either, happens with twenty twelve and with twenty seventeen.

    Plugin Author Ryan Hellyer

    (@ryanhellyer)

    Is it possible that you have JavaScript turned off? the .hide-if-no-js class is presumably used for hiding content when JavaScript is turned off.

    Thread Starter Thierry

    (@theremingenieur)

    Javascript is on, in Safari/Mac, in Firefox/mac and in Safari/iOS.

    I do not longer think that it is a unique headers plugin problem since I see it on different platforms. Seems rather to be a problem with my WP install. Will try to setup a new one on a different server in the next days and see what happens.

    In ever case, thank you for your time and investigating.

    Thread Starter Thierry

    (@theremingenieur)

    Found it. Can’t understand why this happened, but in the user_meta table there was an entry key metaboxhidden_post, where the plugin was listed in the value field. After setting back the value to a:0:{}, the box is visible again. Please accept my apologies for your waisted time!

    Plugin Author Ryan Hellyer

    (@ryanhellyer)

    That is probably the meta key changed when you go to the “Screen Options” section. But I see that section is missing when Gutenberg is loaded, so you couldn’t switch it back. This seems like it’s a bug in Gutenberg.

    Thread Starter Thierry

    (@theremingenieur)

    It definitively is. When I revert to the classic editor, the screen options are available, but in the Gutenberg editor they aren’t, so that I even did not think about that possible cause of the issue. That must have led to my confusion. Silly me! Thank you again for your precious help!

    • This reply was modified 6 years, 8 months ago by Thierry.
    Thread Starter Thierry

    (@theremingenieur)

    Issue opened for the Gutenberg plugin: https://github.com/WordPress/gutenberg/issues/5920

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘No unique header setting available in Gutenberg post edit sidebar’ is closed to new replies.