These best practices are subject to change to meet new trends and the evolving needs of the Krieger School of Arts and Sciences.
Blocks and the Block Editor
All pages and posts on your website are made of blocks of content. General users can add a Paragraph, Heading, Lists (bulleted or numbered), Quotes, Table, Image, Gallery, File, Media and Text, or a Separator. They can also embed content from other platforms, such as Twitter, Youtube, Soundcloud, Flickr, Vimeo, or Issuu. The Office of Marketing and Communications has access to additional blocks.
Use block patterns to create more complex content arrangements. A block pattern is a group of blocks that have been combined to create a specific layout, that users can replicate across sites. They are particularly useful on sites.krieger.jhu.edu websites, which have fewer page templates and are intended to be built using patterns.
Find these patterns when you create a block, by selecting “patterns” and looking through “KSAS blocks,” which include a vertical staff listing, horizontal staff listing, featured content, call to action, double call to action, three column feature, and four column features. The blocks include styling, buttons, images and more.
A bulletin is a WordPress plugin that allows web editors to post temporary, often time-sensitive information, such as funding opportunities, jobs, and internships.
Bulletins can be easily added or removed. However, they can quickly become out of date, though they will automatically expire after a year. Inaccurate content and information that is out of date frustrates users, makes your website seem less credible. To avoid these problems, link directly to the original source whenever possible. Also, set up an internal workflow to check deadlines, removing and reposting opportunities as necessary.
Course listings are often one of the most popular pages on the website. To keep a consistent user experience in line with the varying needs of our departments, programs, and centers, we support the following methods of presenting courses:
- SIS Listings: This WordPress plugin accesses SIS’ API. It only displays courses that are specifically listed in your department. Course information provided includes: course number, course name, description, credits, instructor(s), term, meetings, and status. Courses are searchable and filterable by term. Sites should not list more than three semesters of courses from SIS.
- Table: This method lists courses provided by the department via a csv file, and created as a Tablepress table. At a minimum we require course number, course name, instructor, and meeting times. This is used by programs who have complex, cross-department requirements or courses which can’t easily be pulled from SIS.
- HTML: This method is for mostly interdisciplinary and smaller major/minor offerings, and in tandem with a SIS course listing. The content can be displayed in a flat list or within accordions. At a minimum we require course number, course name, instructor, and meeting times.
You can add new faculty books from the news section by creating a new post, and selecting “faculty books” as the category. This will allow the book to display both on the faculty books feed, and on the affiliated faculty member’s bio page. Each faculty book entry should include:
- Book title
- Book description from Amazon or the publisher’s website
- Photo of the book cover from the Amazon or publisher site. Make sure it’s web-optimized (a jpg under 500kb). This should be added under featured image.
- Under faculty books details, in the lower section of the page, add the publisher, year of publication, and Amazon link. Make sure to delete http:// from the link, and select a faculty member from the dropdown. Any faculty member not currently on your site cannot be selected.
Edit the post publication date from “publish immediately” to the date the book was published to make sure it is published in the correct order. If you don’t see the book on the faculty member’s profile, make sure they have the box “display books” checked in their profile.
Faculty Bio Pages
Faculty bio pages to list the following: name, title, email address, phone number, and office location. Research interests should also be listed if applicable. Faculty members can have their own website, hosted by themselves, JHU IT, or our office, either in addition to or in lieu of a faculty bio page. We provide tabs that highlight a faculty member’s biography, research, teaching, publications, and published books; along with two custom tabs. Due to the shared theme environment, the order of the tabs cannot be modified.
To add a form to your website, submit a service request to have Gravity Forms, a WordPress plugin, installed. This will allow you to create, edit, and manage forms directly in WordPress. Please see additional advice on what type of forms you should create with Gravity on the plugins page.
Please do not use inline styles in your html (e.g., <h1 style=”font-size:30px;color:#A0A0A0;”>) to create different colors or sizing. These styles will be stripped when you publish the page. Inline styles violate our theme’s style guide, are harmful for web accessibility, and do not follow best practices. Non-header text should be bolded only in rare circumstances. Underlines or all capital letters should not be used for emphasis. Please consult the style guide for appropriate content guidelines.
Once a way to boost SEO, a link farm is essentially a web page containing a list of links to external websites.
External links aren’t inherently bad, they can be useful! But when providing external links, pick the 2-3 most relevant and unique links, rather than 10-20 links. Fewer links are actually more beneficial to the user and easier for you to maintain. Links should always be limited and closely related to the purpose of the site. The key is to concentrate on producing relevant original content. Links become broken, irrelevant, or superfluous easily. Check for and fix any broken links, and remove links with low traffic.
We discourage uploading PDFs unless they provide an index of information (e.g., student handbook, departmental newsletter, essay, etc.) due to potential accessibility and quality assurance issues. Please use images or HTML text instead of PDFs whenever possible.
Plugins and Tools
Learn about the different plugins available, including the people directory, bulletin board, faculty books, forms, profiles, tables, and testimonials.
Sidebars and Widgets
Sidebars can be added to a series of pages by being added to a widget, or to a single page by adding content to the Sidebar at the bottom of the page. To edit your sidebars, go to Appearance–>Widgets. Simply drag and drop the desired widgets into the sidebar. There are sidebars for:
- Audio – displays audio player
- Bulletin Board – displays the latest bulletin headlines (requires plugin)
- Custom html – allows you to design a more custom widget with html styling
- Form – adds Gravity form (requires plugin)
- Gallery – displays an image gallery. Limit use.
- Image – displays a single image
- Job Candidate Profile – displays a random job candidate profile (requires plugin)
- Undergraduate Profile – displays a random undergraduate student profile (requires plugin)
- Graduate Profile – displays a random graduate student profile (requires plugin)
- Recent posts – displays the latest news headlines
- Search – search form for your site
- Spotlight – displays a random spotlight (requires plugin)
- Text – You can enter any text/html into this widget
All Krieger School websites must follow Johns Hopkins University branding standards, the JHU Editorial Style Guide, and the Krieger School’s Web Writing Style Guide. The Marketing and Communications team will correct sites that do not comply with these standards and guides.