Introduction RTL
Bootnews supported layout with RTL direction. This is very useful if you use multi-language sites or for sites that have Arabic, Persian, Urdu and others..
Quick start
Looking to quickly add Bootnews in your project? Use css, js and starter page from this package.
CSS
Copy-paste the Bootstrap, FontAwesome and then Bootnews stylesheets <link>
into your <head>
before all other stylesheets to load our CSS.
<!--Theme Styles-->
<link rel="stylesheet" href="../../assets/css/theme-rtl.css">
Want to more faster ? You also can use this css in bundle files (minify css) with following css
<!--Bundle Theme Styles-->
<link rel="stylesheet" href="../../dist/css/bundle-rtl.min.css">
If you want to use Google fonts, you must add this csss code
<!--Google Fonts-->
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
JS
Paste following js code before </body>
<!-- Bootstrap bundle JS -->
<script src="../../assets/vendor/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<!--Vendor js-->
<script src="../../assets/vendor/hc-sticky/dist/hc-sticky.js"></script>
<script src="../../assets/vendor/flickity/dist/flickity.pkgd.min.js"></script>
<script src="../../assets/vendor/vanilla-lazyload/dist/lazyload.min.js"></script>
<script src="../../assets/vendor/smoothscroll-for-websites/SmoothScroll.js"></script>
<!--Theme js-->
<script src="../../assets/js/theme-rtl.js"></script>
Want to more faster ? You also can use this js in bundle files (minify js) with following js
<!--Bundle Theme js-->
<script src="../../dist/js/bundle-rtl.min.js"></script>
Starter template
Be sure to have your pages set up with the latest design and development standards. That means using an HTML5 doctype and including a viewport meta tag for proper responsive behaviors. Put it all together and your pages should look like this:
<!doctype html>
<html lang="ar" dir="rtl">
<head>
<!-- Title -->
<title>Hello, world!</title>
<!-- Favicon -->
<link rel="shortcut icon" href="../../assets/img/favicon/favicon.ico">
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!--Theme Styles-->
<link rel="stylesheet" href="../../assets/css/theme-rtl.css">
</head>
<body>
<div class="wrapper">
<h1>Hello, world!</h1>
</div>
<!-- Bootstrap JS -->
<script src="../../assets/vendor/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<!--Vendor js-->
<script src="../../assets/vendor/hc-sticky/dist/hc-sticky.js"></script>
<script src="../../assets/vendor/flickity/dist/flickity.pkgd.min.js"></script>
<script src="../../assets/vendor/vanilla-lazyload/dist/lazyload.min.js"></script>
<script src="../../assets/vendor/smoothscroll-for-websites/SmoothScroll.js"></script>
<!--Theme js-->
<script src="../../assets/js/theme-rtl.js"></script>
</body>
</html>
Want more faster ? use this bundle version
<!doctype html>
<html lang="ar" dir="rtl">
<head>
<!-- Title -->
<title>Hello, world!</title>
<!-- Favicon -->
<link rel="shortcut icon" href="../../assets/img/favicon/favicon.ico">
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!--Bundle Theme Styles-->
<link rel="stylesheet" href="../../dist/css/bundle.min.css">
</head>
<body>
<div class="wrapper">
<h1>Hello, world!</h1>
</div>
<!--Bundle Theme js-->
<script src="../../dist/js/bundle.min.js"></script>
</body>
</html>
Layout starter
Simple layout starter template, this html can insert after .wrapper
classes
<!-- header start -->
<header>
......
</header>
<!-- content start -->
<main id="content">
......
</main>
<!-- footer start -->
<footer>
......
</footer>
Grid starter
Simple grid starter template, this html can insert after main
or #content
<div class="container">
<div class="row">
<!-- content -->
<div class="col-md-8">
......
</div>
<!-- sidebar -->
<aside class="col-md-4">
......
</aside>
</div>
</div>
Layout style
We have three layout style full-width, boxed and framed
<!-- full width -->
<body class="full-width">
<!-- boxed -->
<body class="boxed">
<!-- framed -->
<body class="framed">
Just add .boxed
or .framed
classes in <body>
If .full-width
classes is optional, because default layout is fullwidth
Layout background
We have six layout background for boxed and framed style
.bg-repeat, .bg-repeat2, .bg-repeat3, .bg-cover, bg-cover2, .bg-cover3
Example
<!-- boxed -->
<body class="boxed bg-repeat">
<!--Background image-->
<div class="bg-image"></div>
<!-- ========== WRAPPER ========== -->
<div class="wrapper">
Just add .bg-repeat
classes in <body>
And add <div class="bg-image"></div>
after <body>
You can edit this background source images url from assets/scss/_variables.scss
Tools
If want to running rtl task series, you can use this:
Task Series | Description |
---|---|
gulp cssrtl |
Compile theme.css file to theme-rtl.css |
gulp mincssrtl |
Compile theme-rtl.css and all plugins css file to bundle-rtl.min.css in /dist/css/ directory |
gulp minjsrtl |
Minify theme-rtl.js all plugins js to bundle-rtl.min.js in /dist/js/ directory |
SCSS
If want to change css value from scss, you can edit src/scss/_variables.scss
. Ltr and rtl variables is in one file, so this will make easy customize.
More info
You can make customize rtl scss with follow tutorial from rtlcss.com
More Layout
You can see more starter layout components in here
Important globals
Bootnews employs a handful of important global styles and settings that you'll need to be aware of when using it, all of which are almost exclusively geared towards the normalization of cross browser styles. Let's dive in.
HTML5 doctype
Bootnews requires the use of the HTML5 doctype. Without it, you'll see some funky incomplete styling, but including it shouldn't cause any considerable hiccups.
<!doctype html>
<html lang="ar" dir="rtl">
...
</html>
Responsive meta tag
Bootnews is developed mobile first, a strategy in which we optimize code for mobile devices first and then scale up components as necessary using CSS media queries. To ensure proper rendering and touch zooming for all devices, add the responsive viewport meta tag to your <head>
.
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
You can see an example of this in action in the starter template.
Contact us
Stay up to date on the development of Bootnews and contact our team if have problem or bugs in theme.
- Visit Official site www.Bootstrap.news
- Contact Us Bootnews Team
- Support Area Member Area
- Official Store Bootnews Store