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.