Adding a link or search icon to the admin bar

WordPress Business Themes Forums Responsive Themes Directory Theme Adding a link or search icon to the admin bar Reply To: Adding a link or search icon to the admin bar

WordPress Business Themes Forums Responsive Themes Directory Theme Adding a link or search icon to the admin bar Reply To: Adding a link or search icon to the admin bar

  • Garry
    Garry
    Newbie 11 points

    UPDATE: I have managed to work out how to add a link to the top menu if anyone else needs help with this.

    I am using child theme 11 on DT9

    I downloaded the file ([CHILD] 11. Directory Theme: header-menu.php) via FTP. Made a copy of the original file just in case it all went wrong.

    Then opened the file in notepad, searched for the MY Account link code and added the following line of code to the line immediately below the MY Account code:
    <?php echo __(“or”,”premiumpress”); ?>“><?php echo __(“Search Directory”,”premiumpress”); ?>

    Here is the full code:
    <?php global $CORE, $userdata;

    if(defined(‘WLT_DEMOMODE’)){
    $GLOBALS[‘CORE_THEME’][‘logo_url’] = home_url().”/wp-content/themes/childtheme_directory_11/img/logo.png”;
    }
    ?>
    <div class=”headertopwrap small d-none d-md-block header-dark no-sticky”>
    <div class=”container headertop”>
    <div class=”row py-1″>
    <div class=”col-lg-6 d-none d-lg-block px-0″>

    <ul class=”list-inline mb-0 pl-1 lista1 float-none” >

    <li class=”text-light”>
    <?php echo __(“Welcome”,”premiumpress”); ?> <?php if(!$userdata->ID){ ?><?php echo __(“Guest”,”premiumpress”); ?><?php }else{ echo $userdata->display_name; } ?>

    <li class=”list-inline-item text-light” <?php if(!$userdata->ID){ ?>style=”border-right:0px”<?php } ?>>
    <?php if(!$userdata->ID){ ?>
    ” >
    <span class=”pr-2″><?php echo __(“Register”,”premiumpress”); ?></span>
    <?php echo __(“or”,”premiumpress”); ?> ” class=”ml-2″>
    <span class=”pr-2″><?php echo __(“Login”,”premiumpress”); ?></span>

    <?php }else{ ?>
    “>
    <span class=”pr-2”><?php echo __(“My Account”,”premiumpress”); ?></span>

    <?php } ?>

    </div>
    <div class=”col-md-12 col-lg-6 text-right”>
    <ul class=”list-inline mb-0 pl-1 lista1″ >
    <?php if(_ppt(‘language_dropdown’) == 1){ ?>
    <li class=”list-inline-item”><?php echo $CORE->_language_dropdown_menu(0); ?>
    <?php } ?>
    <li class=”list-inline-item”><?php echo $CORE->_curreny_dropdown_menu(0); ?>
    <?php if($userdata->ID && _ppt(array(‘links’,’add’)) != “” ){ ?>
    <li class=”list-inline-item”>
    “><?php echo __(“Add Listing”,”premiumpress”); ?>
    <?php echo __(“or”,”premiumpress”); ?>“><?php echo __(“Search Directory”,”premiumpress”); ?>

    <?php } ?>

    </div>
    </div>
    </div>
    </div>
    <div class=”ppt-header header-innner header-shadow header-light viewport-lg no-sticky py-3″>
    <div class=”container”>
    <div class=”ppt-header-container”>
    <div class=”logo” data-mobile-logo=”<?php echo $GLOBALS[‘CORE_THEME’][‘logo_url’]; ?>” data-sticky-logo=”<?php echo $GLOBALS[‘CORE_THEME’][‘logo_url’]; ?>”>
    /” title=”<?php echo get_bloginfo(‘name’); ?>”>
    <?php echo hook_logo(0); ?>

    </div>
    <div class=”burger-menu”>
    <div class=”line-menu line-half first-line”></div>
    <div class=”line-menu”></div>
    <div class=”line-menu line-half last-line”></div>
    </div>
    <nav class=”ppt-menu separate-line submenu-top-border submenu-scale”>
    <?php echo do_shortcode(‘[MAINMENU class=”” style=”1″]’); ?>
    </nav>
    </div>
    </div>

    </div>

    <?php if(isset($GLOBALS[‘flag-single’])){ ?>
    <div class=”bg-primary”>
    <div class=”container”> 
    </div>
    </div>
    <?php } ?>

    See the screenshot for the result.

    Attachments:
    You must be logged in to view attached files.
    October 2, 2018 at 9:24 am
  • Didn't find what you were after?

    Chat with us now

    or contact our support team