Giter VIP home page Giter VIP logo

neighbourhoods2018's People

Contributors

alastair38 avatar

Watchers

 avatar  avatar

neighbourhoods2018's Issues

User test icons

The current plan is to always use icons as a visual augmentation of text, whether this is for menus, buttons or within body content.

However, some user feedback on the more visually 'descriptive' icons would be ideal. This would include user testing of line against filled icons and the more verbose.

Rework icon system

As part of the move away from icon fonts, use SVG icons inline (either individually or ideally from a single SVG sprite).

Change default use of the_post_thumbnail()

As standard, using the_post_thumbnail() function will only include an alt attribute if it is set by the user. This relies on the content administrator to provide an alt description when adding images in the backend.

Here is a scrabbled together function to churn out the featured imaged with an empty alt attribute if it has not been set. This means it will be ignored by screen reader.
$size is a required argument and accepts one of the following 'thumbnail', 'medium', 'large', 'full'

function accessible_thumbnail($size) {
  $thumb_id = get_post_thumbnail_id();
  $thumb_alt = get_post_meta( $thumb_id, '_wp_attachment_image_alt', true );
  if($thumb_alt){?>
 <img src="<?php the_post_thumbnail_url($size); ?>" alt="<?php echo $thumb_alt;?>">
 <?php
  } else {?>
 <img src="<?php the_post_thumbnail_url($size); ?>" alt="">
 <?php }
} 

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.