質問編集履歴
1
コード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,3 +11,63 @@
|
|
11
11
|
クラス付与方法の記述を書き換えればいいのかと思うのですがわかりません。
|
12
12
|
|
13
13
|
ご教授お願いいたします。
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
#htmlはこちらです
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
22
|
+
|
23
|
+
<div class="container-fluid">
|
24
|
+
|
25
|
+
<a class="navbar-brand" href="#">Navbar</a>
|
26
|
+
|
27
|
+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
28
|
+
|
29
|
+
<span class="navbar-toggler-icon"></span>
|
30
|
+
|
31
|
+
</button>
|
32
|
+
|
33
|
+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
34
|
+
|
35
|
+
<?php
|
36
|
+
|
37
|
+
$defaults = array(
|
38
|
+
|
39
|
+
'menu_class' => 'navbar-nav',
|
40
|
+
|
41
|
+
'container' => false,
|
42
|
+
|
43
|
+
'link_before' => '<span class="nav-item text-white me-3">',
|
44
|
+
|
45
|
+
'link_after' => '</span>',
|
46
|
+
|
47
|
+
'theme_location' => 'gloval-navigation',
|
48
|
+
|
49
|
+
'menu' => 'top',
|
50
|
+
|
51
|
+
'depth' => 0,
|
52
|
+
|
53
|
+
'walker' => new WP_Bootstrap_Navwalker()
|
54
|
+
|
55
|
+
);
|
56
|
+
|
57
|
+
wp_nav_menu( $defaults );
|
58
|
+
|
59
|
+
?>
|
60
|
+
|
61
|
+
</div>
|
62
|
+
|
63
|
+
</div>
|
64
|
+
|
65
|
+
</nav>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
#class-wp-bootstrap-navwalker.php
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
[https://github.com/wp-bootstrap/wp-bootstrap-navwalker/blob/master/class-wp-bootstrap-navwalker.php]
|