[wp-trac] [WordPress Trac] #61765: Twenty Twelve: The large quote pattern does not use a quote block

WordPress Trac noreply at wordpress.org
Wed Jan 22 18:56:14 UTC 2025


#61765: Twenty Twelve: The large quote pattern does not use a quote block
-------------------------------------------------+-------------------------
 Reporter:  poena                                |       Owner:  (none)
     Type:  enhancement                          |      Status:  assigned
 Priority:  low                                  |   Milestone:  6.8
Component:  Bundled Theme                        |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-patch needs-      |     Focuses:
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by dilip2615):

 Hello @poena according to my thoughts,In the Twenty Twelve theme, the
 large quote pattern might be using a custom HTML structure or CSS styling
 instead of utilizing the native WordPress quote block (<blockquote>). This
 can affect the semantic structure and block editor consistency.

 {{{#!php
 <?php
 register_block_pattern(
     'twentytwelve/large-quote',
     array(
         'title'       => __( 'Large Quote', 'twentytwelve' ),
         'description' => __( 'A large quote using the quote block.',
 'twentytwelve' ),
         'content'     => '<!-- wp:quote {"className":"large-quote"} -->
         <blockquote class="wp-block-quote large-quote">
             <p>' . esc_html__( 'This is a large quote example.',
 'twentytwelve' ) . '</p>
             <cite>' . esc_html__( 'Author Name', 'twentytwelve' ) .
 '</cite>
         </blockquote>
         <!-- /wp:quote -->',
         'categories'  => array( 'text' ),
     )
 );
 }}}

 after need to update bellow css

 .large-quote {
     font-size: 2em;
     font-style: italic;
     text-align: center;
     border-left: 5px solid #ccc;
     padding-left: 20px;
 }

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


More information about the wp-trac mailing list