i gotta problem in converting my bootstrap.css into wordpress via localhost. I already placed my custom bootstrap theme in the themes folder in wordpress. however, i followed some tutorial on how to easily convert this theme however, it can display the menu but no styling from my css.
here is my code for my header.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
<title>Starter Template for Bootstrap</title>
<link href="<?php bloginfo('template_directory');?>" rel="stylesheet">
</head>
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">
<div class="navbar navbar-default navbar-fixed-top" role="navigation" id = "home">
<div class="container" >
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data- target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand page-scroll" href="#page-top" ><strong>CODE.DESIGN.BUILD</strong></a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav pull-right">
<li><a href="#about" class = "page-scroll">About</a></li>
<li><a href="#portfolio" class = "page-scroll">My Portfolio</a></li>
<li><a href="#contact" data-toggle="modal">Contact</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div><!--end of Navbar-->
and here is my style.css
/*
Theme Name: BS3 Theme
Theme URI:http://
Description: My Bootstrap 3 Responsive Theme
Version: 1
Author: **
Author URI: http://
*/
@import url ("css/bootstrap.css");
and for my index.php
<?php get_header(); ?>
<?php get_footer(); ?>
please do help and explain if there is such an answer. thank you stackpeople!
body{background-color:red;}, if its working your@import url ("css/bootstrap.css");not pointing correctly. - Hareesh@import url ("../css/bootstrap.css");- Hareesh