Hi, I’m Brian Dys — a photographer from the inside looking out · a composer entangled in electronic music · a UX designer · a spouse, a parent, & everything in between.
Branching out from HopScotch, I am reformulating mostly the front-end of the theme. Here comes Applicator – which I plan to submit to WordPress Free Themes.
Currently, I am building components one by one – starting from the Masthead constructor.
- > functions
- style and scripts
Components of Masthead Constructor
- Web Product Name
- Primary Menu
- Accessible Names
- Sub-Navigation Toggle Action
- comp – Component
- notice – Message
- accessible_name – Labels for Accessibility
- axn – Actions
- State – the state of the UI
- functions – Functions
- css – Stylesheets
- img – Images
- Always escape text strings (e.g., <?php _e( ‘Label’, ‘domain’ ); ?>)
Found in functions > setup.php. It replaces the default “no-js” class name that is added by default in <html>
HTML5 Shiv – for IE 8 and below
Located in js > html5.js
To avoid console errors in browsers without a console
Located in js > plugins.js
Makes “skip to content” link work correctly in IE9, Chrome, and Opera for better accessibility
Located in js > skip-link-focus-fix.js
Source: Twenty Fifteen WordPress Theme
- HTML5 Boilerplate
Coming straight from H5BP, these stylesheets modify the default browser stylesheet for the better. It is considered “default CSS on steroids”.
It adds usability to Active Elements and other elements that can be interacted with.
Anything visual concerning spacings and dimensions goes here.
Dealing with the CSS font properties. But if there’s a usability issue with the default font-size of an element, it goes to Usability.
A touch of color for usability and visual design.
- Vector Assets
located in img > vector-assets.php
called from header.php
Contains SVG markup of basic utility icons to enable color customization
Adds classes into <html>
simply adds the class “html” so that CSS doesn’t need to use the element selector
- masthead-aside–active / masthead-aside–inactive
class if Masthead Aside is active or inactive
- view–front / view–inner
class if on the front page or inner page
- browser–chrome / browser–gecko / browser–safari / browser–opera / browser–lynx / browser–ns4 / browser–ie / browser–unlisted
class depending on the browser user agent
- device–mobile / device–not-mobile
based on wp_is_mobile()
- theme–parent / theme–child
class if using a parent or child theme