This documentation reference is provided for developers who wish to extend or modify Dante, preferably through the provided Child theme (to keep your changes when the main theme is updated).
This documentation is meant to be a reference for customers who wish to extend and/or modify Dante, beyond it's standard functionality. We have structured it in a way that sections the specific areas of the theme, and then references the files where you can find the specific functions. Below is an example for a file reference:
Then this is a function reference:
If you are thinking about modifying/extending the core functionality of Dante, then we thoroughly recommend that you use the provided child theme. This will allow you to override the functions you can find detailed in this documentation, and add files that you have modified to reference. This way when the main theme is updated, your changes will not be lost.
If you have any recommendations or requests for improving this documentation, then please let us know. We are always looking for ways to make it easier for our users, and we'll be happy to hear from you. Please contact us via the form on our ThemeForest profile.
The Header of the theme consists of the <head> tag, header search and super search, top bar, top header, and header (including main menu).
The header.php file sets up the body classes and header structure for the theme. It adds in the meta information provided through the theme options, and provides header content through a number of functions referenced in the /includes/sf-header.php file.
The sf-header.php file provides all the header functions, including top header, header, logo etc.
The pagination functions are used within archive and category layouts, and also within post type page builder assets.
Dante has various blog options that allow you to configure the display for the blog page builder asset, archive, category, and search results pages.
Dante supports 10 post formats; Standard, Audio, Gallery, Image, Chat, Link, Quote, Aside, Status, Video.
Dante has various portfolio options that allow you to configure the display for the portfolio page builder asset.
Dante adds to the standard WooCommerce product display functionality, through the provided page builder assets.
Dante includes various functions to get the content in it's required form.
Custom styling is defined through the Theme Options and Live Color Customiser. These saved options are then applied to the theme via dynamic CSS.
The live customizer that allows users to customise the theme on the fly, and then save their chosen options.
The theme options for Dante are registered within this file. The options framework we use is Redux - click here to find out more.
The page builder assets are shortcodes that are created through a class file. You can find the provided assets in /swift-framework/page-builder/builder/shortcodes/. If you would like to add/remove any assets from the page builder, you can do so by overriding the following function
if (!function_exists('spb_register_assets')) {
function spb_register_assets() {
require_once( SPB_SHORTCODES_DIR . 'default.php' );
require_once( SPB_SHORTCODES_DIR . 'column.php' );
require_once( SPB_SHORTCODES_DIR . 'accordion.php' );
require_once( SPB_SHORTCODES_DIR . 'tabs.php' );
require_once( SPB_SHORTCODES_DIR . 'tour.php' );
require_once( SPB_SHORTCODES_DIR . 'impact-text.php' );
require_once( SPB_SHORTCODES_DIR . 'media.php' );
require_once( SPB_SHORTCODES_DIR . 'raw_content.php' );
require_once( SPB_SHORTCODES_DIR . 'portfolio.php' );
require_once( SPB_SHORTCODES_DIR . 'blog.php' );
require_once( SPB_SHORTCODES_DIR . 'products.php' );
require_once( SPB_SHORTCODES_DIR . 'gallery.php' );
require_once( SPB_SHORTCODES_DIR . 'clients.php' );
require_once( SPB_SHORTCODES_DIR . 'full-width-text.php' );
require_once( SPB_SHORTCODES_DIR . 'team.php' );
require_once( SPB_SHORTCODES_DIR . 'jobs.php' );
require_once( SPB_SHORTCODES_DIR . 'testimonial.php' );
require_once( SPB_SHORTCODES_DIR . 'testimonial-carousel.php' );
require_once( SPB_SHORTCODES_DIR . 'testimonial-slider.php' );
require_once( SPB_SHORTCODES_DIR . 'faqs.php' );
require_once( SPB_SHORTCODES_DIR . 'revslider.php' );
require_once( SPB_SHORTCODES_DIR . 'recent-posts.php' );
require_once( SPB_SHORTCODES_DIR . 'parallax.php' );
require_once( SPB_SHORTCODES_DIR . 'portfolio-showcase.php' );
require_once( SPB_SHORTCODES_DIR . 'portfolio-carousel.php' );
require_once( SPB_SHORTCODES_DIR . 'posts-carousel.php' );
require_once( SPB_SHORTCODES_DIR . 'team-carousel.php' );
require_once( SPB_SHORTCODES_DIR . 'jobs-overview.php' );
require_once( SPB_SHORTCODES_DIR . 'code-snippet.php' );
require_once( SPB_SHORTCODES_DIR . 'googlechart.php' );
require_once( SPB_SHORTCODES_DIR . 'sitemap.php' );
require_once( SPB_SHORTCODES_DIR . 'search.php' );
require_once( SPB_SHORTCODES_DIR . 'supersearch.php' );
require_once( SPB_SHORTCODES_DIR . 'latest-tweets.php' );
require_once( SPB_SHORTCODES_DIR . 'tweets-slider.php' );
}
if (is_admin()) {
add_action('admin_init', 'spb_register_assets', 2);
}
if (!is_admin()) {
add_action('wp', 'spb_register_assets', 2);
}
}
Comments
The comments functions configure the output code for each comment that is displayed within the theme.
@location: /includes