Skip to content

Spend less time hard coding your theme name when linking your assets.

Notifications You must be signed in to change notification settings

caasi-co-zw/short-assets-url.php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Shorten Assests Url

Use short urls to link your theme assets

Usage

In your custom theme, simply call or link your assests as shown:

css

<link href="/css/file_name.css" rel="stylesheet" />

javascript

<script src="/js/file_name.js">

images

<img src="/img/filename.png" alt="..." />

You don't have to type the full path to your assets, the plugin will do that.

all you have to do is make sure your assets are in /wp-content/themes/your_theme/assets or in your theme root under respective names eg. wp-content/themes/your_theme/css.

Supported files

This plugin has been made specifically for css, js and img files.

Auto Installation

Not yet supported.

Manual Installation

  1. Download a release or zip and extract it in to the plugins directory wp-content/plugins/.
  2. Log in to your wordpress dashboard and activate plugin.

Releases

No releases published

Languages