Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1062132
    toddbiala
    Participant

    Is it possible to change hamburger icon to menu text? I would imagine have to here but what do i change?

    <?php

    // =============================================================================
    // VIEWS/GLOBAL/_NAV-PRIMARY.PHP
    // —————————————————————————–
    // Outputs the primary nav.
    // =============================================================================

    ?>
    <?php $post_id = get_the_ID();
    if(get_field(‘telephone_number’, $post_id) != ”){
    $phone = get_field(‘telephone_number’, $post_id);
    }elseif(get_field(‘telephone_number’, $post->post_parent) != ”){
    $phone = get_field(‘telephone_number’, $post->post_parent);
    }else{
    $phone = ‘(855) 437-9728’;
    }
    $arr = array(“(” => “”,”)” => “”,” “=>””,”-” => “”);
    $mobilePhone = strtr($phone,$arr);
    ?>

    <i class=”x-icon-bars” data-x-icon=””></i>
    <span class=”visually-hidden”><?php _e( ‘Navigation’, ‘__x__’ ); ?></span>

    <nav class=”x-nav-wrap desktop” itemscope=”itemscope” itemtype=”http://www.schema.org/SiteNavigationElement&#8221; role=”navigation”>
    <?php x_output_primary_navigation(); ?>
    <div class=”headphone1″>Call or Text | We Buy All Cars</div>
    <div class=”headphone”>
    <?php echo $phone; ?>
    </div>
    </nav>

    <div class=”extra-mobile-btn”>
    Call (855) 437-9728
    </div>

    <div class=”x-nav-wrap mobile collapse”>
    <?php x_output_primary_navigation(); ?>
    </div>

    #1062392
    John Ezra
    Member

    Hi there,

    Thanks for writing in! You can add this under Custom > CSS in the Customizer or in your child theme’s style.css file.

    i.x-icon-bars:before {
        content: "MENU"
    }

    Hope this helps – thanks!

  • <script> jQuery(function($){ $("#no-reply-1062132 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>