H

What is bootstrap ?

Bootstrap is a free, open-source collection of tools (primarily HTML, CSS, and JavaScript) designed to help developers build responsive, mobile-first websites quickly and easily. It was originally created by Twitter (hence the old name “Twitter Bootstrap”) and is now maintained independently.

Is tailwind css better than bootstrap ?

No, Tailwind CSS is not universally “better” than Bootstrap — it depends on your project, experience level, team, and goals. In 2026, Tailwind CSS has surged in popularity among modern developers (especially for custom, performance-focused apps), often winning in new projects for flexibility and speed. Bootstrap remains a strong, reliable choice for quick builds, beginners, and component-heavy sites.

How to use bootstrap in wordpress website ?

To use Bootstrap in a WordPress website simply:

  1. The easiest/quickest way: Go to your WordPress dashboard → Appearance → Theme File Editor → open header.php (or use a child theme to avoid losing changes on updates).

  2. Paste the Bootstrap 5 CDN link just before the closing </head> tag:

    HTML
     
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
     

    And for JS (interactive parts like modals/dropdowns), add this before </body>:

    HTML
     
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
     
  3. Save, then start adding Bootstrap classes (e.g., container, row, col-md-6, btn btn-primary) to your pages/posts or theme files.

Better long-term way (recommended): Add the enqueues to your theme’s functions.php file instead of editing header.php directly — this follows WordPress best practices and avoids issues on theme updates.

<head>
<!– Bootstrap CSS first (CDN or local) –>
<link href=”https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css” rel=”stylesheet”>

<!– Your custom overrides AFTER Bootstrap –>
<link href=”css/style.css” rel=”stylesheet”>
<!– Optional: responsive tweaks last –>
<link href=”css/media.css” rel=”stylesheet”>
</head>

your-project/
├── index.html (or other pages)
├── css/
│ ├── bootstrap.min.css (or via CDN)
│ ├── style.css (your main custom overrides — mandatory)
│ └── media.css (optional: only for extra responsive tweaks)
├── js/
│ └── script.js (your custom JS)
└── images/ (assets like logos, backgrounds)

@media (min-width: 1400px) {
.container {
max-width: 1170px; /* overrides Bootstrap’s 1320px */
}
}

  • <576px: 100% (fluid)
  • ≥576px: 540px
  • ≥768px: 720px
  • ≥992px: 960px
  • ≥1200px: 1140px
  • ≥1400px: 1320px (caps here — no further growth)
WhatsApp Icon Chat on WhatsApp
Scroll to Top