Blocs for Mac V5.2.6 Beta Build 5

Hey everyone, here is the last beta of Blocs for Mac V5.2.6.

I’ll be looking to roll this new version out officially next week and begin testing on V5.2.7 soon afterwards.


Download Blocs V5.2.6 Beta Build 5

3 Likes

Hey @Norm

  • I’m wondering if the Global Swatch Support is enabled on a bric color control, if there’s any way to actually get the original color in my script handler so that color can be shown in edit mode. I’m noticing that sometimes colors aren’t being applied in edit mode, just the var(–swatch-var-****); which isn’t picking it up for whatever reason in the edit area.

  • Another thing, once someone switches to use a swatch, it locks to swatches and can’t go back to regular color picker to get regular color output instead of vars.

Thanks, Bill

I’m doing this for the indexing and section dividers in NavPlus so it’s possible. Unless something has changed in the recent builds. I can’t update due to a client requirement right now (AKA, everything is working)

Hi @Norm,

I opened a WP Project, did not have Local running, when I clicked on the popup button to dismiss it, the beta5 crashed, here is the crash dump:

Exception Name: NSRangeException
Description: *** -[__NSArrayM objectAtIndexedSubscript:]: index 28 beyond bounds [0 .. 27]
User Info: (null)

0   CoreFoundation                      0x00007ff813a4810a __exceptionPreprocess + 242
1   libobjc.A.dylib                     0x00007ff81356d0b7 objc_exception_throw + 48
2   CoreFoundation                      0x00007ff813b223ca -[__NSCFString characterAtIndex:].cold.1 + 0
3   CoreFoundation                      0x00007ff8139be921 -[__NSCFString hasSuffix:] + 0
4   Blocs                               0x000000010eba6edc Blocs + 290524
5   Blocs                               0x000000010eba4284 Blocs + 279172
6   Blocs                               0x000000010ebaf02b Blocs + 323627
7   libdispatch.dylib                   0x00007ff813754033 _dispatch_client_callout + 8
8   libdispatch.dylib                   0x00007ff813756b65 _dispatch_continuation_pop + 463
9   libdispatch.dylib                   0x00007ff8137687af _dispatch_source_invoke + 2184
10  libdispatch.dylib                   0x00007ff813760f04 _dispatch_main_queue_drain + 751
11  libdispatch.dylib                   0x00007ff813760c07 _dispatch_main_queue_callback_4CF + 31
12  CoreFoundation                      0x00007ff813a10185 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
13  CoreFoundation                      0x00007ff8139cfeaf __CFRunLoopRun + 2452
14  CoreFoundation                      0x00007ff8139ceeb1 CFRunLoopRunSpecific + 560
15  HIToolbox                           0x00007ff81d457f3d RunCurrentEventLoopInMode + 292
16  HIToolbox                           0x00007ff81d457d4e ReceiveNextEventCommon + 657
17  HIToolbox                           0x00007ff81d457aa8 _BlockUntilNextEventMatchingListInModeWithFilter + 64
18  AppKit                              0x00007ff816a6db18 _DPSNextEvent + 858
19  AppKit                              0x00007ff816a6c9c2 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1214
20  AppKit                              0x00007ff816a5f037 -[NSApplication run] + 586
21  AppKit                              0x00007ff816a33251 NSApplicationMain + 817
22  dyld                                0x00007ff81359a418 start + 1896

I’m trying to see if it happens again…

I have a request for @Norm for the coming versions of Blocs. But I don’t know how other users would feel, but here it goes.

Norm, would it be possible to make it so when we X out of the Blocs Splash Window, that the Blocs application doesn’t also close? Would be nice to be able to get it out the way, when programming etc.

Thanks,

Ricardo

3 Likes
  1. There is no way and potentially problematic because the colour could be update elsewhere and then your hex value would no longer represent the global colour.

  2. All colour pickers work the same in Blocs regarding global colours, if you want to use a colour that is not linked to a global colour, you need to select the empty global colour option. Any changes made to the colour controls will be static if this is selected.

Did it happen again?

I’ve added support for this in V5.2.7 :smiley:

2 Likes

That’s great, thx @Norm

1 Like

Not as of yet, I didn’t have time to really test it, as I’m in the middle of preparing for the approaching hurricane.

1 Like

Hello @norm,

I just upgraded my Intel MacBook Pro to Sonoma 14.7 (from Ventura 13.6.x), and I discovered a serious issue with Blocs Plus 5.2.x . I was using 5.2.5 to create these themes. I also tried with v5.2.6. They all have the same issue.

When exporting a Wordpress theme, the Nav Bar logo is does not display on the theme. The HTML is broken and this is what you get:

I tried this with all the theme that I had previously created (before updating to Sonoma) and ALL of them have the same issue on export.

The Header.php file as an example:

<!-- nav-header -->

<div **class**="bloc none sticky-nav l-bloc" id="nav-header">

**<?php** **if** (get_theme_mod('show-nav-header-section')) :**?>**

<div **class**="container bloc-no-padding-lg bloc-sm">

<div **class**="row">

<div **class**="col">

<nav **class**="navbar navbar-light row navbar-expand-md hover-open-submenu" role="navigation">

<div **class**="container-fluid">

<a **class**="navbar-brand img-protected me-lg-5 " href="/"><img>" alt="Kokokahn logo" width="100" blocsapp-set-width="true" height="100" blocsapp-set-height="true"></a>

<button id="nav-toggle" type="button" class="ui-navbar-toggler navbar-toggler border-0 p-0 me-md-0 ms-auto" data-toggle="collapse" data-target=".navbar-30222" aria-expanded="false" aria-label="Toggle navigation">

<span class="navbar-toggler-icon"><svg height="32" viewBox="0 0 32 32" width="32"><path class="svg-menu-icon menu-icon-stroke" d="m2 9h28m-28 7h28m-28 7h28" auto-style-class="menu-icon-stroke" data-custom-classes=" menu-icon-stroke"></path></svg></span>

</button><?php wp_nav_menu( array( 'theme_location' => 'primary', 'depth' => 2, 'container' => 'div', 'container_class' => 'collapse navbar-collapse navbar-30222 sidebar-nav', 'container_id' => 'bs-example-navbar-collapse-1', 'menu_class' => 'site-navigation nav navbar-nav ms-auto ps-lg-5', 'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback', 'walker' => new WP_Bootstrap_Navwalker(), ) ); ?>

</div>

</nav>

</div>

</div>

</div><?php endif; ?>

</div>

<!-- nav-header END -->

Could you please send me a copy of this Blocs project file?

I’m DM it to you in a few minutes.

v5.2.6 (production) just did, I sent you the crash report via the Bug report form.

Hi @Norm,

I just sent it via DM. Please keep in mind that it’s happening with ALL my past projects when I export to a WP theme.

1 Like