Category: Web Development
Classes are the cookie-cutters / templates that are used to define objects. Classes, Class Properties and Class Methods To define a class:
Variables in classes are called properties:
Define properties with access modifiers (public,...
I have found that there are four steps to adding admin pages, setting data and upload functionality in the dashboard: Add Theme Options Page Prime Theme Settings Populate Theme Options Page Add Upload Code...
Here is a quick CSS code snip to scale a background image of an element. You must first declare the background-size then set the width and height.
|
/*Scale the background image to a fixed dimension*/ div { background: url(img_flwr.gif); background-size: 80px 60px; background-repeat: no-repeat; } |
or
|
/*Scale the background image to a variable dimension*/ div { background: url(img_flwr.gif); background-size: 100% 100%; background-repeat: no-repeat; } |
You can find more information at w3schools.com Alternatively...
After the need to share code with my users I found the plugin Crayon Syntax Highlighter. By default WordPress provides the pre tag to display pre-formatted text but I find that the Crayon Syntax Highlighter makes...
Recent Comments