Greg’s Sandbox

Notes on Front-End Web Development

02 Mar modified: 3 years ago

Shortcode Sandbox

grav plugin shortcode Mike Arney | unsplash

Let's try a built-in core shortcode. The following shortcode will add an underline to some text. The third word is underlined. OK, now we are going to try a modified shortcode that I put together.

This one will turn the selected text bold and red. The trigger will be... (can't show you). Your chain…

Continue reading Shortcode Sandbox ...

26 Feb modified: 3 years ago

Copyright date (year) in footer

grav

graphic copyright assemblygraphic copyright assembly

A common design device for most websites is to include a copyright notice at the bottom of the web page in the footer area. The jury is out as to whether this copyright date has any legal purpose, but clients' seem to love it. However, a copyright line that is out of date can be a bad reflection on…

Continue reading Copyright date (year) in footer ...

22 Feb modified: 3 years ago

Shortcode UI Plugin -- Tabs

grav plugin shortcode Peppe Ragusa | unsplash

Shortcodes seem like they have tremendous potential to incorporate "chunks" of html, css, javaScript into a page. An example of this would be the ui-tabs shortcode demonstrated below.

The tabs shortcode is included in the shortcode-ui plugin. This plugin, in turn, is dependent upon shortcode-core plugin.

It is my intention to study the coding that is shipped with these plugins in order to reverse engineer an understanding of how a shortcode can be built. My first attempt will be to convert the figure hack that I have already put together.

Continue reading Shortcode UI Plugin -- Tabs ...