Skip to content

Commit

Permalink
flyout cta btn menu-align
Browse files Browse the repository at this point in the history
  • Loading branch information
vijetaR committed Jan 28, 2025
1 parent c8e16bd commit 20baa21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inc/js/frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
});

if( ( 'cta' == last_item || 'cta' == last_item_flyout ) && 'expandible' != layout ){
$( '.elementor-element-' + id + ' li.menu-item:last-child a.hfe-menu-item' ).parent().addClass( 'elementor-button-wrapper' );
$( '.elementor-element-' + id + ' li.menu-item:last-child a.hfe-menu-item' ).parent().addClass( 'hfe-button-wrapper' );
$( '.elementor-element-' + id + ' li.menu-item:last-child a.hfe-menu-item' ).addClass( 'elementor-button' );
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,8 @@ protected function register_general_content_controls() {
],
'selectors' => [
'{{WRAPPER}} li.menu-item a' => 'justify-content: {{VALUE}};',
'{{WRAPPER}} li .elementor-button-wrapper' => 'text-align: {{VALUE}};',
'{{WRAPPER}}.hfe-menu-item-flex-end li .elementor-button-wrapper' => 'text-align: right;',
'{{WRAPPER}} li.hfe-button-wrapper' => 'text-align: {{VALUE}};',
'{{WRAPPER}}.hfe-menu-item-flex-end li.hfe-button-wrapper' => 'text-align: right;',
],
'prefix_class' => 'hfe-menu-item-',
'frontend_available' => true,
Expand Down

0 comments on commit 20baa21

Please sign in to comment.