Tag Archives: faq

Using tables

Photo of a rustic table

As you’ve been working on your Persepolis projects, many of you have asked about how to get images to line up in specific ways, especially to get a pair of images to line up side-by-side on a page (like I’ve done with the covers of our three primary texts on this site’s splash page). One really good way to control the layout of your pages is with tables. WordPress uses the HTML code to create tables just fine, but the post editor does not by default include a simple button to insert tables, the way that MS Word or Google Docs do.

One way to create tables, then, is to just switch to the Text tab in the top right of your post or page editor (instead of the Visual tab) and insert the HTML code manually. Here’s the w3schols tutorial page on coding tables.

A much easier method for most users is to add a plugin that opens up the range of options available in the text editor boxes for WordPress. In the “getting started” with Domain help pages on plugins, I recommend that you start by installing a plugin called WP Edit. Since I wrote that page, I’ve found another plugin that I like even better called Easy Bootstrap Shortcode, and that’s the one that used to create the tables on the front page for this site (and the accordion folds in the resources page).

Screenshot of the buttons added in the WordPress text editor by Easy Bootstrap Shortcode

Screenshot of Easy Bootstrap Shortcode buttons. (Table button highlighted.)

If you install Easy Bootstrap Shortcode, it will add a third row of buttons to your text editor. Hover over each to see what it does.

Insert tables dialog box

Insert tables dialog box

If you click the button to insert table, you’ll get a dialog box, where you can choose how big the table should be, how many rows and columns it should have, and some other styling features.

Once you’ve set your options, click the Insert Table button and the plugin will insert shortcode to your post or page that generates the table on publication.

Shortcode for table

Shortcode to insert a table

Here’s what that initial shortcode looks like for a table with a header row plus two more rows and 4 columns: If you just publish that post as is, you’ll get a table that looks like this:

Sample table

Sample table

If I want to have two images side-by-side, the easiest thing to do is to insert a simple table with only one row and two columns and replace the text with the two images.

So this:

Sample table with images

Looks like this when it’s published:


"Conference Time" by Flickr user Christian Senger

Conference Time” by Flickr user Christian Senger

A cartoon diagram of the steps for jarring potatoes which looks like it's from the 1950s. There's a stereotypical pair of women in aprons, moving through the steps and a diagram of the necessary implements at the bottom.

Housekeeping” by Flickr user Fabian Mohr.

Or here’s another table:


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed iaculis nunc ligula, ac eleifend libero pellentesque nec. Integer at venenatis arcu. Quisque vel mattis purus. Aliquam erat volutpat.

A photo of a train schedule board.

Train Schedule” by Flickr user Q Family

Nulla in orci metus. Sed in ullamcorper velit. Nam ornare dapibus urna in eleifend. Quisque nec risus non leo viverra volutpat quis rhoncus est. Mauris congue risus ac nisi vestibulum viverra.

"Comments by Flickr user Judit Klein

Comments by Flickr user Judit Klein

Aliquam sodales efficitur est ut finibus. Nulla enim urna, dapibus bibendum tempor quis, condimentum eu magna. Sed ut aliquet dui, ut finibus ipsum.

A photograph of a book with post it flags stuck in its pages.

231 by Flickr user Jay Peg

"Long Tang Table" by Flickr user Jonas erian

Long Tang Table” by Flickr user Jonas erian

Nullam elementum vel ipsum quis aliquet. Vestibulum quis ultrices ipsum. Suspendisse mollis ultrices felis, eu tincidunt diam tincidunt id.

"Unclickable Link" by Flickr user quinnanya

Unclickable Link” by Flickr user quinnanya

Pellentesque ut suscipit odio, id mattis dui. Nullam congue neque finibus facilisis sodales. Nulla ultricies, purus eget efficitur iaculis, est lectus semper lectus, ullamcorper congue dolor mi molestie neque. Ut neque est, consequat scelerisque semper rhoncus, posuere eget turpis. Sed ante leo, sollicitudin eget blandit ut, molestie sed neque. Nunc euismod faucibus mi, at ullamcorper turpis laoreet pellentesque. Mauris vel erat egestas, auctor velit eget, pulvinar est. Sed congue, metus in pulvinar posuere, neque leo efficitur nisi, sed facilisis quam enim ut purus. 

 

(image credit: “Long Tang Table” by Flickr user Jonas Merian)

Pages and/vs. Blog Posts

A photograph of a book with post it flags stuck in its pages.

In this class, I make a clear distinction between blog posts and pages: all of your major, formal projects will go onto your sites as pages. The Sunday Funnies assignments and all of the other shorter, low-stakes, reflective writing that you do will go onto your sites as blog posts. Pages can be edited just as posts can be, but in general they are meant to serve as static, completed, more or less self-contained pieces of writing. Blogs are meant to go up onto the posts page in descending chronological order, so built into the function of a blog is that you write something and publish it, then if you have more to say on the subject or want to revise what you wrote in a major way, you do so by just writing a new blog post rather than going back to the original and restructuring it.

Here’s another clear distinction between posts and pages: posts syndicate but pages do not (because syndication is predicated on the idea of a frequently updating and changing posts page–static pages don’t need to syndicate because, well, they are more or less static). We are relying on syndication to the course site as the means of collecting all of the work that you do on your sites into a central location, but if your major projects go onto pages and pages don’t syndicate then how will they be included? When you complete one of the major assignments, you will write a blog post, linking to the landing page for the assignment. I’ll generally ask you to write something reflective about the work that you’ve done in those blog posts. Sometimes I might ask that you provide a summary or abstract of the argument, perhaps framing the post as an announcement meant to entice readers to check out what you’ve done akin to a teaser in journalism.

One last point: for the purposes of this class, at least, all blog posts and all pages should be multimodal and should include multiple media. You should not publish a page or a post that is composed entirely of text.

faq

(image credit: “231 by Flickr user Jay Peg)

What’s the difference between URLs and links?

Red typewriter with sheet of paper and the url "www.youtube.com" typed

URLs are for computers. They are specific addresses that tell the web browser where to go to fetch data and show it to you in one form or another. The URL for the FAQ page on this site is http://eng101s15.davidmorgen.org/resources/. The URL for the oldest post on the course blog is http://eng101s15.davidmorgen.org/2015/01/how-do-i-use-html-to-format-comments-on-this-site-others/. With a little awareness of the syntax, you can decode that information. If you wanted to read the page or post that I just referenced, you could copy that code and paste it into your browser to get there.

Sometimes people just paste URLs into emails or pages that they’re writing, and some applications will convert those URLs into links so that you at least don’t have to go to the trouble of copying and pasting the code as separate steps to get to the pages referenced. For example, one way to show you Gavin Aung Than’s comic adaptation of a quote by Jim Henson would be to just do this: http://zenpencils.com/comic/150-jim-henson-a-puppeteers-advice/. However, most of the time readers will find URLs confusing and uninviting, and it’s difficult for you to effectively contextualize that information smoothly.

Links are for humans. Links use HTML code to turn URLs into something that is readable and clear for humans. One way to create a link is manually by inserting some HTML code around text, making that text into a link, so

Check out Gavin Aung Than’s <a href=”http://zenpencils.com/comic/150-jim-henson-a-puppeteers-advice/”>brilliant comic adaptation</a> of a quote by Jim Henson.

looks like this in your browser

Check out Gavin Aung Than’s brilliant comic adaptation of a quote by Jim Henson.

Most of the time, though, you don’t need insert links manually. When you’re in your WordPress post editor, you can create a link by highlighting the text or image that you want to become a link and selecting the button that looks like the links of a chain, then pasting the URL into the dialog box. (The general rule of thumb, by the way, is that when you are linking to another page or post on your own site, you should have your link open in the same tab but when you are linking to something outside of your own site, have the link open in a new tab.)

This distinction between URLs and links is important for our class because our learning objectives state that over the course of the semester, you will “demonstrate understanding of audience” and learn to “use and adapt generic conventions, including organization, development, and style” and using links instead of URLs is an important first step in understanding the reading needs of your audience and is an important stylistic and generic convention of writing for the web.

This distinction is also important because using links opens up a whole range of more interesting options for you that are unavailable when you merely drop URLs into your work. Jokes can be goofy commentaries or can offer useful insight on the topic at hand.

 

(image credit: “Unclickable Link” by Flickr user quinnanya)

How do I use HTML to format comments on this site (& others)?

"html tattoo" by Flickr user daniello

html tattoo” by Flickr user daniello

Different themes handle commenting differently, but many themes allow users to create links and other formatting while leaving comments, but only if they know how to do so manually with HTML code. There’s often no visual editor that lets you use HTML at the push of a button, the way there is when you’re in the dashboard composing posts and pages.

When you’re leaving a comment on a post on this site, there’s a line at the bottom that lists the most frequent types of HTML and formatting that you might want to use:

You may use these HTML tags and attributes: <a href=”” title=””> <abbr title=””> <acronym title=””> <blockquote cite=””> <cite> <code> <del datetime=””> <em> <i> <q cite=””> <strike> <strong>

For each of those codes, you just surround some text with the applicable HTML tags (i.e., you have an opening tag <em> (which adds emphasis), then the text you want to be emphasized, then you close the tag so that the browser knows when to stop emphasizing </em>).

Here are examples of how each of those codes work:

<a href=”http://eng101s15.davidmorgen.org “>course homepage</a>

<abbr title=”Hypertext Markup Language”>HTML</abbr>

<acronym title=”EWP”>Emory Writing Program</acronym>

<blockquote cite=”<cite><a href=”http://www.brainyquote.com/quotes/authors/l/ludwig_wittgenstein.html “> </cite> “>If people never did silly things nothing intelligent would ever get done.
Ludwig Wittgenstein<blockquote>

<cite><a href=”http://eng101s15.davidmorgen.org/ ” ;> </cite>

<code><a href=”” ;> </a> </code>

<del datetime=”YYYY-MM-DDThh:mm:ssTZD”>This text has been deleted from the comment and there’s a time stamp to indicate when, which is not visible but is available to screen readers.</del;>

<em>Emphatic!</em>

<i>Italics!</i>

<q cite=”http://eng101s15.davidmorgen.org/ “>The q cite tag allows you to provide a citation that does not show up visibly, but is available to screen readers behind the scene.</q>

<strike>This text has been struck through</strike>

<strong>Guiness for strength!</strong>

And here’s how each of those different effects will look on this site when the comment is published:

course homepage

HTML

Emory Writing Program

If people never did silly things nothing intelligent would ever get done.
Ludwig Wittgenstein

http://eng101s15.davidmorgen.org/

<a href=" "> </a>

This text has been deleted from the comment and there’s a time stamp to indicate when, which is not visible but is available to screen readers.

Emphatic!

Italics!

The q cite tag allows you to provide a citation that does not show up visibly, but is available to screen readers behind the scene.

This text has been struck through

Guiness for strength!