tekboi
Active member
I'm working on integrating my current wordpress header with xenforo so that the integration looks seemless.
I've spent the last few hours copying the html and css to the header.php template, that caused a ton of conflics. Then I tried figuring out what classes were being used by the header and the navigation list. Made a new CSS file and copied those classes to it. Then linked the css file to the header and deleted the old reference CSS file, but to no avail since I was still unable to get the styling right.
And now I am looking at the theme's header php file and this is the code for it.
I just need to figure out a way to integrate this into the xenforo header.php file? any ideas?
I've spent the last few hours copying the html and css to the header.php template, that caused a ton of conflics. Then I tried figuring out what classes were being used by the header and the navigation list. Made a new CSS file and copied those classes to it. Then linked the css file to the header and deleted the old reference CSS file, but to no avail since I was still unable to get the styling right.
And now I am looking at the theme's header php file and this is the code for it.
Code:
<!-- NAVBAR
================================================== -->
<div class="navbar navbar-inverse <?php if ( of_get_option('fullwidth') ) { }else{ ?>container<?php } ?>">
<div class="navbar-inner<?php if ( of_get_option('fullwidth') ) { ?> container<?php } ?>">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="nav-collapse collapse">
<?php if(has_nav_menu('header-menu')) { ?>
<?php wp_nav_menu( array( 'theme_location' => 'header-menu', 'depth' => 0,'sort_column' => 'menu_order', 'items_wrap' => '<ul class="nav">%3$s</ul>' ) ); ?>
<?php }else { ?>
<ul class="nav"><li>
<a href=""><?php _e('No menu assigned!', 'addict'); ?></a>
</li></ul>
<?php } ?>
<div class="search-login">
<?php if (of_get_option('login_menu')){ ?>
<a href="#myModalL" role="button" data-toggle="modal" class="account"><i class="fa fa-user"></i></a>
<?php } ?>
<form method="get" id="header-searchform" action="<?php echo esc_url( site_url( '/' ) ); ?>">
<input type="text" autocomplete="off" value="" name="s" id="header-s">
<input type="submit" id="header-searchsubmit" value="Search">
<input type="hidden" name="post_type[]" value="portfolio" />
<input type="hidden" name="post_type[]" value="post" />
<input type="hidden" name="post_type[]" value="page" />
</form>
</div>
<div class="clear"></div>
</div><!--/.nav-collapse -->
</div><!-- /.navbar-inner -->
</div><!-- /.navbar -->
I just need to figure out a way to integrate this into the xenforo header.php file? any ideas?