Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
open-source
Base WordPress Project
Commits
6dcba8a4
Commit
6dcba8a4
authored
7 months ago
by
Leonardo Piccioni de Almeida
Browse files
Options
Download
Email Patches
Plain Diff
Focus search input
parent
7478a808
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
themes/hacklab-theme/header-lateral.php
themes/hacklab-theme/header-lateral.php
+1
-1
No files found.
themes/hacklab-theme/header-lateral.php
View file @
6dcba8a4
...
...
@@ -53,7 +53,7 @@
<?=
wp_nav_menu
([
'theme_location'
=>
'main-menu'
,
'container'
=>
'nav'
,
'menu_class'
=>
'menu'
,
'container_class'
=>
'main-header-lateral__menu-desktop'
])
?>
</div>
<div
class=
"main-header-lateral__search"
>
<div
class=
"main-header-lateral__search"
x-init=
"$watch('searchOpen', (isOpen) => isOpen && document.querySelector('#search').focus())"
>
<?php
get_search_form
();
?>
<button
type=
"button"
class=
"main-header__toggle-search main-header-lateral__toggle-search"
aria-label=
"
<?=
__
(
'Toggle search form visibility'
,
'hacklabr'
)
?>
"
@
click=
"searchOpen = !searchOpen"
>
<iconify-icon
icon=
"fa-solid:search"
></iconify-icon>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment