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

Modify Header in OnePress

Discussion in 'Troubleshooting & How-To's' started by Tommy B, Aug 5, 2017.

  1. Tommy B

    New Member

    Aug 5, 2017
    Likes Received:
    So I'm trying to mirror some headers I see all over the web. Most themes miss the big picture of needing a phone number in the header, not a thin link at the top of the header, the actual header itself. There are a couple ways I've seen, but I'm not sure how to achieve it.

    Phone link and contact link on left side of header that collapses the logo, phone, contant, and then toggle on mobile: (see attached)

    I'm using OnePress, but ultimately I want to create my own theme. I'm just not there yet.

    function onepress_site_header(){
    <header id="masthead" class="site-header" role="banner">
    <div class="container">
    <div class="site-branding">
    <!-- .site-branding -->
    <div class="header-right-wrapper">
    <a href="#0" id="nav-toggle"><?php _e('Menu', 'onepress'); ?><span></span></a>
    <nav id="site-navigation" class="main-navigation" role="navigation">
    <ul class="onepress-menu">
    <?php wp_nav_menu(array('theme_location' => 'primary', 'container' => '', 'items_wrap' => '%3$s')); ?>
    <!-- #site-navigation -->
    </header><!-- #masthead -->

    Attached Files:


Share This Page

Monarch Social Sharing Plugin