[wp-trac] [WordPress Trac] #9931: Extra class for the wrap div's in custom-header.php

WordPress Trac wp-trac at lists.automattic.com
Sun May 24 17:25:40 GMT 2009


#9931: Extra class for the wrap div's in custom-header.php
-------------------------+--------------------------------------------------
 Reporter:  stgoos       |       Owner:                                 
     Type:  enhancement  |      Status:  new                            
 Priority:  normal       |   Milestone:  Unassigned                     
Component:  General      |     Version:                                 
 Severity:  normal       |    Keywords:  custom header, class, has-patch
-------------------------+--------------------------------------------------
 I'm using custom-header.php to complete the options section for my own
 themes but for some themes I only need the image section to be visible>

 Would it be possible to add an extra class reference to the <div
 class="wrap"> sections? This would make it possible for me (and others) to
 ''not'' display the irrelevant sections (and thus avoid questions from
 users about why changes aren't reflected).

 My suggestions is to go for something like this:

 {{{
 <div class="wrap custom-header-text">
 <div class="wrap custom-header-image">
 <div class="wrap custom-header-reset">
 }}}

 And perhaps that:

 {{{
 <div class="wrap custom-header-text">
 <?php screen_icon(); ?>
 }}}

 needs to be changed into something like:

 {{{
 <?php screen_icon(); ?>
 <div class="wrap custom-header-text">
 }}}

 to keep the icon available when you choose to hide the text section.

 Cheers :)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9931>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list