Skip to content

Commit 8b4b9bd

Browse files
committed
Add active class to account page menu items, fix weDevsOfficial#664
1 parent fcfdf90 commit 8b4b9bd

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

admin/html/support.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
),
1010
array(
1111
'title' => 'License Activation',
12-
'link' => 'https://wedevs.com/docs/wp-user-frontend-pro/getting-started/license-activation/'
12+
'link' => 'https://wedevs.com/docs/wp-user-frontend-pro/troubleshoot/license-activation/'
1313
),
1414
array(
1515
'title' => 'Shortcodes',

assets/css/frontend-forms.css

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
.wpufTableBody {
2929
display: table-row-group;
3030
}
31+
.wpuf-menu-item.active a {
32+
color: #040202;
33+
}
3134
.wpuf-loading {
3235
width: 16px;
3336
height: 16px;

assets/less/frontend-forms.less

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
display: table-row-group;
3232
}
3333

34+
.wpuf-menu-item.active a{
35+
color: #040202;
36+
}
37+
3438
.clearfix() {
3539
&:after {
3640
clear: both;

templates/account.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
continue;
1515
}
1616
}
17+
1718
echo sprintf(
18-
'<li><a href="%s">%s</a></li>',
19+
'<li class="wpuf-menu-item %s"><a href="%s">%s</a></li>',
20+
( isset( $_GET['section'] ) && $_GET['section'] == $section['slug'] ) ? $section['slug'] . ' active' : $section['slug'],
1921
add_query_arg( array( 'section' => $section['slug'] ), get_permalink() ),
2022
$section['label']
2123
);

0 commit comments

Comments
 (0)