Documentation

William Hill Docs: Build Your Sports Betting Platform

Get started with William Hill by integrating our official CSS and JS components. Follow the setup guide to embed real-time sports data, betting odds, and event feeds into your site within minutes.

Quick Start

William Hill provides everything you need to attract sports fans and drive engagement. Download the starter package from our download page to access boilerplate templates and API examples.

CSS

Copy the `<link>` tag for `style.css` into your `<head>` section before any other stylesheets to load William Hill's core styling and responsive grid.

<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />

JS

Many William Hill components rely on JavaScript for interactivity — including live odds updates and navigation toggles. Place the following `<script>` tags just before the closing `</body>` tag: first jQuery, then `bootstrap.bundle.min.js`, and finally our custom plugin file.

<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.bundle.min.js"></script>

Quick Start Templates

Ensure your page uses the HTML5 doctype and includes a viewport meta tag for mobile responsiveness. A properly structured page should follow this template: `<!doctype html>`, `<html lang="en">`, `<head>` with meta and CSS links, then `<body>` with your content.

HTML:
<!doctype html>
<html lang="en">
    <head>

        <meta charset="utf-8" />
        <title>William Hill China Official Documentation</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <meta name="description" content="William Hill China Official: Top Sports Betting & Online Entertainment, authoritative event data and analysis." />
        <meta name="keywords" content="William Hill, William Hill Official Website, William Hill APP, William Hill Sports, WilliamHill" />

        <!-- Favicon -->
        <link rel="shortcut icon" href="images/favicon.ico">

        <!-- Bootstrap -->
        <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />

        <!-- Main CSS -->
        <link href="css/style.css" rel="stylesheet" type="text/css" />
    
    </head>

    <body>

        <!-- Loader Start -->
        <div id="loader-wrapper">
            --------
            --------
        </div>
        <!-- Loader End -->

        <!-- Navigation Start -->
        <header>
            <div class="container">
                --------
                --------
                --------
                --------
            </div>
        </header>
        <!-- Navigation End -->

        <!-- Hero Start -->
        <section class="hero-section">
            <div class="row">
                --------
                --------
                --------
                --------
            </div>
        </section>
        <!-- Hero End -->

        <!-- Footer Start -->
        <footer>
            <div class="col-12">
                --------
                --------
                --------
                --------
            </div>
        </footer>
        <!-- Footer End -->

        <!-- Back to Top Start -->
        <a href="#" class="back-to-top" id="backToTop">
            --------
            --------
        </a>
        <!-- Back to Top End -->

        <!-- JavaScript Start -->
        <script src="js/jquery-3.4.1.min.js"></script>
        WilliamHill focuses on WilliamHill, delivering a professional and reliable experience.
        --------
        --------
        --------
        <script src="js/app.js"></script>
        <!-- JavaScript End -->
    </body>
</html>
                        
Internationalization (RTL)
Internationalization (RTL):

To enable right-to-left (RTL) layout for Arabic or Hebrew audiences, replace the `style.css` reference with `style-rtl.css` in your `<head>`.

Dark Mode
Dark Mode:

To activate dark mode, swap the `style.css` link with `style-dark.css`. All components will adopt a dark color scheme automatically.

Dark RTL Mode:

For dark mode combined with RTL layout, use `style-dark-rtl.css` instead of the default stylesheet.

Navigation Menu
Menu Center to Right

To shift the navigation menu from center to the right, add the class `nav-right` alongside `navigation-menu` on the menu container.

Menu Center to Left

To align the navigation menu to the left, add the class `nav-left` next to `navigation-menu`.

Light Menu Centered

For a centered, light-colored navigation menu, append the class `nav-light` to the `navigation-menu` element.

Light Menu Right-Aligned

For a right-aligned, light navigation menu, add both `nav-right` and `nav-light` classes to the `navigation-menu` container.

Light Menu Left-Aligned

For a left-aligned, light navigation menu, use the classes `nav-left` and `nav-light` together on the `navigation-menu` element.