Skip to content

Commit

Permalink
fix: add proxy class to enqueue resources for Secondary Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Apr 25, 2024
1 parent abb4b92 commit b757ea2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
'fallback_cb' => '__return_false',
'before' => '<div class="wrap">',
'after' => '</div>',
'walker' => '\Neve\Views\Secondary_Nav_Walker',
)
);
?>
Expand Down
26 changes: 26 additions & 0 deletions inc/views/secondary_nav_walker.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Custom navwalker for secondary menu.
*
* Author: Soare Robert <[email protected]>
* Created on: 25/04/2024
*
* @package Neve\Views
*/

namespace Neve\Views;

/**
* Class Secondary_Nav_Walker
*
* @package Neve\Views
*/
class Secondary_Nav_Walker extends Nav_Walker {

/**
* Secondary_Nav_Walker constructor.
*/
public function __construct() {
add_action( 'neve_after_header_wrapper_hook', [ $this, 'inline_style_for_sidebar' ], 9 );
}
}

0 comments on commit b757ea2

Please sign in to comment.