[wp-trac] [WordPress Trac] #56337: Twenty Eleven: alignment in WooCommerce single product page's description tab content

WordPress Trac noreply at wordpress.org
Sat Aug 6 02:43:22 UTC 2022


#56337: Twenty Eleven: alignment in WooCommerce single product page's description
tab content
-------------------------------------------------+-------------------------
 Reporter:  umesh84                              |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.1
Component:  Bundled Theme                        |     Version:  6.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots has-patch needs-     |     Focuses:  ui, css
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by sabernhardt):

 For a ''temporary fix'' until the theme is updated, you could add this in
 the Customizer's Additonal CSS. Then if the theme removes the `singular`
 class, this would not be necessary (nor valuable).
 {{{
 .singular div.product .woocommerce-tabs .entry-content {
   width: auto;
 }
 }}}

 Before committing the patch, we could consider splitting the conditions on
 separate lines for readability, too:
 {{{
         if ( is_singular()
                 && ! is_home()
                 && ! is_page_template( 'showcase.php' )
                 && ! is_page_template( 'sidebar-page.php' )
                 && ! ( defined( 'WC_VERSION' ) && function_exists(
 'is_product' ) && is_product() )
         ) {
 }}}

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


More information about the wp-trac mailing list