t33b33
Forum Replies Created
-
Thanks for fixing it (commit).
Forum: Themes and Templates
In reply to: [Blocksy] Linking behavior with Blocksy Widget ExtensionsThank you for your reply. I will stick with the CSS for now. And as always, thanks for the great theme and your excellent support for it.
Forum: Themes and Templates
In reply to: [Blocksy] CaptalizeFor example, you can achieve this with the following custom CSS:
#wp-calendar caption::first-letter { text-transform: uppercase; }Forum: Plugins
In reply to: [wp-Typography] Preserving html entitiesEssentially, this is how I will do it then. Thank you for your quick reply and especially for your great plugin.
Forum: Plugins
In reply to: [wp-Typography] Preserving html entitiesI would like to obfuscate email addresses using
antispambot(), although it is questionable whether this technique is even useful nowadays.
My best solution so far is to use an additionalthe_contentshortcode filter after the wp-Typography filter, which might work like this:add_filter( ‘the_content’, function( $content ) {
add_shortcode( ‘some_tag’, ‘some_callback’ );
$content = do_shortcode( $content );
remove_shortcode( ‘some_tag’ );
return $content;
}, 10000 );Admittedly, that’s not really nice. Do you have any better ideas?
With the new filter I can now exclude HTML tags and entities from obfuscation. Surely it can be improved, but for my purposes it is sufficient:
add_filter('blocksy:frontend:contact:email:obfuscated-content',function ( $content, $original_content ) {return preg_replace_callback('/(<.*?>|&.*?;)*\K[^<&]+/',function ( $matches ) {return antispambot( $matches[0] );},$original_content);},10,2);Exactly how I had imagined it. Once again a quick and excellent solution. Thank you very much!
Yes, that would be sufficient and is very welcome. However, I don’t know if I understood you correctly about skipping #2. It would still be useful to be able to obfuscate the content of the
<a>tag via the filter itself, and not just turn off obfuscation, which would leave the email address readable to spam bots. So, imho ratherobfuscate_content( $obfuscated_content, $original_content )than justshould_obfuscate_content( $bool ).Forum: Themes and Templates
In reply to: [Blocksy] Blocksy 1.8.55 breaks layoutAfter (finally) realizing that since Blocksy 1.8.55
theme.jsonis used, I understand why the CSS styling has been changed in some places and especially why mine old doesn`t work anymore (see also https://github.com/WordPress/gutenberg/issues/41124). But everything is fixable.Forum: Themes and Templates
In reply to: [Blocksy] Media & Text Block and Left or Right AlignmentIt looks good to me. The removal of
.entry-content .alignleft { margin-inline-start: calc(( 100% - min(var(--block-max-width), var(--container-width-base)) )/2); }should do the trick. Thanks.
Forum: Themes and Templates
In reply to: [Blocksy] Media & Text Block and Left or Right AlignmentBelow you will find the contents of the page (https://blocksy-1-8-56.webspace.rocks/2022/11/media-text-block-and-left-or-right-alignment) using the “Copy all blocks” function:
<!-- wp:media-text {"mediaPosition":"right","mediaId":16,"mediaLink":"https://blocksy-1-8-56.webspace.rocks/photo-1620083408464-ae0759cc9733_1920x1440","mediaType":"image","mediaWidth":30} --> <div class="wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile" style="grid-template-columns:auto 30%"><div class="wp-block-media-text__content"><!-- wp:paragraph {"placeholder":"Contentβ¦"} --> <p>Tempus egestas sed sed risus pretium. Nullam eget felis eget nunc lobortis mattis aliquam faucibus purus. Nunc non blandit massa enim nec. Facilisi nullam vehicula ipsum a arcu. Elementum tempus egestas sed sed risus. Velit sed ullamcorper morbi tincidunt ornare massa eget. Commodo odio aenean sed adipiscing diam donec adipiscing tristique risus. Dictum at tempor commodo ullamcorper a lacus vestibulum. Nibh cras pulvinar mattis nunc. Ante in nibh mauris cursus mattis molestie a iaculis at. Aenean pharetra magna ac placerat. Sed tempus urna et pharetra pharetra. Scelerisque purus semper eget duis at. Pellentesque habitant morbi tristique senectus et.</p> <!-- /wp:paragraph --> <!-- wp:image {"align":"left","id":16,"width":300,"height":225,"sizeSlug":"large","linkDestination":"none"} --> <figure class="wp-block-image alignleft size-large is-resized"><img src="https://blocksy-1-8-56.webspace.rocks/wp-content/uploads/2022/11/photo-1620083408464-ae0759cc9733_1920x1440-1024x768.jpg" alt="" class="wp-image-16" width="300" height="225"/></figure> <!-- /wp:image --> <!-- wp:paragraph --> <p>Morbi blandit cursus risus at ultrices mi. Odio ut enim blandit volutpat maecenas volutpat blandit. Quam viverra orci sagittis eu volutpat odio. Gravida quis blandit turpis cursus in. Faucibus scelerisque eleifend donec pretium vulputate. Pulvinar elementum integer enim neque volutpat ac tincidunt vitae. Proin libero nunc consequat interdum varius. Dignissim enim sit amet venenatis urna cursus. Ac feugiat sed lectus vestibulum mattis ullamcorper velit sed. Arcu bibendum at varius vel pharetra vel turpis. Tortor aliquam nulla facilisi cras fermentum odio eu feugiat pretium. Arcu non odio euismod lacinia at quis risus. Eros in cursus turpis massa tincidunt dui. Eget duis at tellus at urna. Nisl nunc mi ipsum faucibus vitae aliquet nec ullamcorper sit. Eu turpis egestas pretium aenean pharetra magna ac placerat. Mi proin sed libero enim sed faucibus turpis.</p> <!-- /wp:paragraph --></div><figure class="wp-block-media-text__media"><img src="https://blocksy-1-8-56.webspace.rocks/wp-content/uploads/2022/11/photo-1620083408464-ae0759cc9733_1920x1440-1024x768.jpg" alt="" class="wp-image-16 size-full"/></figure></div> <!-- /wp:media-text -->Forum: Themes and Templates
In reply to: [Blocksy] Left & Right Blocks OffsetOut of curiosity, I used the following snippet:
.wp-block-image.alignleft, .wp-block-image.alignright { --block-max-width: var(--block-wide-max-width); }With that, it seems to work here: https://blocksy-1-8-55.webspace.rocks/2022/11/blocksy-post . But this is just a quick shot of mine, without knowing the internals of WordPress 6.1 or Blocksy.
Where would something like this fail? If you had to go too far to give an answer, it’s enough to refer to the complexity or just give a few key points.
- This reply was modified 3 years, 7 months ago by t33b33.
Forum: Themes and Templates
In reply to: [Blocksy] Blocksy 1.8.55 breaks layoutIt looks fine to me now. However, you need to enable the “Inner blocks use content width” option for the group, if I see that correctly. But of course that can be done easily. Thanks for the fast and reliable support!
Forum: Themes and Templates
In reply to: [Blocksy] Blocksy 1.8.55 breaks layoutI would like to become a beta tester π How can we get in contact?
Forum: Themes and Templates
In reply to: [Blocksy] Contact Info widget no longer displays iconsExcellent support as always! Thank you very much @cteduard !