• Resolved xinrea

    (@xinrea)


    Hello . Additional css did not work it and i cant find code in evolve theme headerv1 file is there any other solution ?

    <header class=”header-v1 header-wrapper” role=”banner” itemscope=”itemscope” itemtype=”https://schema.org/WPHeader”&gt;
    <div class=”header-pattern”>

    <?php if ( get_header_image() ) {
    echo ‘<div class=”custom-header”>’;
    } ?>

    <div class=”header container”>
    <div class=”row align-items-center justify-content-between”>

    <?php

    if ( is_active_sidebar( ‘top-header’ ) ) {
    if ( evolve_theme_mod( ‘evl_tagline_pos’, ‘next’ ) == “next” ) {
    echo ‘<div class=”col-lg-auto ml-auto order-1 order-md-3″>’;
    } else {
    echo ‘<div class=”col-lg-auto ml-auto order-1 order-md-2″>’;
    }
    dynamic_sidebar( ‘top-header’ );
    echo ‘</div>’;
    }

    if ( evolve_theme_mod( ‘evl_tagline_pos’, ‘next’ ) == “next” ) {
    $evolve_social_woo_class = ‘col-12 col-md order-1 order-md-3’;
    } else {
    $evolve_social_woo_class = ‘col-12 col-md order-1 order-md-2’;
    }

    if ( evolve_theme_mod( ‘evl_header_logo’, ” ) && evolve_logo_position() !== ‘disable’ ) {
    if ( evolve_logo_position() == “center” ) {
    $evolve_social_woo_class = ‘col-12 order-1’;
    }
    if ( evolve_logo_position() == “left” ) {
    $evolve_social_woo_class = ‘col order-1 order-md-3’;
    }
    if ( evolve_logo_position() == “right” ) {
    $evolve_social_woo_class = ‘col-12 order-1’;
    }
    }

    if ( evolve_theme_mod( ‘evl_social_links’, 0 ) != ‘1’ || ( evolve_theme_mod( ‘evl_woocommerce_acc_link_main_nav’, 0 ) == “0” && evolve_theme_mod( ‘evl_woocommerce_cart_link_main_nav’, 0 ) == “0” ) ) {
    } else {

    echo ‘<div class=”‘ . $evolve_social_woo_class . ‘”>’;

    if ( evolve_theme_mod( ‘evl_social_links’, 0 ) ) {
    evolve_social_media_links();
    }

    if ( class_exists( ‘Woocommerce’ ) ) {
    evolve_woocommerce_menu();
    }

    echo ‘</div>’;

    }

    if ( evolve_logo_position() != “disable” ) {
    evolve_header_logo();
    }

    get_template_part( ‘template-parts/header/header’, ‘tagline-above’ );

    if ( evolve_theme_mod( ‘evl_blog_title’, ‘0’ ) != “1” ) {
    get_template_part( ‘template-parts/header/header’, ‘website-title’ );
    }

    get_template_part( ‘template-parts/header/header’, ‘tagline-next-under’ ); ?>

    </div><!– .row .align-items-center –>
    </div><!– .header .container –>

    <?php if ( get_header_image() ) {
    echo ‘</div><!– .custom-header –>’;
    } ?>

    </div><!– .header-pattern –>

    <div class=”menu-header”>
    <div class=”container”>
    <div class=”row align-items-md-center”>

    <?php if ( evolve_theme_mod( ‘evl_main_menu’, false ) !== true ) {
    echo evolve_menu( ‘primary-menu’, ‘navbar-nav mr-auto’ );
    }

    if ( evolve_theme_mod( ‘evl_searchbox’, true ) ) {
    evolve_header_search( ‘1’ );
    } ?>

    </div><!– .row .align-items-center –>
    </div><!– .container –>
    </div><!– .menu-header –>
    </header><!– .header-v1 –>

    • This topic was modified 5 years, 10 months ago by xinrea.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @xinrea,

    modify this:

    echo evolve_menu( ‘primary-menu’, ‘navbar-nav mr-auto’ );

    to this:

    echo evolve_menu( ‘primary-menu’, ‘navbar-nav justify-content-center’ );

    Thread Starter xinrea

    (@xinrea)

    Thanks for helping me @romik84 . But it made website completely disappear and even i switch back to code but it did not fixed so i had to delete and reinstall theme. File name was header-v1.php and did not changed any additional cs . website name “www.kishikumanodistillery.com”.

    Then the code was changed incorrect.

    Thread Starter xinrea

    (@xinrea)

    Thanks @romik84 and yes you were right i only changed this “navbar-nav justify-content-center” and it did not break but it still looks like left margined do i have to use additional css ?

    • This reply was modified 5 years, 10 months ago by xinrea.

    if you use a caching plugin, clear its cache

    Thread Starter xinrea

    (@xinrea)

    cleared caches and its looks perfect thanks for your help @romik84

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to center menu bar ?’ is closed to new replies.