Skip to content

Bricks integration: fix slider in Bricks Extras, WPGB facet#220

Merged
rilwis merged 2 commits into
masterfrom
fix/bricks
May 8, 2025
Merged

Bricks integration: fix slider in Bricks Extras, WPGB facet#220
rilwis merged 2 commits into
masterfrom
fix/bricks

Conversation

@rilwis
Copy link
Copy Markdown
Member

@rilwis rilwis commented May 6, 2025

There are 2 ways to eliminate an element from rendering:

  • Remove it completely from $data, which is the previous way to handle the compatibility. However, it doesn't handle well with nested elements. Hence, the 2nd way:
  • Filtering to bricks/element/render, which decides whether to render an element. But it doesn't handle enqueuing scripts!

This PR uses both ways to fix the issue. And also improve by ignoring elements by category: 'media', 'query', 'wordpress', 'extras' (from Bricks Extras).

@rilwis rilwis merged commit ba96c1c into master May 8, 2025
@rilwis rilwis self-assigned this May 8, 2025
@rilwis rilwis deleted the fix/bricks branch May 8, 2025 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant