Blocs for Mac V5.2.7 Beta Build 1

Hey everyone, here is the first beta of Blocs for Mac V5.2.7.

More fixes and improvements on the way!


Download Blocs V5.2.7 Beta Build 1

4 Likes

Man, does time fly so fast I didn’t see Blocs for Mac V5.2.7 and now we have the 1st Beta. :slight_smile:

I just opened this beta, which told me 5.2.6 is now available and did I want to install it. Version 5.2.7 already installed, as shown on the splash screen.

1 Like

same here.

I have some buttons inside card footers with the interaction set to none, but if they are clicked on the web page scrolls to the top.

Hi @Norm,

Now in v5.2.7b1, now correctly exports the <bric-php-snippet></bric-php-snippet> to Wordpress theme. as <?php ?>, when placed within the query loop.

More issues with code being changing on export within a WP Query Loop, when outputting strings from custom-bric.js:

  • any of these strings: '->' or '-\>' or '-&gt;' will result in this: '-&gt;'
  • also any of these: "'item'=>'value'," or '\'item\'\=\>;\'value\',' or ‘'item'=>;'value',’ will result in this: 'item'=&gt;'value'

Outside of the WP Loop it exports correctly as: '->' and '=>'

Also, when the following code is placed in the column of the query loops, this is the result:

  • if code is <?php ?> it exports as <bric-php-snippet></bric-php-snippet>
  • if code is or <!--<?php ?>--> it exports as <!--<bric-php-snippet></bric-php-snippet>-->

I am also filling a bug report.

Thanks @Norm

2 Likes

Norm,

Just over 1 year ago, there was a discussion about getting the Twitter bird icon swapped out for X:

What ever came of that?

FA has never been updated (ver 6 was released in Feb 2022). I did float the idea that adding the actual Bootstrap icons would be a good option. There are tons of them, SVG, and it includes 𝕏. But no reply either. :man_shrugging:

I use them frequently now.

2 Likes

I’ll check that out.

1 Like

Yeah, time flies :sweat_smile:

This icon has been updated and replaced in the social links bric, but the font awesome icon font is indeed out of date. I would advise the use of an svg file which you can add to the Asset Manager.

We do have some improvements coming to the icon system, but they are still a work in progress.

1 Like

It would be great to get the bootstrap icon library added to blocs.

1 Like

Hi @Norm,

I have found another issue to be fixed for the next beta, if it all possible:

  • Blocs shortcodes such as %isPreview%, when used in the html of a custom bric and the bric is added within the post query loop, it is exported literally as: %isPreview%.

Additionally, I have lots of Brics ideas to expand the Wordpress capabilities in Blocs Plus, and I think that other developers, like @PeteSharp and @brechtryckaert, would also like to tap on ways to increase the capability of Blocs in this area. One addition (for now, lol) that would really useful:

  • In the bric development environment, have a check mark or a specific way that a particular file containing Wordpress PHP code, when exported to the theme, it would be appended to the extra-functions.php file. This would open lots of doors for Wordpress development, such as creating WP plugins, WP blocks, Query Filters, Meta Fields etc., maybe even conditionals.

I would be really grateful, if you could add this new feature to bric development. I have some brics in the queue for that when this feature becomes available, lol.

Thanks again @Norm for all of your efforts to keep improving Blocs.

Ricardo

1 Like

OK. I’ll just leave the cute little bird icon alone for now.

Nothing political, but something about that “X” icon isn’t very cute. But that’s probably on me for having lived in the land of cuteness for the last 30 years. Japan embraces it. The US never really has.

FEATURE REQUEST:
Please improve icon searching. I was trying to find the “Magnifying glass” icon today and I typed “Mag” and “Magnify” and all sorts of things, but that icon never appeared. I then Googled “Magnifying Glass FontAwesome” and boom! Top of the results! I’ve had this problem with countless icons in the past. They are almost impossible to bring up by keyword search in Blocs, so what I must do is scroll through ALL OF THEM until I find the one I need. It’s extremely frustrating. My saving grace is that I don’t need to search for icons often. If I did, I’d probably go mad because the search bar really doesn’t work well at all. Just mentioning this for when there’s a Font Awesome (or at least “Twitter icon”) update in the future.

4 Likes

Hi @Norm,

A bric with this code in the html area:

<div class="remove-on-export display-in-blocs-edit-mode-only text-center" custom-bric-id-target="true" data-meta-key="" data-nopaging="true" data-posts-per-page="5">
	<span style="padding: 1px 5px;color:white;background-color: #3896E8;">WP Posts Query</span>
</div>

When placed within a WP post loop column, is not removed on export, see attached:

Hi @Norm,

An update, for the same scenario of the same bric, when placed in a post query loop column. Although it now correctly exports the <bric-php-snippet></bric-php-snippet> to Wordpress theme. as <?php ?> , when placed within the query loop. In preview mode the tags remain literal. So in preview the php code within tags <bric-php-snippet></bric-php-snippet> injected by the custom-bric.js into the html area of the bric is visible, as the tags are unchanged in preview mode.

Also filing a bug report.

What happens when you remove display-in-blocs-edit-mode-only, you shouldn’t need both.