Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter wladislav

    (@wladislav)

    Thank you.
    Sincerely, Vladislav.

    Thread Starter wladislav

    (@wladislav)

    So I must add this code in mobmenu.js? I hope for your help.
    I have:

    jQuery(document).ready(function() {
            
            if ( jQuery( 'body' ).find( '.mobmenu-push-wrap' ).length <= 0 ) {
    
                jQuery( 'body' ).wrapInner( '<div class="mobmenu-push-wrap"></div>' );
                jQuery( '.mobmenu-push-wrap' ).after( jQuery( '.mob-menu-left-panel' ).detach() );
                jQuery( '.mobmenu-push-wrap' ).after( jQuery( '.mob-menu-right-panel' ).detach() );
                jQuery( '.mobmenu-push-wrap' ).after( jQuery( '.mob_menu_header_div' ).detach() );
                jQuery( '#wpadminbar' ).appendTo( 'body' );
    
            }
    
            jQuery( document ).on( 'click', '.mobmenu-left-bt, .mob-menu-left-panel .mobmenu_content a' , function ( ) {  
                  jQuery('body').toggleClass('show-nav-left'); 
                
                if ( jQuery( 'body' ).hasClass( 'show-nav-left') ){  
                    jQuery( 'body' ).css( 'overflow', 'hidden');  
                } else {
                    jQuery( 'body' ).css( 'overflow', '');  
                }
                
            });  
    
            jQuery( document ).on( 'click', '.mobmenu-right-bt, .mob-menu-right-panel .mobmenu_content a' , function ( ) {
                  
                
                jQuery('body').toggleClass('show-nav-right'); 
                
                if ( jQuery( 'body' ).hasClass( 'show-nav-right') ){
                    jQuery( 'body' ).css( 'overflow', 'hidden');  
                } else {
                    jQuery( 'body' ).css( 'overflow', '');  
                }
            });
    
            jQuery('.mobmenu_content .sub-menu').each( function(){
                jQuery( this ).before('<div class="mob-expand-submenu"><i class="mob-icon-down-open"></i><i class="mob-icon-up-open hide"></i></div>');
    
            });
            
            jQuery( document ).on( 'click', '.mob-expand-submenu' , function ( ) {
    
                  // Only autoclose when it isn't the opened sub menu
                  if( jQuery( this ).next()[0] != jQuery('.show-sub-menu')[0] ) {
                    
                    jQuery( '.show-sub-menu' ).hide();
                    jQuery( '.show-sub-menu' ).prev().find('.mob-icon-down-open').toggleClass('hide');
                    jQuery( '.show-sub-menu' ).prev().find('.mob-icon-up-open').toggleClass('hide');
                    jQuery( '.show-sub-menu' ).toggleClass( 'show-sub-menu');
        
                  }
                  
                  jQuery( this ).find('.mob-icon-down-open').toggleClass('hide');
                  jQuery( this ).find('.mob-icon-up-open').toggleClass('hide');
                  
                  if ( !jQuery( this ).next().hasClass( 'show-sub-menu' ) ) {  
    
                      jQuery(this).next().fadeIn( 'slow' );   
    
                  } else {
                      
                      jQuery(this).next().hide();   
    
                  }
    
                  jQuery(this).next().toggleClass( 'show-sub-menu');
                  
            });
    
        }); 

    Where I must add?:
    jQuery( '.mobmenu-left-bt' ).trigger( 'click' );

    Thread Starter wladislav

    (@wladislav)

    How I can add it my case, please help me!

    Thread Starter wladislav

    (@wladislav)

    Thread Starter wladislav

    (@wladislav)

    Decision, if jobs aren’t place on home page
    Replace with
    $link2 = ‘href=”../wp-login.php”‘;

    Thread Starter wladislav

    (@wladislav)

    Thanks for you answer. But clicking on the button to authorize, I am redirected by reference https://руто.com/поиск-работы/wp-login.php and there are an eror 404(page not found). Help me, please!

    Thread Starter wladislav

    (@wladislav)

    But how add widget area above horizontal menu, like a position of social icons. I need 3 columns (3 widget areas).

    Thread Starter wladislav

    (@wladislav)

    subrataemfluence, Thanks for your answer!
    I have find: “How to add widget area above header”
    Paste this code in the function.php in your child theme:

    // Adds a widget area.
    if (function_exists('register_sidebar')) {
     register_sidebar(array(
     'name' => 'Extra Header Widget Area',
     'id' => 'extra-widget-area',
     'description' => 'Extra widget area before the header',
     'before_widget' => '',
     'after_widget' => '',
     'before_title' => '',
     'after_title' => ''
     ));
    }
     
    // Place the widget area after the header
    add_action ('__before_header', 'add_my_widget_area', 10);
    function add_my_widget_area() {
     if (function_exists('dynamic_sidebar')) {
     dynamic_sidebar('Extra Header Widget Area');
     }
    }
    • This reply was modified 8 years, 1 month ago by wladislav.
Viewing 8 replies - 1 through 8 (of 8 total)