Coder Social home page Coder Social logo

unyson-framework-et-line-icon-font's Introduction

Add the Elegant Themes Line Icon Font as an Option Type for the Unyson Framework

Elegant Themes Line Icon font as an Option Type

This is a copy of the icon option type provided with the Unyson Framework, modified to use the Elegant Themes Line Font

You will be able to use type => 'et-icon' in your options

Example:

'et_icon'    => array(
		'type'  => 'et-icon',
		'label' => __('Choose an ET Line Icon', 'fw'),
	),

I have included the option-types folder in inc/includes/ in the root of my theme's folder eg. {theme}/inc/includes/. You can place the folder wherever you like, just make sure that all paths are updated to point to the right files. Following is all of the code and the paths that require editing in the case that you use a different folder structure.

Important: Add this to your functions.php

// Register the new option-type for the Unyson Framework
function _action_theme_include_custom_option_types() {
    if (is_admin()) {
        require_once dirname(__FILE__) . '/inc/includes/option-types/et-icon/class-fw-option-type-et-icon.php';
    }
}
add_action('fw_init', '_action_theme_include_custom_option_types', 9);

Edit the path to where you have placed the et-icon folder contained within this repository

In the class-fw-option-type-et-icon.php file edit the path on line 158 in the font-style-src option to the path where you have your ET Line Font style.css file (Download Et Line Font).

Example:

'font-style-src' => get_template_directory_uri() . '/assets/fonts/et-line-font/style.css',

unyson-framework-et-line-icon-font's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.