• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to footer
Youth Advocacy & Policy Lab (Y-Lab)

Youth Advocacy & Policy Lab (Y-Lab)

Harvard Law School

  • About
    • Y-Lab History
    • Mission and Overview
    • Faculty and Staff
    • Y-Lab News
    • About Our Photographs
    • Contact Us
  • Academics
    • Overview
    • Youth Advocacy & Policy Fellows Program
    • 2023-2024 Courses
    • Art of Social Change
    • Cross Registration
    • Writing Program
    • Student Opportunities
  • TLPI
  • Clinics
    • Child Advocacy Clinic
    • Education Law Clinic
    • Impact Litigation Clinic
    • Individual Representation Clinic
    • Legislative and Administrative Lawyering
  • Events
    • Events
    • “Preserving Public Education” Speaker Series

Sample post with advanced post formatting

December 11, 2017 by hlscap

There are lots of powerful things you can do with the WordPress editor

If you’ve gotten pretty comfortable with all the basics of writing in WordPress, then you may enjoy some more advanced tips about the types of things you can do!

As with the last post about the editor, you’ll want to be actually editing this post as you read it so that you can see all the cool stuff we’re using.

Special formatting

As well as bold and italics, you can also use some other special formatting in the editor when the need arises, for example:

  • strike through
  • highlight
  • *escaped characters*

Writing code blocks

Code elements can be created in the editor by switching the text style to Preformatted. Code is formatted by wrapping any word or words in pre tags, <pre>like this</pre>. Larger snippets of code can be displayed across multiple lines like this:

.my-link {
    text-decoration: underline;
}

Full width images

One neat trick which you can use in WordPress to distinguish between different types of images is to add a class value to the image itself from the Advanced Settings tab, and then target images containing the class with special styling. For example:

which is styled with…

img.full-width {
    max-width: 100vw;
}

This creates full-bleed images in the Corporate Pro theme, which stretch beyond their usual boundaries right up to the edge of the window. Every theme handles these types of things slightly differently, but it’s a great trick to play with if you want to have a variety of image sizes and styles.

Full HTML

Perhaps the best parts of the WordPress editor is that you’re never limited to just WYSIWYG. You can write HTML directly in the WordPress editor and it will just work as HTML usually does. No limits! Here’s a standard YouTube embed code as an example:

Related

Category iconUncategorized Tag iconformat,  post

Subscribe to our newsletter

Get the latest posts delivered right to your inbox

Primary Sidebar

Recent Posts

  • Katie Martinez, JD’23, Honored with CLEA Award
  • Molly Crane Receives 2023 Andrew L. Kaufman Pro Bono Service Award
  • Y-Lab Celebrates First Graduates of its Youth Advocacy Fellow Program
  • The Rage of Innocence: How America Criminalizes Black Youth – A Talk with Professor and Author Kristin Henning
  • Y-Lab Writing Program Lunch Talk with Brian Dezurick (JD ’23) and Alyssa Milstead (JD ’23)

Tags

Art of Social Change Blockquotes Children's Rights Clinic Custody Education events format Headlines Images Centered Images Left Images Right International Adoption Justice Mental Health Ordered Lists post Prison Substance Abuse Tables Threaded Comments Unordered Lists welfare Working Paper Lunch Series

Footer

Contact Us

Youth Advocacy and Policy Lab
Harvard Law School
23 Everett Street
Cambridge, MA 02138
617-496-1684
[email protected]

Accessibility Resources

Harvard University Digital Accessibility Policy »
© 2020 The President and Fellows of Harvard College
  • Facebook
  • Instagram
  • Twitter
  • YouTube

Copyright © 2023 SEO Themes. All rights reserved. Return to top