Giter VIP home page Giter VIP logo

jpkcom-fa-svg-plugin's Introduction

JPKCom FA inline SVG shortcode plugin

A plugin for loading inline SVGs from Font Awesome (Pro) using a shortcode.

This is not an official plugin of Font Awesome, nor is it directly affiliated with Font Awesome or its publisher/owner.

This plugin is intended for users who want to quickly and unbureaucratically integrate the output of the SVG version of Font Awesome, fast and resource-efficient, into their WordPress site.

Get your Font Awesome or much better your Font Awesome Pro license here: https://fontawesome.com/

Plugin

Installation

  1. In your admin panel, go to 'Plugins' > and click the 'Add New' button.
  2. Click Upload Plugin and 'Choose File', then select the Plugin's .zip file. Click 'Install Now'.
  3. Download your version of Font Awesome (Pro) from https://fontawesome.com/
  4. Unpack/Upload the content of the Font Awesome zip file directly into the plugins folder named "fa/"
  5. Make sure that the following files/folders and paths are present: "fa/css/svg-with-js.min.css", "fa/svgs/*"
  6. Click 'Activate' to use the plugin right away.

Usage

Use [jsvg type="" name="" style="" class="" title=""] in your content or menu item title.

For example:

[jsvg type="fal" name="jedi" style="margin:2rem" class="fa-10x" title="Obi-Wan Kenobi"]

You can also use this together with do_shortcode().

See https://developer.wordpress.org/reference/functions/do_shortcode/ for more information about this.

For example:

<?php
echo do_shortcode( '[jsvg type="fas" name="snowboarding" class="fa-4x fa-rotate-270" title="Snowboarding"]' );

Changelog

1.0.0

  • Initial Release

jpkcom-fa-svg-plugin's People

Contributors

jpkcom avatar

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.