acosmin
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Twenty] Inter Var variable font is SLOW@travisburch The code mentioned here shouldn’t cause any issues. Just add the code at the bottom of functions.php (child theme).
Did you by any chance see the error notice, could you copy paste it here?
Forum: Themes and Templates
In reply to: [Twenty Twenty] Inter Var variable font is SLOW@travisburch You can try it and see if it works for you, it should be added in your child theme’s functions.php file.
Don’t forget the
</style>before<?php, I updated my previous comment: https://wordpress.org/support/topic/inter-var-variable-font-is-slow/#post-12273421Forum: Themes and Templates
In reply to: [Twenty Twenty] Inter Var variable font is SLOWI tried to edit the comment 🙂 but it looks like it went into moderation…
Forum: Themes and Templates
In reply to: [Twenty Twenty] Inter Var variable font is SLOWNo problem 🙂 they are mostly grouped, so it wasn’t that hard… there’s a missing
</style>at the end I forgot to add.Forum: Themes and Templates
In reply to: [Twenty Twenty] Inter Var variable font is SLOWHere is a solution, it will not download the fonts (tested). Based on the previous comment, the only downside in the above solution is that using
*will also target assets like FontAwesome and will break them.add_action( 'wp_head', function() { ?> <style> body, input, textarea, button, .button, .faux-button, .wp-block-button__link, .wp-block-file__button, .has-drop-cap:not(:focus)::first-letter, .entry-content .wp-block-archives, .entry-content .wp-block-categories, .entry-content .wp-block-cover-image, .entry-content .wp-block-latest-comments, .entry-content .wp-block-latest-posts, .entry-content .wp-block-pullquote, .entry-content .wp-block-quote.is-large, .entry-content .wp-block-quote.is-style-large, .entry-content cite, .entry-content figcaption, .entry-content .wp-caption-text { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif !important; } .widget_text p, .widget_text ol, .widget_text ul, .widget_text dl, .widget_text dt, .widget-content .rssSummary, .entry-content p, .entry-content ol, .entry-content ul, .entry-content dl, .entry-content dt { font-family: "Hoefler Text", Garamond, "Times New Roman", serif !important; } </style> <?php }, 5 );- This reply was modified 6 years, 4 months ago by acosmin.
Forum: Themes and Templates
In reply to: [Twenty Twenty] remove inline styles@abdipour You can probably do it with:
add_action( 'wp_enqueue_scripts', function() { $styles = wp_styles(); $styles->add_data( 'twentytwenty-style', 'after', array() ); }, 20 );I must warn you that some of the changes you did in the Customizer might not work after this (or any added inline styles for the
twentytwenty-stylehandle).- This reply was modified 6 years, 4 months ago by acosmin.
Forum: Themes and Templates
In reply to: [Twenty Twenty] Include subcategories with the parent categoryHi, do you have the subcategories selected? It works on my end. Also, that filter does not have a
subcategoriesoption, it will callthe_category()which is the default way of doing it and should display all types of categories.Forum: Themes and Templates
In reply to: [Twenty Twenty] Can’t edit extract text@axsu In that screenshot I see a page, excerpts for pages are not enabled by default. You’ll need to add this code to enable the possibility of adding/changing page excerpts:
add_action( 'init', function() { add_post_type_support( 'page', 'excerpt' ); } );Forum: Themes and Templates
In reply to: [Twenty Twenty] Remove tags from below the excerpts@t-p Replace what I mentioned at point 1 with:
add_filter( 'twentytwenty_post_meta_location_single_bottom', function( $arr ) { if ( is_singular() ) { $arr[] = 'categories'; return $arr; } return array(); } );- This reply was modified 6 years, 4 months ago by acosmin.
Forum: Themes and Templates
In reply to: [Twenty Twenty] Remove tags from below the excerpts@albertkents try:
.singular .entry-categories { display: none; }Forum: Themes and Templates
In reply to: [Twenty Twenty] Remove tags from below the excerptsIt depends on where exactly you want it to show up. Could you please make a screenshot and draw on it where it should be located… it would help.
Forum: Themes and Templates
In reply to: [Twenty Twenty] Remove tags from below the excerpts1. Try:
add_filter( 'twentytwenty_post_meta_location_single_bottom', function( $arr ) { if ( is_singular() ) { return $arr; } return array(); } );2. To remove from excerpts:
add_filter( 'twentytwenty_show_categories_in_entry_header', function( $val ) { if ( is_singular() ) { return true; } return false; } );There are no filters to move it at the bottom. You’ll need to modify the files…
- This reply was modified 6 years, 4 months ago by acosmin.
Forum: Themes and Templates
In reply to: [Twenty Twenty] How to change the screen-reader-text heading@sdforever Try:
add_filter( 'navigation_markup_template', function( $template, $class ) { return ' <nav class="navigation %1$s" role="navigation" aria-label="%4$s"> <div class="screen-reader-text">%2$s</div> <div class="nav-links">%3$s</div> </nav>'; }, 10, 2 );This will work only with WP 5.3.0 or higher.
aria-labelisn’t present in older versions. If you’re using older versions removearia-label="%4$s".Forum: Themes and Templates
In reply to: [Twenty Twenty] Remove empty space between blocks.footer-top-visible .footer-nav-widgets-wrapper, .footer-top-hidden #site-footer { margin-top: 0 !important; }.post-inner, .cover-header + .post-inner { padding-top: 0 !important }