1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Urgent help needed with wordpress website - I donate [12]$ for helper

Discussion in 'Hire a Freelancer' started by instant_kill, Feb 5, 2017.

  1. instant_kill

    instant_kill Newbie

    Joined:
    Dec 15, 2016
    Messages:
    23
    Likes Received:
    1
    This is the case:
    I have a wordpress website already live using "Porto" as theme.
    I need to make a custom menu for small screen view (mobile).
    "Porto" already has responsive menu for small-screens but it uses the wordpress "main-menu", as a menu for small screen.

    So I registered a new menu through "Child" - functions.php:
    PHP:
    function porto_menu_setup() {
        
    register_nav_menu'primary-mobile'__'Mobile Menu''porto' ) );
    }
    add_action'after_setup_theme''porto_menu_setup' );
    Now i'm able to see the menu in my dashboard:
    [​IMG]

    In the header.php I don't know exactly what to change so my mobile menu will be loaded instead of my primary menu.

    This is my header:
    PHP:
    <?php
    global $porto_settings$porto_layout;

    $search_size $porto_settings['search-size'];
    ?>
    <header id="header" class="header-corporate header-15 <?php echo $search_size ?>">
        <?php if ($porto_settings['show-header-top']) : ?>
            <div class="header-top">
                <div class="container">
                    <div class="header-left">
                        <?php
                        
    // show currency and view switcher
                        
    $currency_switcher porto_currency_switcher();
                        
    $view_switcher porto_view_switcher();

                        if (
    $currency_switcher || $view_switcher)
                            echo 
    '<div class="switcher-wrap">';

                        echo 
    $currency_switcher;

                        if (
    $currency_switcher && $view_switcher)
                            echo 
    '<span class="gap switcher-gap">|</span>';

                        echo 
    $view_switcher;

                        if (
    $currency_switcher || $view_switcher)
                            echo 
    '</div>';
                        
    ?>
                        <?php
                        
    // show contact info and top navigation
                        
    $contact_info $porto_settings['header-contact-info'];

                        if (
    $contact_info)
                            echo 
    '<div class="block-inline"><div class="header-contact">' do_shortcode($contact_info) . '</div></div>';
                        
    ?>
                    </div>
                    <div class="header-right">
                        <?php
                        
    // show welcome message and top navigation
                        
    $top_nav porto_top_navigation();

                        if (
    $porto_settings['welcome-msg'])
                            echo 
    '<span class="welcome-msg">' do_shortcode($porto_settings['welcome-msg']) . '</span>';

                        if (
    $porto_settings['welcome-msg'] && $top_nav)
                            echo 
    '<span class="gap">|</span>';

                        echo 
    $top_nav;
                        
    ?>
                        <?php
                        
    // show search form
                        
    echo porto_search_form();

                        
    // show minicart
                        
    $minicart porto_minicart();

                        if (
    $minicart)
                            echo 
    '<div class="block-inline">' $minicart '</div>';
                        
    ?>
                    </div>
                </div>
            </div>
        <?php endif; ?>

        <div class="header-main">
            <div class="container">
                <div class="header-left">
                    <?php
                    
    // show logo
                    
    $logo porto_logo();
                    echo 
    $logo;
                    
    ?>
                </div>

                <div class="header-right">
                    <?php
                    
    if ($porto_settings['show-header-top']) {
                        
    // show search form
                        
    echo porto_search_form();
                    }

                    
    // show mobile toggle
                    
    ?>
                    <a class="mobile-toggle"><i class="fa fa-reorder"></i></a>   
                
                    <div id="main-menu"<?php echo ($porto_settings['show-header-top']) ? ' class="show-header-top"' '' ?>>
                        <?php
                        
    // show main menu
                        
                        
    echo porto_main_menu();   
                        
    ?>
                    </div>
                    <?php
                    
    // show social links
                    
    echo porto_header_socials();

                    if (
    $porto_settings['show-header-top']) {
                        
    // show minicart
                        
    $minicart porto_minicart();

                        echo 
    $minicart;
                    }
                    
    ?>

                    <?php
                    get_template_part
    ('header/header_tooltip');
                    
    ?>

                </div>
            </div>
        </div>
    </header>
    Thanks
     
  2. vividus designs

    vividus designs Newbie

    Joined:
    Jan 20, 2017
    Messages:
    19
    Likes Received:
    4
    Gender:
    Male
    dm me your skype
     
  3. instant_kill

    instant_kill Newbie

    Joined:
    Dec 15, 2016
    Messages:
    23
    Likes Received:
    1
    anyone??
     
  4. Bloggeradamsmith

    Bloggeradamsmith Regular Member

    Joined:
    Feb 4, 2016
    Messages:
    342
    Likes Received:
    47
    Gender:
    Male
    Location:
    Around BHW
    I can't understand your points clearly, Add me on skype : adam.smith5171

    We discus further, I can definitely help you.
     
  5. Biycchu

    Biycchu Registered Member

    Joined:
    Jan 29, 2017
    Messages:
    51
    Likes Received:
    1
    Gender:
    Male
    Home Page:
    give me your facebook id
     
  6. BeanDH92

    BeanDH92 Regular Member

    Joined:
    Nov 24, 2013
    Messages:
    303
    Likes Received:
    36
    Occupation:
    Web developer
    you need to change this mobile menu right?
    [​IMG]
     
  7. thor0

    thor0 Regular Member

    Joined:
    Jul 25, 2014
    Messages:
    378
    Likes Received:
    39
    Donate $12?