Customising Wordpress Menu Bar

Customising Wordpress Menu Bar

Postby kawstov » Sun Nov 01, 2015 4:01 am

In custom CSS (Jetpack), add the following:

Code: Select all
@import  'http://fonts.googleapis.com/css?family=Montserrat:400,700';

.navbar {
   font-family: 'Montserrat', sans-serif;
   text-transform: uppercase;
   margin-bottom: 0;
}



In header.php

add the following the head section:
Code: Select all
<!-- Responsive Menu Starts -->

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">

    <title>Gotcha! </title>

    <!-- Bootstrap core CSS -->
    <link href="http://kawstov.com/welcome_files/css/bootstrap.css" rel="stylesheet">


    <!-- Custom styles for this template -->
    <link href="http://kawstov.com/welcome_files/css/main.css" rel="stylesheet">

    <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script src="http://kawstov.com/welcome_files/js/hover.zoom.js"></script>
    <script src="http://kawstov.com/welcome_files/js/hover.zoom.conf.js"></script>

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->

<style>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Montserrat">
@import url(http://fonts.googleapis.com/css?family=Montserrat:400,700);
.menufont{
font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #555;
    -webkit-font-smoothing: antialiased;
}


</style>
<!-- Responsive Menu Ends -->



Finally add the following code in the body in the begining:

Code: Select all
<!-- Static navbar -->
    <div class="navbar navbar-default navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="http://kawstov.com/">HOME</a>
        </div>
        <div class="navbar-collapse collapse ">
          <ul class="nav navbar-nav navbar-right menufont">
            <li><a href="#">About</a></li>
            <li><a href="http://blog.kawstov.com/" target="_blank">Blog</a></li>
            <li><a href="http://forum.kawstov.com/" target="_blank">Forum</a></li>
          </ul>
        </div>
      <!--/.nav-collapse -->
     </div>
    </div>

Cheers!
Kawstov
kawstov
Site Admin
 
Posts: 119
Joined: Tue May 28, 2013 10:51 pm

Return to Daily Scratch

Who is online

Users browsing this forum: No registered users and 1 guest

cron