Changeset 46551 for trunk/src/wp-content/themes/twentytwenty/functions.php
- Timestamp:
- 10/15/2019 06:45:02 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/functions.php
r46446 r46551 460 460 'name' => _x( 'Large', 'Name of the large font size in the block editor', 'twentytwenty' ), 461 461 'shortName' => _x( 'L', 'Short name of the large font size in the block editor.', 'twentytwenty' ), 462 'size' => 2 4,462 'size' => 26.25, 463 463 'slug' => 'large', 464 464 ), … … 481 481 482 482 add_action( 'after_setup_theme', 'twentytwenty_block_editor_settings' ); 483 484 /**485 * Read More Link486 * Overwrite default (more ...) tag487 */488 function twentytwenty_read_more_tag() {489 return sprintf(490 '<a href="%1$s" class="more-link faux-button">%2$s <span class="screen-reader-text">"%3$s"</span></a>',491 esc_url( get_permalink( get_the_ID() ) ),492 __( 'Continue reading', 'twentytwenty' ),493 esc_html( get_the_title( get_the_ID() ) )494 );495 }496 add_filter( 'the_content_more_link', 'twentytwenty_read_more_tag' );497 483 498 484 /** … … 648 634 ), 649 635 'background' => array( 650 'color' => array( '.social-icons a', ' .overlay-header .header-inner', 'body:not(.overlay-header) .primary-menu ul', '.header-footer-group button', '.header-footer-group .button', '.header-footer-group .faux-button', '.header-footer-group .wp-block-button:not(.is-style-outline) .wp-block-button__link', '.header-footer-group .wp-block-file__button', '.header-footer-group input[type="button"]', '.header-footer-group input[type="reset"]', '.header-footer-group input[type="submit"]' ),636 'color' => array( '.social-icons a', 'body:not(.overlay-header) .primary-menu ul', '.header-footer-group button', '.header-footer-group .button', '.header-footer-group .faux-button', '.header-footer-group .wp-block-button:not(.is-style-outline) .wp-block-button__link', '.header-footer-group .wp-block-file__button', '.header-footer-group input[type="button"]', '.header-footer-group input[type="reset"]', '.header-footer-group input[type="submit"]' ), 651 637 'background' => array( '#site-header', '.footer-nav-widgets-wrapper', '#site-footer', '.menu-modal', '.menu-modal-inner', '.search-modal-inner', '.archive-header', '.singular .entry-header', '.singular .featured-media:before', '.wp-block-pullquote:before' ), 652 638 ),
Note: See TracChangeset
for help on using the changeset viewer.