Development Guide

Documentation - v1.0

Funto - HTML NFT Marketplace

The Funto is a static HTML5 template:
We do not provide any documentation or email support on how to integrate with any CMS (such as WordPress, Joomla, etc.) or frameworks (such as Angular, Vue, React, etc.).

Get Help

Thank you for purchased our item(s). If you have any questions that are beyond the scope of this help file, please feel free to email via support page here. Thank you so much!

In some cases, you may have to wait 2 working days to get an email answer. However, we will try to answer you as soon as possible. Replies are sometimes delayed due to multiple emails and time zone variations.

Files Structure

  • Funto
    • dist (compiled distribution files)
    • node_modules (npm dependencies files. It is NOT included in the downloaded file, this folder will be installed automatically when you install npm).
    • src (all source files)
      • pug (all .pug files into this folder)
      • scss (all .scss files into this folder)
    • static (all static assets)
      • css (all static CSS files)
      • img (all images)
      • js (all static JS files)
    • .browerslistrc
    • changelog.txt
    • gulpfile.js
    • license
    • package.json
    • package-lock.json (this file NOT included in the downloaded file, this file will be automatically created when you run gulp)

Code Editor

There are many code editors for web code editing. You can use whatever you want. We recommend that you use Visual Studio Code . Because - this template is coded using it.

Installation

It has a directory (funto/dist) of compiled files. If you want to edit without source files (plain HTML/CSS/JS files), you do not need to install anything on your machine.

You need to install package files/dependencies for this project if you want to customize it. To do this, you must have node and npm installed on your computer. Installation guide of the node can be found here.

As npm comes bundled with a node, a separate installation of npm is NOT needed. If you have installed them, just go to the root folder and run the following command in your command prompt or terminal.

npm install --legacy-peer-deps

Run Gulp

Run a command to run Gulp. When you run this command, it also watching at all source and static files. So, you don't need to run another command to watching these.

npm run gulp

If you want, just watch the source files. You can run another individual command.

npm run gulp watch

Know the file type

Source files:

Source files are files that are processed with template build tools to make the browser readable. E.g. SCSS & PUG files always source files.

Files location: funto > "src" folder

Compiled files:

Compiled files are files generated as a result of running a compilation process in the source files. E.g. CSS & standard HTML files always compiled files.

Files location: funto > "dist" folder

Static files:

Static files are ones that aren’t processed or generated. E.g. Images, Web Icon Fonts and standard HTML are static files.

Files location: funto > "static" folder

SCSS files

Sass stands for Syntactically Awesome Stylesheet. Sass is the most mature, stable, and powerful professional grade CSS extension language in the world. It's gives you variables, nesting, partials, modules, mixins, extend/inheritance & operators, etc.

Visit the official website to learn the details.
SCSS Files Layout
File Description
style.scss core .scss file Core stylesheet
_about.scss About CSS
_blog.scss Blog CSS
_breadcrumb.scss Breadcrumb CSS
_contact.scss Contact CSS
_cta.scss Call to Action CSS
_dark.scss Dark Mode CSS
_dashboard.scss Dashboard CSS
_error.scss 404 CSS
_feedback.scss Feedback CSS
_footer.scss Footer CSS
_header.scss Header CSS
_help.scss Help CSS
_hero.scss Welcome CSS
_item-details.scss Item Details CSS
_nft.scss All NFT CSS
_preloader.scss Preloader CSS
_reboot.scss Reboot CSS
_register.scss Register CSS
_responsive.scss Responsive CSS
_shortcode.scss Shortcode CSS
_tab.scss Tab CSS
_variables.scss Color & Fonts CSS

PUG files

With Pug you can easily write HTML code. You have many powerful features at Pug. It's has powerful features like conditions, loops, includes, mixins. When you write HTML code in Pug, it is processed by the template engine into standard HTML code. So that web browsers can understand the code.

Visit the official website to learn the details.
PUG Files Layout
File Description
inc/admin-header.pug Admin Header Code
inc/app-download.pug App Download Code
inc/collection-content.pug Collection Content Code
inc/collection.pug Collection Code
inc/cta.pug Call to Action Code
inc/dark-light-mode.pug Dark & Light Switch Code
inc/*.pug All Components Code
*.pug All HTML Pages All Pages Code

How to edit the Title & Favicon?

Open the mail file (funto) in your code editor. Then open head.pug file & customize as your desire.

File location: funto > src > pug > inc > head.pug

Customize with Complied Files

Open any *.html file & customize as your desire.

File location: funto > dist > *.html

Remember: The page you will edit, the change will be only that page. So, you need to edit all the HTML files.

How to edit the Brand Logo?

Open the mail file (funto) in your code editor. Then open header.pug file & customize as your desire.

File location: funto > src > pug > inc > header.pug

Customize with Complied Files

Open any *.html file & customize as your desire.

File location: funto > dist > *.html

Remember: The page you will edit, the change will be only that page. So, you need to edit all the HTML files.

How to edit the Navbar?

Open the mail file (funto) in your code editor. Then open header.pug file & customize as your desire.

File location: funto > src > pug > inc > header.pug

Customize with Complied Files

Open any *.html file & customize as your desire.

File location: funto > dist > *.html

Remember: The page you will edit, the change will be only that page. So, you need to edit all the HTML files.

How to edit the Footer Widget?

Open the mail file (funto) in your code editor. Then open footer.pug file & customize as your desire.

File location: funto > src > pug > inc > footer.pug

Customize with Complied Files

Open any *.html file & customize as your desire.

File location: funto > dist > *.html

Remember: The page you will edit, the change will be only that page. So, you need to edit all the HTML files.

How to edit the template Colors?

Open the mail file (funto) in your code editor. Then open _variables.scss file & customize as your desire.

File location: funto > src > scss > _variables.scss

Customize with Complied Files

Open style.css file & customize as your desire.

File location: funto > dist > style.css

Customize with Complied Files

Working with compiled files is very easy. You don't need any build tools or local setup to edit the template. A folder (funto/dist) is already provided with the template. Open this folder and edit it as your desired.

Recompiling will overwrite your all changes!

When you will customize with compile files, please do not run the template build tools. If you run the template build tools again, all your changes will be overwritten.

Third Party Plugins Activation

Name Plugins Activation Code
Preloader Active Code
let preloader = document.getElementById('preloader');

if (preloader) {
    window.addEventListener('load', function () {
        let fadeOut = setInterval(function () {
            if (!preloader.style.opacity) {
                preloader.style.opacity = 1;
            }
            if (preloader.style.opacity > 0) {
                preloader.style.opacity -= 0.1;
            } else {
                clearInterval(fadeOut);
                preloader.remove();
            }
        }, 20);
    });
}
Tiny Slider
if (document.querySelectorAll('.featured-nfts-slide').length > 0) {
    tns({
        'container': '.featured-nfts-slide',
        'items': 4,
        'gutter': 24,
        'slideBy': 1,
        'autoplay': true,
        'autoplayButtonOutput': false,
        'autoplayTimeout': 5000,
        'speed': 900,
        'loop': true,
        'mouseDrag': true,
        'nav': false,
        'controls': true,
        'controlsPosition': 'top',
        'controlsText': [(''), ('')],
        'responsive': {
            320: {
                'items': 1,
            },
            480: {
                'items': 1.3,
            },
            576: {
                'items': 1.5,
            },
            768: {
                'items': 2.4,
            },
            992: {
                'items': 3,
            },
            1200: {
                'items': 3.5,
            },
            1400: {
                'items': 4,
            }
        }
    });
}
CounterUp 2
let counterlen = document.querySelectorAll(".counter").length;

if (counterlen > 0) {
    let counterUp = window.counterUp.default;

    let callback = entries => {
        entries.forEach(entry => {
            let counterElement = entry.target
            if (entry.isIntersecting && !counterElement.classList.contains('is-visible')) {
                counterUp(counterElement, {
                    duration: 2000,
                    delay: 20
                });
                counterElement.classList.add('is-visible');
            }
        });
    }

    let IO = new IntersectionObserver(callback, {
        threshold: 1
    });

    let counterUpClass = document.querySelectorAll('.counter');
    let counterUpClasslen = counterUpClass.length;

    for (let i = 0; i < counterUpClasslen; i++) {
        IO.observe(counterUpClass[i]);
    }
}
Nice Select
let filterSelect = document.querySelectorAll(".filter-select");
let filterSelectLen = filterSelect.length;

if (filterSelectLen > 0) {
    for (let i = 0; i < filterSelectLen; i++) {
        NiceSelect.bind(filterSelect[i], {
            searchable: false
        });
    }
}
ion Range Slider
let filterRange = document.getElementById("filterRange");

if (filterRange) {
    ionRangeSlider(filterRange);
}

Changelog(s)

Version 1.2.1
  • Updated Bootstrap v5.2.0-beta1 > Bootstrap v5.2.2
  • Updated Bootstrap Icons 1.8.3 > Bootstrap Icons 1.9.1
Version 1.2.0
  • Updated Bootstrap 5.1.3 > Bootstrap 5.2.0-beta1
  • Updated Bootstrap Icons 1.7.2 > Bootstrap Icons 1.8.3
  • Updated ImageLoaded 4.1.4 > ImageLoaded 5.0.0
  • Updated Nice Select 1.0.0 > Nice Select 2.0.0
  • Fixed : Minor Issues
Version 1.1.0
  • Fixed Minor Issues
Version 1.0.2
  • Fixed Minor Issues
Version 1.0.1
  • Fixed Minor Issues
Version 1.0.0
  • New Initial Release