Welcome to Synto - PHP Tailwind CSS Admin Dashboard Template
Updated Date : 20/July/2023
Created Date : 11/May/2023
Author : Spruko
Company : Spruko Technologies Private Limited
Thank you for showing interest towards our admin template. Feel free to contact us any time. We have a dedicated team to provide you the best support. If you want any queries open support ticket https://support.spruko.com.
Introduction
Welcome to Synto β PHP Tailwind CSS Admin Dashboard Template
Synto - PHP Tailwind CSS Admin Dashboard Template, With these template formats, it's very easy to create a presence and grab someone's attention around the web page
Because the template is built using HTML5, CSS3, Tailwind CSS framework and with Sass. So please before you start working with the template take a quick look on the documentation so that you can easily built your website.
If You Love Our Template Design Please don't forgot to rate it. Thank you so much! π
Template Description
Synto is a Tailwind CSS Admin Dashboard Template using modern and minimal design. It is fully flexible user-friendly and responsive. Synto Modern template is powered with HTML5, SASS, & Tailwind CSS which looks great on Desktops, Tablets, and Mobile Devices. This Template Includes 130+ PHP Pages . No Need to do hard work for this template customization. We already designed it and you can easily design your website just how you like it.
This template is build using Tailwind CSS framework. After Purchased this template you will get All PHP Files, CSS, SCSS and JS Files.
It has super clean flat user interface admin design, easy customizable components and widgets.The Template comes with a awesome unique design also we ensure you can easily design template.
It is a fully responsive layout for all type of devices. Works on all major web browsers, Desktop, iPhone, iPad, Tablet and all other smart phone devices
Once you Purchase Synto Tailwind CSS Admin Dashboard Template, you will be able to get free download of all future updates.
How to deploy PHP Template or Starterkit on local servers
Introduction:
In order to use the Synto Admin template locally, you need to deploy it on a local server or any other hosting server. This step-by-step guide will walk you through the process of setting up the template on local servers using XAMPP, WAMP, or LAMP, which are popular options for local server environments. Please follow the instructions below carefully.
Prerequisites:
Download and install XAMPP, WAMP, or LAMP based on your preferences and operating system.
Ensure that you have the Synto Admin template available on your local machine.
Step 1: Install and Set Up XAMPP/WAMP/LAMP
1. Run the installer for XAMPP, WAMP, or LAMP and follow the on-screen instructions to complete the installation process.
2. Once installed, launch the server environment.
Step 2: Locate the Server Root directory.
1. Open the server control panel (XAMPP Control Panel, WAMP Manager, or LAMP Manager).
2. Locate the "Server Root" or "Document Root" directory path Example: For XAMPP, htdocs and For WAMP, www. This is the location where your server files are stored.
Step 3: Deploy the Template
1. Please extract the Synto Admin template zip folder that you have purchased and place it in the root directory of your preferred server.
2. After extraction, you will find the following folders in your root directory.
3. Here "synto" is your main template folder, which contains all the files and folders of the Synto admin template as shown in the above folder structure.
Step 4: Accessing the Template
1. Open your preferred web browser.
2. Enter "localhost" or "127.0.0.1" in the address bar.
3. Add the template file path to the URL. For example, if the template's main file is named "index.php" and located in a folder named "synto/pages/" the URL would be: "localhost/synto/pages/index.php"
4. If you wish to exclude Synto from the URL, kindly replicate all files and folders from the Synto folder and relocate them to the root directory of your preferred server.
5. Once you have effectively transferred all the files and folders to the root directory of your preferred server, please proceed with the following steps.
6. To access the template, launch your preferred web browser and enter the URL. If the main file of the template is named "index.php" and resides within a directory called "pages/" located in the root directory of your server, the URL to access it locally would be: "localhost/pages/index.php"
7. By utilizing the "pages" folder, developers are able to maintain a structured arrangement of .php files, enabling them to navigate and understand the template more effectively.
Additional Notes:
Make sure your local server environment (XAMPP/WAMP/LAMP) is running whenever you want to access the Synto Admin template.
If you encounter any errors or issues during the setup process, refer to the documentation provided by XAMPP, WAMP, or LAMP, or consult their respective support forums for assistance.
Conclusion:
By following the above steps, you can deploy and access the Synto Admin template locally using XAMPP, WAMP, or LAMP. Enjoy exploring the template and customizing it to meet your requirements. These are some alternative methods to run PHP template. Each approach has its own advantages and considerations, so choose the one that best suits your requirements and familiarity with the tools.
The PHP template starterkit is a resource that helps developers kickstart their PHP web development projects by providing a preconfigured and ready-to-use template. It aims to simplify the initial setup and provide a foundation for building PHP-based websites or applications.
Purpose of the PHP Template Starter Kit:
The purpose of the PHP template starter kit is to save developers time and effort by offering a set of prebuilt files and configurations commonly used in PHP projects. Instead of starting from scratch, developers can leverage the starter kit to quickly set up a project structure that adheres to best practices and industry standards.
Benefits of Using the PHP Template Starter Kit:
The starter kit eliminates the need to set up the basic project structure manually. It provides a well-organized file and folder structure, including commonly used directories for separating code, templates, assets, and configuration files. This allows developers to focus more on implementing business logic rather than spending time on initial setup.
Before using the PHP template starter kit, developers should have a basic understanding of PHP and web development concepts. Additionally, they should have a web server environment (such as Apache or Nginx) and PHP installed on their local machines or a hosting server. Familiarity with HTML, CSS, and JavaScript is also beneficial for frontend development aspects.
Starterkit Overview
You can use the Starterkit if you are creating a new project. It will be time-consuming to use the full admin version for a new project as Synto have more than 130 pages.
We have provided all the pre-build layouts like Sidemenu, Header, Footer and Scripts etc in the Starterkit.
For further information or support regarding the template, please contact us using the provided link.
Take a quick look at the folder structure of the "Starterkit."
Integration of your customized PHP pages becomes easy when using the "Starterkit."
The "Starterkit" provides all the layout components, related assets, and plugins.
To explore the contents of the "Starterkit," unzip the project folder received after purchase.
Navigate to the following paths:
Example: C:/xampp/htdocs/starterkit/pages/ - Add your PHP pages here if you have more.
Example: C:/xampp/htdocs/starterkit/layouts/components/ - This folder contains files such as header.php, main-scripts.php, and styles.php.
SCSS & CSS
Synto comes with power of SCSS. The css files can be generated from scss by simply following below steps:
Gulp
Gulp is a JavaScipt streaming task runner. It automate many development tasks. Using gulp you can perform tasks like running a local server, minifying code, compilation, Browser sync ,optimizing images, etc... We are using gulp which allows to easily compilation of scss to csss.
You can read it more about it here.
Prerequisites
Please follow below steps to install and setup all prerequisites:
Nodejs
Make sure to have the Node.js installed
& running in your computer. If you have already installed nodejs on your computer, you
can skip this step, otherwise install nodejs on your computer,
Note : If you are using the latest version of Node JS or want to install and use the latest version, click here and install all the dependencies manually that are given below in command prompt.
Gulp
Make sure to have the Gulp installed &
running in your computer. If you have already installed gulp on your computer, you can skip
this step. In order to install, just run command npm install -g gulp from
your terminal.
After Completion of gulp Install. open gulpfile.js And install the "Declaration of gulp variables" in your command promt. In order to install, just run command npm install gulp, npm install gulp-rename, npm install gulp-sass, npm install saas, npm install gulp-autoprefixer, npm install gulp-sourcemaps, npm install gulp-clean-css, npm install gulp-postcss, npm install tailwindcss from your terminal.
Make sure to have all above prerequisites installed & running in your computer. If you want to install more variables for your template, just declare the variables in gulpfile.js after that run in command promt
Installation
To setup, follow below mentioned steps:
Install Prerequisites
Make sure to have all above prerequisites installed & running in your computer
Install Dependencies
Open your terminal, go to your folder and enter the command npm install. This
would install all required dependencies in node_modules folder.
After you finished with above steps, you can run the command to compile scss into css:
gulp
Note:-
please ensure that you have installed all nodemodules requried to run gulp tasks .
SCSS & CSS
Here we provided package.json and gulpfile.js files in your project, you just need to run npm install in your terminal in your project root path.
After compilation of download, you can compile your SCSS files into CSS files by following below procedure.
Command
Description
gulp
In Synto template gulp command is used for, whatever the changes made in scss files, will watch and compiled into css files.
Compiling Styles
1. In the assets folder you will see css, iconfonts,
img, js, libs, scss
2. Now you can compile or customize your styles in
scss files that are present in the
assets folder.
3. Once the changes made in the files in order to
apply those changes to your template you need to
run the gulp commands in the same terminal or
command prompt that you have set your project root
path.
4. After Compilation, all your .scss files are converted into .css.
Version
php :- 8.1.12
Gulp:- 4.0.2
node:- 18.12.1
npm :- 8.19.2
Installation Instructions For both CPANELβS
and FTP
Upload the Project that you have purchased, based on your
uploading process on server
FTP Uploading
Process
Access FTP:
Login to your FTP server using your login credentials provided by your hosting provider.
Upload Project Files:
Once you successfully accessed your FTP server navigate to the Path: public_html/ in your FTP server.
Now upload and extract the project folder that you have received, in the Path: public_html/
Once the extraction is completed, you can access your project by visiting your domain, Example: www.example.com
cPanel Uploading Process
Access cPanel:
Login to your cPanel server using your login credentials provided by your hosting provider.
Upload Project Files:
Once you successfully accessed your cPanel dashboard,
navigate and click on File Manager
Now open public_html and click on
Upload
Here you can select your zipped project folder or you can
simply drag and drop your zipped project folder, once the
uploading is completed go back to the
public_html folder
In the public_html folder, you will find
your zipped project folder now you need to extract that
project folder
Once the extraction is completed, you can access your project by visiting your domain Example: www.example.com
SWITCHER?
If you want to remove switcher to your template follow the below process.
Go to root path:
pages/layout/ open
"base.php" in that file, and then change header to header1 as shown below.
Go to root
path: pages/layouts/ open
base.php in that file, below the
body tag remove the switcher path as shown below.
Go to root
path:pages/layouts/components/styles.php open remove main.js link, and Go to root path pages/layouts/components/main-scripts.php remove custom-switcher.js link, given below the process.
EX:
Remove Main.JS Link
(Path: pages/layouts/components/styles.php) :
<!-- MAIN JS --><scriptsrc="<?php echo $baseUrl; ?>/assets/js/main.js"></script>
Remove Custom-switcher.JS Link
(Path: pages/layouts/components/main-scripts.php) :
<!-- CUSTOM -SWITCHER JS --><scriptsrc="<?php echo $baseUrl; ?>/assets/js/custom-switcher.js"></script>
Go to root path:
pages/layouts/ open
"landing.base.php" file and then change landing-header to landing-header1 and then change landing-sidebar to landing-sidebar1 as shown below.
Go to root
path: pages/layouts/ open
landing-base.php in that file, below the
body tag remove the switcher path as shown below.
FAQ'S
1) How to Change Font Style ?
Step 1:
Go To _fonts.scss
(assets/scss/style.scss )
if you want to change another font-family Go to the site Google Fonts And Select One
font Family and import In to style.css file
How to Select font Family
Example:
Step 2:
And paste Your Selected font-family in _style.scss
Example:
Step 3:
And add the Your Selected font-family in tailwind config file inplace
of old font
Example:
fontFamily: {
inter: ["Inter", "sans-serif"], //place your font here
}
Step 4:
And add the Your Selected font-family to body that is font-inter in custom.scss file
(rootpath :- assets/scss/tailwind/_custom.scss) file inplace of old
font
Note : After Changing font you must run gulp command i.e, gulp . Refer gulp page for more gulp commands click here.
2) How to Change Logo ?
Go To "assets/img/brand" folder and replace your
logo with Previous Logos within in image size.
note: Please don't increase logo sizes. Replace your logo within given
image size. otherwise the logo will not fit in particular place it
disturbs the template design.
3) How to change Menu icons ?
By default menu icons are Remix Icons if you want to change icons please follow below steps
Step 1 :
To change Menu icons, pages/layouts/components/sidebar.php page open and go through sidebar
section, in that section you will find Remix Icons of menu in i
tag, there you can replace previous icon with your icon. Example as shown in below
Switcher Styles
Theme Styles
You can change the Theme Styles by adding the attribute to the html tag in base.php file.
To set sidemenu layout style Double Menu - *Does not work for horizontal
Theme Colors
You can change the Theme Colors by adding the attribute to the html tag in base.php file.
Attribute
Description
data-menu-styles="light"
To set the menu style to light
data-menu-styles="dark"
To set the menu style to dark
data-menu-styles="color"
To set the menu style to color
data-menu-styles="gradient"
To set the menu style to gradient
data-menu-styles="transparent"
To set the menu style to transparent
data-header-styles="light"
To set the header style to light
data-header-styles="dark"
To set the header style to dark
data-header-styles="color"
To set the header style to color
data-header-styles="gradient"
To set the header style to gradient
data-header-styles="transparent"
To set the header style to transparent
bg-img="bgimg1"
To set menu background image1
bg-img="bgimg2"
To set menu background image2
bg-img="bgimg3"
To set menu background image3
bg-img="bgimg4"
To set menu background image4
bg-img="bgimg5"
To set menu background image5
Local Storage
How to clear LocalStorage (cookie)?
Step1:
Open custom-switcher.js file
assets/js/custom-switcher.js
To clear LocalStorage loading functions you need to remove
localStorageBackup() function in custom-switcher.js as shown
below
function localStorageBackup() {
// if there is a value stored, update color picker and background color
// Used to retrive the data from local storage
if (localStorage.primaryRGB) {
if (document.querySelector(".theme-container-primary")) {
document.querySelector(".theme-container-primary").value =
localStorage.primaryRGB;
}
document
.querySelector("html")
.style.setProperty("--color-primary", localStorage.primaryRGB1);
document
.querySelector("html")
.style.setProperty("--color-primary-rgb", localStorage.primaryRGB);
if (localStorage.primaryRGB == "172, 172, 80") {
document.querySelector("#switcher-primary2").checked = true;
}
if (localStorage.primaryRGB == "58, 88, 146") {
document.querySelector("#switcher-primary").checked = true;
}
if (localStorage.primaryRGB == "92, 144, 163") {
document.querySelector("#switcher-primary1").checked = true;
}
if (localStorage.primaryRGB == "165, 94, 131") {
document.querySelector("#switcher-primary3").checked = true;
}
if (localStorage.primaryRGB == "87, 68, 117") {
document.querySelector("#switcher-primary4").checked = true;
}
}
if (localStorage.bodyBgRGB) {
if (document.querySelector(".theme-container-background")) {
document.querySelector(".theme-container-background").value =
localStorage.bodyBgRGB;
}
document
.querySelector("html")
.style.setProperty("--body-bg", localStorage.bodyBgRGB);
document
.querySelector("html")
.style.setProperty("--dark-bg", localStorage.darkBgRGB);
let html = document.querySelector("html");
html.classList.add("dark");
html.classList.remove("light");
html.setAttribute("data-menu-styles", "dark");
html.setAttribute("data-header-styles", "dark");
if (
!document.querySelector(".authentication-page") &&
!document.querySelector(".cover1")
) {
document.querySelector("#switcher-dark-theme").checked = true;
}
if (localStorage.bodyBgRGB == "64 76 107") {
document.querySelector("#switcher-background").checked = true;
}
if (localStorage.bodyBgRGB == "95 107 64") {
document.querySelector("#switcher-background1").checked = true;
}
if (localStorage.bodyBgRGB == "93 64 107") {
document.querySelector("#switcher-background2").checked = true;
}
if (localStorage.bodyBgRGB == "64 101 107") {
document.querySelector("#switcher-background3").checked = true;
}
if (localStorage.bodyBgRGB == "107 64 64") {
document.querySelector("#switcher-background4").checked = true;
}
}
if (localStorage.Syntodarktheme) {
let html = document.querySelector("html");
html.classList.add("dark");
html.classList.remove("light");
}
if (localStorage.Syntortl) {
let html = document.querySelector("html");
html.setAttribute("dir", "rtl");
}
if (localStorage.Syntolayout) {
let html = document.querySelector("html");
let layoutValue = localStorage.getItem("Syntolayout");
switch (layoutValue) {
case "vertical":
html.setAttribute("data-nav-layout", "vertical");
break;
case "horizontal":
html.setAttribute("data-nav-layout", "horizontal");
let menuNav = document.querySelector(".main-menu");
let mainContainer1 = document.querySelector(".main-sidebar");
setTimeout(() => {
if (
!document.querySelector(".authentication-page") &&
!document.querySelector(".cover1")
) {
if (menuNav.scrollWidth < mainContainer1.offsetWidth) {
document.getElementById("slide-right").classList.add("hidden");
document.getElementById("slide-left").classList.add("hidden");
}
}
}, 500);
break;
}
}
if (localStorage.Syntoverticalstyles) {
let html = document.querySelector("html");
let verticalStyles = localStorage.getItem("Syntoverticalstyles");
switch (verticalStyles) {
case "closed":
html.setAttribute("data-vertical-style", "closed");
html.removeAttribute("data-nav-style");
localStorage.removeItem("Syntonavstyles");
break;
case "icontext":
html.setAttribute("data-vertical-style", "icontext");
html.removeAttribute("data-nav-style");
localStorage.removeItem("Syntonavstyles");
break;
case "overlay":
html.setAttribute("data-vertical-style", "overlay");
html.removeAttribute("data-nav-style");
localStorage.removeItem("Syntonavstyles");
break;
case "detached":
html.setAttribute("data-vertical-style", "detached");
html.removeAttribute("data-nav-style");
localStorage.removeItem("Syntonavstyles");
break;
case "doublemenu":
html.setAttribute("data-vertical-style", "doublemenu");
html.removeAttribute("data-nav-style");
localStorage.removeItem("Syntonavstyles");
break;
}
}
if (localStorage.Syntonavstyles) {
let html = document.querySelector("html");
let navStyles = localStorage.getItem("Syntonavstyles");
switch (navStyles) {
case "menu-click":
html.setAttribute("data-nav-style", "menu-click");
localStorage.removeItem("Syntoverticalstyles");
if (
!document.querySelector(".authentication-page") &&
!document.querySelector(".cover1")
) {
menuClickFn();
}
html.removeAttribute("data-vertical-style");
break;
case "menu-hover":
html.setAttribute("data-nav-style", "menu-hover");
localStorage.removeItem("Syntoverticalstyles");
if (
!document.querySelector(".authentication-page") &&
!document.querySelector(".cover1")
) {
menuhoverFn();
}
html.removeAttribute("data-vertical-style");
break;
case "icon-click":
html.setAttribute("data-nav-style", "icon-click");
localStorage.removeItem("Syntoverticalstyles");
if (
!document.querySelector(".authentication-page") &&
!document.querySelector(".cover1")
) {
iconClickFn();
}
html.removeAttribute("data-vertical-style");
break;
case "icon-hover":
html.setAttribute("data-nav-style", "icon-hover");
localStorage.removeItem("Syntoverticalstyles");
if (
!document.querySelector(".authentication-page") &&
!document.querySelector(".cover1")
) {
iconHoverFn();
}
html.removeAttribute("data-vertical-style");
break;
}
}
if (localStorage.Syntoclassic) {
let html = document.querySelector("html");
html.setAttribute("data-page-style", "classic");
}
if (localStorage.Syntoboxed) {
let html = document.querySelector("html");
html.setAttribute("data-width", "boxed");
}
if (localStorage.Syntoheaderfixed) {
let html = document.querySelector("html");
html.setAttribute("data-header-position", "fixed");
}
if (localStorage.Syntoheaderscrollable) {
let html = document.querySelector("html");
html.setAttribute("data-header-position", "scrollable");
}
if (localStorage.Syntomenufixed) {
let html = document.querySelector("html");
html.setAttribute("data-menu-position", "fixed");
}
if (localStorage.Syntomenuscrollable) {
let html = document.querySelector("html");
html.setAttribute("data-menu-position", "scrollable");
}
if (localStorage.SyntoMenu) {
let html = document.querySelector("html");
let menuValue = localStorage.getItem("SyntoMenu");
switch (menuValue) {
case "light":
html.setAttribute("data-menu-styles", "light");
break;
case "dark":
html.setAttribute("data-menu-styles", "dark");
break;
case "color":
html.setAttribute("data-menu-styles", "color");
break;
case "gradient":
html.setAttribute("data-menu-styles", "gradient");
break;
case "transparent":
html.setAttribute("data-menu-styles", "transparent");
break;
default:
break;
}
}
if (localStorage.SyntoHeader) {
let html = document.querySelector("html");
let headerValue = localStorage.getItem("SyntoHeader");
switch (headerValue) {
case "light":
html.setAttribute("data-header-styles", "light");
break;
case "dark":
html.setAttribute("data-header-styles", "dark");
break;
case "color":
html.setAttribute("data-header-styles", "color");
break;
case "gradient":
html.setAttribute("data-header-styles", "gradient");
break;
case "transparent":
html.setAttribute("data-header-styles", "transparent");
break;
default:
break;
}
}
if (localStorage.bgimg) {
let html = document.querySelector("html");
let value = localStorage.getItem("bgimg");
html.setAttribute("bg-img", value);
switch (value) {
case "bgimg1":
document.querySelector("#switcher-bg-img").checked = true;
break;
case "bgimg2":
document.querySelector("#switcher-bg-img1").checked = true;
break;
case "bgimg3":
document.querySelector("#switcher-bg-img2").checked = true;
break;
case "bgimg4":
document.querySelector("#switcher-bg-img3").checked = true;
break;
case "bgimg5":
document.querySelector("#switcher-bg-img4").checked = true;
break;
default:
break;
}
}
}
Step2:
To remove complete LocalStorage saving you need to remove all
localstorage related calling functions in custom-switcher.jsassets/js/custom-switcher.js files.
LocalStorage related functions like localStorage.setItem,
localStorage.removeItem, localStorage.getItem, localStorage.clear.
Below are the some examples to find out.