acosmin
Forum Replies Created
-
@meetinghero I’m glad to hear that, you can also use the plugin mentioned above if you want to change it from the Customizer.
You’ll need to edit
twentytwenty/assets/js/index.js:After line 156 add:
goToAnchor: function() { document.addEventListener( 'click', function( event ) { var target = event.target; if ( target.closest( '.modal-menu' ) && 'a' === target.tagName.toLowerCase() ) { this.untoggleModal( target.closest( '.cover-modal.active' ) ); if( '' !== target.hash ) { setTimeout( function() { var fakeEl = document.createElement( 'a' ); fakeEl.href = target.hash; fakeEl.click(); }, 550 ); } } }.bind( this ) ); },After line 105 add:
this.goToAnchor();Remember to clear your browser’s cache before trying to see if it works.
Forum: Themes and Templates
In reply to: [Twenty Twenty] Remove empty space between blocksTry:
.entry-content > *, .wp-block-group > *, .wp-block-columns > * { margin-top: 0 !important; margin-bottom: 0 !important; }Try this CSS:
.cover-color-overlay { transition: opacity .25s ease-in-out; -moz-transition: opacity .25s ease-in-out; -webkit-transition: opacity .25s ease-in-out; } .cover-header.bg-image:hover .cover-color-overlay { opacity: 0; }Forum: Themes and Templates
In reply to: [Twenty Twenty] images In the blogyou can try this css 🙂 but it might make the overlay text blurry:
img.attachment-post-thumbnail.size-post-thumbnail.wp-post-image { display: block; width: 100%; height: auto; max-width: 100%; }I don’t see other options…
The theme does not have support for the background image option 🙂 how did you end up adding an image?Scratch that, I was running an older version.- This reply was modified 6 years, 5 months ago by acosmin.
Don’t worry about that, it will not cause any issues.
I made a custom plugin that has this option in the Customizer, in case you still need it:
https://wordpress.org/plugins/extra-options-for-twenty-twenty/Forum: Themes and Templates
In reply to: [Twenty Twenty] Remove Search icon from twenty twentyNo problem 🙂
Forum: Themes and Templates
In reply to: [Twenty Twenty] Remove Search icon from twenty twentyJust so the html code doesn’t display on your page, you actually have a Customizer option to disable that.
Customizer > Theme Options > Show search in header@rafatrock You can use this code in your child theme’s functions.php or parent’s:
add_filter( 'twentytwenty_site_logo', function( $html, $args, $classname, $contents ) { if ( is_page_template( 'templates/template-cover.php' ) && has_custom_logo() ) { $logo = get_custom_logo(); $logo = preg_replace( '@src="([^"]+)"@', 'src="https://via.placeholder.com/150"', $logo ); $contents = sprintf( $args['logo'], $logo, esc_html( get_bloginfo( 'name' ) ) ); $wrap = $args['condition'] ? 'home_wrap' : 'single_wrap'; return sprintf( $args[ $wrap ], $classname, $contents ); } return $html; }, 10, 4 );In the customizer you start by using the black on white logo and in the above code replace
https://via.placeholder.com/150with the transparent logo’s url.On every page that uses the cover template it will display the transparent logo.
Forum: Reviews
In reply to: [Businessx] All disappear@jackyfung You might want to read the documentation before you start leaving bad reviews.
Forum: Reviews
In reply to: [Neville] Most Beautiful theme on WordPress.org and premium qualityThanks for the review. At the moment, Neville doesn’t have schema.org markup support, I’ll put it on the list for future releases.