Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLP Wealth Updates #1235

Merged
merged 313 commits into from
May 22, 2024
Merged
Changes from 4 commits
Commits
Show all changes
313 commits
Select commit Hold shift + click to select a range
c01e8f4
Merge pull request #1112 from equalizedigital/dev/link-tiles
tronsymphony Mar 28, 2024
198791d
min-height: 140px;
tronsymphony Mar 28, 2024
d62dfed
Merge pull request #1113 from equalizedigital/dev/link-tiles
tronsymphony Mar 28, 2024
48b0abc
min width
tronsymphony Mar 28, 2024
072e1a0
Merge pull request #1114 from equalizedigital/dev/link-tiles
tronsymphony Mar 28, 2024
dbb8882
width
tronsymphony Mar 28, 2024
00a0e97
Merge pull request #1115 from equalizedigital/dev/link-tiles
tronsymphony Mar 28, 2024
2ec7a00
modal
tronsymphony Mar 29, 2024
d573dd4
Merge branch 'develop' into dev/Video-Hero
tronsymphony Mar 29, 2024
71bd3bf
Merge pull request #1116 from equalizedigital/dev/Video-Hero
tronsymphony Mar 29, 2024
c94fdfd
profession data
tronsymphony Mar 29, 2024
1fe2090
Merge pull request #1117 from equalizedigital/dev/profession
tronsymphony Mar 29, 2024
7ce2fe7
profession bg
tronsymphony Mar 29, 2024
981d541
Merge pull request #1118 from equalizedigital/dev/profession
tronsymphony Mar 29, 2024
255c195
carousel
tronsymphony Mar 29, 2024
4513b47
Merge pull request #1119 from equalizedigital/dev/video-carousel
tronsymphony Mar 29, 2024
c3550c7
width
tronsymphony Mar 29, 2024
d5ac9ed
Merge branch 'develop' into dev/link-tiles
tronsymphony Mar 29, 2024
94f3ff8
Merge pull request #1120 from equalizedigital/dev/link-tiles
tronsymphony Mar 29, 2024
93a7521
header
tronsymphony Mar 29, 2024
6f12b8a
Merge pull request #1121 from equalizedigital/dev/link-tiles
tronsymphony Mar 29, 2024
7caddf8
video
tronsymphony Mar 29, 2024
df67239
Merge branch 'develop' into dev/Video-Hero
tronsymphony Mar 29, 2024
2512436
Merge pull request #1122 from equalizedigital/dev/Video-Hero
tronsymphony Mar 29, 2024
ff6f493
theme.json
tronsymphony Mar 29, 2024
3486f38
Merge pull request #1123 from equalizedigital/dev/theme.json
tronsymphony Mar 29, 2024
4e48d8d
update name
tronsymphony Apr 1, 2024
7316e83
enque
tronsymphony Apr 1, 2024
dd1c4df
Merge branch 'develop' into dev/video-carousel
tronsymphony Apr 1, 2024
aae9889
Merge pull request #1124 from equalizedigital/dev/video-carousel
tronsymphony Apr 1, 2024
78bf1ef
update list
tronsymphony Apr 1, 2024
26eac63
Merge branch 'develop' into dev/link-tiles
tronsymphony Apr 1, 2024
4c12b14
Merge pull request #1125 from equalizedigital/dev/link-tiles
tronsymphony Apr 1, 2024
a2c4714
author image
tronsymphony Apr 1, 2024
c9077bc
Merge pull request #1126 from equalizedigital/dev/physician-page
tronsymphony Apr 1, 2024
89946c4
remove # link animation speed
tronsymphony Apr 1, 2024
6651e3b
Merge pull request #1127 from equalizedigital/dev/physician-page
tronsymphony Apr 1, 2024
657755f
scroll to
tronsymphony Apr 1, 2024
b77df55
Merge pull request #1128 from equalizedigital/dev/physician-page
tronsymphony Apr 1, 2024
b5dee2e
video
tronsymphony Apr 1, 2024
359767b
Merge branch 'develop' into dev/Video-Hero
tronsymphony Apr 1, 2024
9c42aa4
Merge pull request #1129 from equalizedigital/dev/Video-Hero
tronsymphony Apr 1, 2024
db269a4
responsinve
tronsymphony Apr 1, 2024
3a2beba
Merge pull request #1130 from equalizedigital/dev/Video-Hero
tronsymphony Apr 1, 2024
1aa34e1
carousekl
tronsymphony Apr 1, 2024
01326f5
Merge branch 'develop' into dev/video-carousel
tronsymphony Apr 1, 2024
603a912
Merge pull request #1131 from equalizedigital/dev/video-carousel
tronsymphony Apr 1, 2024
18cf464
pricing block
tronsymphony Apr 3, 2024
36b6749
carousel
tronsymphony Apr 3, 2024
9bb5cc2
Merge pull request #1132 from equalizedigital/dev/video-carousel
tronsymphony Apr 3, 2024
9386a58
video hero
tronsymphony Apr 3, 2024
90efcdd
Merge branch 'develop' into dev/Video-Hero
tronsymphony Apr 3, 2024
65232ca
Merge pull request #1133 from equalizedigital/dev/Video-Hero
tronsymphony Apr 3, 2024
b4f297b
Create single-slp_profession.php
tronsymphony Apr 3, 2024
952fef9
author info
tronsymphony Apr 3, 2024
c4794f2
Merge pull request #1134 from equalizedigital/dev/professions
tronsymphony Apr 3, 2024
bae7cec
menu
tronsymphony Apr 3, 2024
88f6a3c
Merge pull request #1135 from equalizedigital/dev/menu
tronsymphony Apr 3, 2024
e16e2df
cta
tronsymphony Apr 3, 2024
9bd2331
Merge pull request #1136 from equalizedigital/dev/menu
tronsymphony Apr 3, 2024
119f013
physican page
tronsymphony Apr 3, 2024
64a362d
Merge pull request #1137 from equalizedigital/dev/professions
tronsymphony Apr 3, 2024
783afac
modal margin
tronsymphony Apr 3, 2024
a089d05
Merge branch 'develop' into dev/professions
tronsymphony Apr 3, 2024
b313f5d
Merge pull request #1138 from equalizedigital/dev/professions
tronsymphony Apr 3, 2024
70cbe45
carousel number
tronsymphony Apr 3, 2024
ec928e0
Merge pull request #1139 from equalizedigital/dev/video-carousel
tronsymphony Apr 3, 2024
7be212a
label
tronsymphony Apr 3, 2024
e910501
Merge pull request #1140 from equalizedigital/dev/video-carousel
tronsymphony Apr 3, 2024
19d9f98
width
tronsymphony Apr 3, 2024
eb16e05
Merge pull request #1141 from equalizedigital/dev/video-carousel
tronsymphony Apr 3, 2024
41f8aec
Merge branch 'develop' into dev/pricing-block
tronsymphony Apr 3, 2024
2dfb480
PRICING
tronsymphony Apr 4, 2024
64c7c29
Merge pull request #1142 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
9f1ec4c
slp
tronsymphony Apr 4, 2024
b059fb4
Merge pull request #1143 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
4ab5317
pricing
tronsymphony Apr 4, 2024
82325b9
Merge pull request #1144 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
8d19c2e
pressed
tronsymphony Apr 4, 2024
fba5345
Merge pull request #1145 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
98a2dfb
pricing block
tronsymphony Apr 4, 2024
2a13e1c
Merge pull request #1146 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
c614c59
title override
tronsymphony Apr 4, 2024
a557a76
Merge pull request #1147 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
5f25062
carousel
tronsymphony Apr 4, 2024
6fe2bcc
Merge branch 'develop' into dev/video-carousel
tronsymphony Apr 4, 2024
ef4e797
Merge pull request #1148 from equalizedigital/dev/video-carousel
tronsymphony Apr 4, 2024
ab74402
pricing
tronsymphony Apr 4, 2024
ccae4e7
Merge pull request #1149 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
5b8e085
border
tronsymphony Apr 4, 2024
ab6a793
Merge pull request #1150 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
9773fee
Merge branch 'develop' into dev/pricing-block
tronsymphony Apr 4, 2024
66f3eac
Merge branch 'develop' into dev/pricing-block
tronsymphony Apr 4, 2024
dcb434d
Merge pull request #1151 from equalizedigital/dev/pricing-block
tronsymphony Apr 4, 2024
ecd71b6
carousel
tronsymphony Apr 4, 2024
d91c801
Merge branch 'develop' into dev/video-carousel
tronsymphony Apr 5, 2024
a1c216e
Merge pull request #1152 from equalizedigital/dev/video-carousel
tronsymphony Apr 5, 2024
421859c
slides
tronsymphony Apr 5, 2024
2b8b8a8
Merge pull request #1153 from equalizedigital/dev/video-carousel
tronsymphony Apr 5, 2024
763542e
carousel
tronsymphony Apr 5, 2024
cf97d99
Merge pull request #1154 from equalizedigital/dev/video-carousel
tronsymphony Apr 5, 2024
8b868f4
load
tronsymphony Apr 5, 2024
fe43fba
Merge pull request #1155 from equalizedigital/dev/video-carousel
tronsymphony Apr 5, 2024
1f510c6
swiper
tronsymphony Apr 5, 2024
966c1a6
Merge pull request #1156 from equalizedigital/dev/video-carousel
tronsymphony Apr 5, 2024
0266c09
spacing
tronsymphony Apr 5, 2024
f00f3aa
#625089CC
tronsymphony Apr 5, 2024
9ec9cd9
Merge pull request #1157 from equalizedigital/dev/video-carousel
tronsymphony Apr 5, 2024
73d81de
10px
tronsymphony Apr 5, 2024
086f3f6
Merge pull request #1158 from equalizedigital/dev/video-carousel
tronsymphony Apr 5, 2024
59f59b5
pricing
tronsymphony Apr 5, 2024
2445151
Merge pull request #1159 from equalizedigital/dev/pricing-block
tronsymphony Apr 5, 2024
ed3824f
team block fix
tronsymphony Apr 5, 2024
2684ffc
Merge pull request #1160 from equalizedigital/dev/team-block-fix
tronsymphony Apr 5, 2024
9135db4
greater than
tronsymphony Apr 5, 2024
234f546
Merge pull request #1161 from equalizedigital/dev/team-block-fix
tronsymphony Apr 5, 2024
dfd815b
carousel disable click
tronsymphony Apr 5, 2024
74d38f1
Merge pull request #1162 from equalizedigital/dev/video-carousel
tronsymphony Apr 5, 2024
8c8d317
carousel
tronsymphony Apr 8, 2024
69b4e55
Merge branch 'develop' into dev/video-carousel
tronsymphony Apr 8, 2024
4ac5124
Merge pull request #1164 from equalizedigital/dev/video-carousel
tronsymphony Apr 8, 2024
4387d1b
container-focused-class
tronsymphony Apr 8, 2024
6d3f032
Merge pull request #1165 from equalizedigital/dev/video-carousel
tronsymphony Apr 8, 2024
5328a59
nav
tronsymphony Apr 8, 2024
9f4b337
Merge pull request #1166 from equalizedigital/dev/video-carousel
tronsymphony Apr 8, 2024
98b0878
profession
tronsymphony Apr 8, 2024
41aaf41
Merge pull request #1167 from equalizedigital/dev/professions
tronsymphony Apr 8, 2024
994c2e1
check
tronsymphony Apr 8, 2024
47dd014
Merge pull request #1168 from equalizedigital/dev/professions
tronsymphony Apr 8, 2024
15a17df
div
tronsymphony Apr 8, 2024
aad1416
Merge pull request #1169 from equalizedigital/dev/professions
tronsymphony Apr 8, 2024
cc94eb3
carousel
tronsymphony Apr 8, 2024
3eb7708
Merge branch 'develop' into dev/video-carousel
tronsymphony Apr 8, 2024
85bf176
Merge pull request #1171 from equalizedigital/dev/video-carousel
tronsymphony Apr 8, 2024
fe9ff63
speed
tronsymphony Apr 8, 2024
cf284e8
Merge pull request #1172 from equalizedigital/dev/video-carousel
tronsymphony Apr 8, 2024
646af05
screen reader
tronsymphony Apr 8, 2024
9ce943d
spacing
tronsymphony Apr 8, 2024
b7c4825
Merge pull request #1173 from equalizedigital/dev/pricing-block
tronsymphony Apr 8, 2024
a1699ec
test
tronsymphony Apr 8, 2024
8866474
Merge pull request #1174 from equalizedigital/dev/pricing-block
tronsymphony Apr 8, 2024
dc4f2a9
spacing
tronsymphony Apr 8, 2024
9784f65
Merge pull request #1175 from equalizedigital/dev/pricing-block
tronsymphony Apr 8, 2024
7d1fcbd
fix: restore change heading tags
michelmany Apr 9, 2024
688649e
Merge branch 'master' into develop
tronsymphony Apr 9, 2024
9802bc6
merge master to dev
tronsymphony Apr 9, 2024
eac49e0
Update author.php
tronsymphony Apr 11, 2024
17bc797
Merge pull request #1177 from equalizedigital/dev/author-page
tronsymphony Apr 11, 2024
0e81cbe
author
tronsymphony Apr 11, 2024
5a85b8c
Merge pull request #1178 from equalizedigital/dev/author-page
tronsymphony Apr 11, 2024
af46c1b
author
tronsymphony Apr 11, 2024
e9dbb78
Merge pull request #1179 from equalizedigital/dev/author-page
tronsymphony Apr 11, 2024
14fa75d
author page
tronsymphony Apr 11, 2024
66ec064
Merge pull request #1180 from equalizedigital/dev/author-page
tronsymphony Apr 11, 2024
3d3420f
image quality
tronsymphony Apr 15, 2024
5a2984f
Merge pull request #1181 from equalizedigital/dev/profession
tronsymphony Apr 15, 2024
b7298e8
imgae size
tronsymphony Apr 15, 2024
bc34025
Merge pull request #1182 from equalizedigital/dev/profession
tronsymphony Apr 15, 2024
f0a06f3
responsive
tronsymphony Apr 15, 2024
e2cfbde
Merge branch 'develop' into dev/pricing-block
tronsymphony Apr 15, 2024
1328e3a
Merge pull request #1183 from equalizedigital/dev/pricing-block
tronsymphony Apr 15, 2024
af631ad
minw
tronsymphony Apr 15, 2024
aaf20d8
Merge pull request #1184 from equalizedigital/dev/pricing-block
tronsymphony Apr 15, 2024
cb685cf
cc
tronsymphony Apr 15, 2024
137d84a
Merge branch 'develop' into dev/pricing-block
tronsymphony Apr 15, 2024
a3f8fd7
Merge pull request #1185 from equalizedigital/dev/pricing-block
tronsymphony Apr 15, 2024
263b178
pipe
tronsymphony Apr 15, 2024
135df71
Merge pull request #1186 from equalizedigital/dev/testimonial
tronsymphony Apr 15, 2024
8198d41
error
tronsymphony Apr 15, 2024
64b4618
Merge pull request #1187 from equalizedigital/dev/testimonial
tronsymphony Apr 15, 2024
4076fb8
li
tronsymphony Apr 15, 2024
0d1db7b
Merge pull request #1188 from equalizedigital/dev/Add-Styles-to-Theme
tronsymphony Apr 15, 2024
c68c637
author line
tronsymphony Apr 15, 2024
b556f7e
Merge pull request #1189 from equalizedigital/dev/Add-Styles-to-Theme
tronsymphony Apr 15, 2024
d6788a8
escape
tronsymphony Apr 15, 2024
86f4f3d
Merge pull request #1190 from equalizedigital/dev/Add-Styles-to-Theme
tronsymphony Apr 15, 2024
0f0efc5
auto p
tronsymphony Apr 15, 2024
97ededf
Merge pull request #1191 from equalizedigital/dev/Add-Styles-to-Theme
tronsymphony Apr 15, 2024
d167ad9
clean p tag
tronsymphony Apr 15, 2024
5215984
Merge pull request #1192 from equalizedigital/dev/Add-Styles-to-Theme
tronsymphony Apr 15, 2024
1d098a8
pricing
tronsymphony Apr 15, 2024
85c556b
Merge branch 'develop' into dev/pricing-block
tronsymphony Apr 15, 2024
2719c6c
Merge pull request #1193 from equalizedigital/dev/pricing-block
tronsymphony Apr 15, 2024
8492ffa
carousel cc
tronsymphony Apr 16, 2024
fa79c67
Merge pull request #1194 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
26e2655
focus
tronsymphony Apr 16, 2024
6cd8d45
width
tronsymphony Apr 16, 2024
2f9f29c
Merge pull request #1195 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
b98dec7
tabbing
tronsymphony Apr 16, 2024
0ddadb6
Merge pull request #1196 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
fac6d23
focus fix
tronsymphony Apr 16, 2024
ad1d28a
Merge pull request #1197 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
d2c43fd
tagname
tronsymphony Apr 16, 2024
2d6710c
Merge pull request #1198 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
33d1e89
btn
tronsymphony Apr 16, 2024
2c28298
Merge pull request #1199 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
3fff24c
test
tronsymphony Apr 16, 2024
92b58d9
Merge pull request #1200 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
430ec77
cache
tronsymphony Apr 16, 2024
71ee0ed
Merge pull request #1201 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
d3d34d3
alt
tronsymphony Apr 16, 2024
e12feb5
Merge pull request #1202 from equalizedigital/dev/video-carousel
tronsymphony Apr 16, 2024
a9869f9
fixes - automatic PHPCS issues with phpcbf
SteveJonesDev Apr 16, 2024
f11ce9e
Merge pull request #1203 from equalizedigital/SteveJonesDev/auto-lint…
SteveJonesDev Apr 16, 2024
87ce39c
updated - wpforms font sizes
SteveJonesDev May 2, 2024
42c14c3
Merge pull request #1232 from equalizedigital/SteveJonesDev/issue1215
SteveJonesDev May 2, 2024
4923ea3
updated - build
SteveJonesDev May 2, 2024
5e8f838
updated - font weight
SteveJonesDev May 2, 2024
665a652
uncached codekit
SteveJonesDev May 2, 2024
8e0d926
Merge branch 'develop' into SteveJonesDev/issue1215
SteveJonesDev May 2, 2024
4461aa1
updated - font weight to be important
SteveJonesDev May 2, 2024
d274650
updated - pricing calculator link and button display to inline-block …
SteveJonesDev May 2, 2024
af569ac
fixed - check for sub menu name before output
SteveJonesDev May 2, 2024
e6ee5a9
added - dashicons enque #1208
SteveJonesDev May 2, 2024
6f50a1c
fixed - pricing calculator button capitalization, fixes #1207
SteveJonesDev May 2, 2024
2e22f5b
removed - site title logo background image #1219
SteveJonesDev May 2, 2024
158f3bd
removed - testimonial slider review button fallback #1220
SteveJonesDev May 2, 2024
17f698e
remvoed - video carousel controlsList attribute equal to nodownload #…
SteveJonesDev May 3, 2024
18f20fc
added - fullscreen video javascript styles #1229
SteveJonesDev May 3, 2024
31bb656
updated - video fullscreen js styles #1229
SteveJonesDev May 3, 2024
17ffd37
updated - video fullscreen js to check for standard fullscreen event …
SteveJonesDev May 3, 2024
85f06ea
updated - build
SteveJonesDev May 3, 2024
c9ae7b3
updated - fullscreen change handler with debug #1229
SteveJonesDev May 3, 2024
46cfacc
updated - fullscreen video change debug #1229
SteveJonesDev May 3, 2024
b60e9e7
updated - fullscreen change handler with video selector
SteveJonesDev May 3, 2024
3dbda92
removed - fullscreen change listeners #1229
SteveJonesDev May 3, 2024
0fe912e
update - video carousel to contain object fit #1229
SteveJonesDev May 3, 2024
120160f
updated - inline-logo-heading img #1209
SteveJonesDev May 7, 2024
386ced2
updated - build
SteveJonesDev May 7, 2024
f6be285
updated - inline-logo-heading img size
SteveJonesDev May 7, 2024
10f720b
added - video block debug
SteveJonesDev May 7, 2024
544da58
added - video debug
SteveJonesDev May 7, 2024
1b15b2f
commented out all video pauses
SteveJonesDev May 7, 2024
d70e122
added video pauses back
SteveJonesDev May 7, 2024
53e7e67
moved - swiper enqueue
SteveJonesDev May 7, 2024
22fa688
updated - spacing
SteveJonesDev May 7, 2024
904b1bc
updated - video carousel to scope only to child video elements #1212
SteveJonesDev May 7, 2024
580be93
fixed - WPCS errors and warnings
SteveJonesDev May 7, 2024
4ad8448
fixed - WPCS errors and warnings
SteveJonesDev May 8, 2024
328a443
updated - workflow
SteveJonesDev May 8, 2024
5477eef
updated - workflows
SteveJonesDev May 8, 2024
8e7c8b9
updated - lint js workflow
SteveJonesDev May 8, 2024
30076e5
fixed - primary navigation output
SteveJonesDev May 8, 2024
8ad6df0
updated - video carousel next and prev button styles
SteveJonesDev May 9, 2024
6ace0b7
updated - styles to be compressed
SteveJonesDev May 14, 2024
47bd6c7
added - alt attribute to hero image
SteveJonesDev May 14, 2024
2e2f2eb
added - missing alt attribute and aria-hidden attribute to resource l…
SteveJonesDev May 22, 2024
120ae06
added - aria-label to tabs scroll button
SteveJonesDev May 22, 2024
520413e
fixed - phpcs
SteveJonesDev May 22, 2024
da40871
Merge pull request #1234 from equalizedigital/SteveJonesDev/a11y-fixes
SteveJonesDev May 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 17 additions & 21 deletions inc/helper-functions.php
Original file line number Diff line number Diff line change
@@ -465,28 +465,24 @@ function eqd_logo_setup() {
}
add_action( 'after_setup_theme', 'eqd_logo_setup' );

function eqd_enqueue_swiper_assets() {
// Only proceed if we're on a singular page and it has content.
if ( is_singular() && have_posts() ) {
the_post(); // Load the post data.
$content = get_the_content();

// Check if our ACF block is in the content.
if ( has_block( 'acf/video-carousel', $content ) ) {
// Enqueue Swiper.js CSS
wp_enqueue_style( 'swiper-css', 'https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css' );

// Enqueue Swiper.js Script
wp_enqueue_script( 'swiper-js', 'https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js', array(), null, true );
}

function theme_enqueue_swiper_assets() {
if ( is_singular() && has_video_carousel_block( get_post() ) ) {
// Enqueue Swiper CSS
wp_enqueue_style( 'swiper-css', 'https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css' );

// Enqueue Swiper JS
wp_enqueue_script( 'swiper-js', 'https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js', array(), false, true );
// Rewind posts so that the loop can run as expected elsewhere.
rewind_posts();
}
}
add_action( 'wp_enqueue_scripts', 'theme_enqueue_swiper_assets' );

function has_video_carousel_block( $post ) {
// Replace 'acf/video-carousel' with your block's name
$block_name = 'acf/video-carousel';
$blocks = parse_blocks( $post->post_content );

foreach ( $blocks as $block ) {
if ( $block['blockName'] === $block_name ) {
return true;
}
}

return false;
}
add_action( 'wp_enqueue_scripts', 'eqd_enqueue_swiper_assets' );
2 changes: 1 addition & 1 deletion template-parts/blocks/video-carousel/block.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "acf/video-carousel",
"title": "Video Carousel",
"description": "Display tiles.",
"description": "Video Carousel with multiple videos in slider.",
"category": "custom-blocks",
"icon": "admin-post",
"keywords": [
3 changes: 0 additions & 3 deletions template-parts/blocks/video-carousel/template.php
Original file line number Diff line number Diff line change
@@ -36,9 +36,6 @@
$image_path = get_template_directory_uri() . '/assets/images/';
?>




<section id="<?php echo esc_attr( $block_id ); ?>" class="<?php echo esc_attr( $class_name ); ?>">
<div class="video-carousel-swiper-container">