Help yourself Rotating Header Image

Hello and welcome!

Welcome to the University of Lincoln blogs. We’ve been experimenting with blogs in the Centre for Educational Research and Development since May 2008 and are now pleased to offer blogs to departments, staff and students to support their research, teaching and learning.

Continue reading →

Creating Custom Menus

This guide to the WordPress Menu system covers the basic tasks a user may carry out when using the built-in menu editor such as: Defining a menu, adding items to a menu, customising menu items using the 'Navigation Label’ and ‘Title Attribute’ options, deleting menu items and creating multi-level menus.

Defining a Menu

You will have to define a menu before you can work on it. The steps below outline this process:

  • Login to the WordPress Dashboard.
  • From the ‘Appearance’ menu on the left-hand side of the Dashboard select the ‘Menus’ option to bring up the menu editor. You should see something similar to the screenshot below in your browser window:
Menu Editor (No Menus Defined)


  • Enter a name for your new menu in the Menu Name box then click the Create Menu button. For the sake of this example, we’ll give this menu the name 'navmenu’ but you can give it any name you want. The menu editor should now look something like the screenshot below:
Menu Editor (Example Menu Defined)


Adding Items to a Menu

  • The Screen Options allow you to choose which items you can use to add to a menu. Certain items, like Posts are hidden by default.

In this example, we’ll add 6 pages to the menu we created in the previous section. One of the pages added will point to the ‘Home’ page of the site. The steps you will need to take are listed below:

  • In the left-hand corner of the menu editor screen, you should see a sub-menu titled ‘Pages’ In this sub-menu, click the View All link. This will bring up a list of all the pages that are currently published on your site/blog. (See the screenshot below.)
Pages List in Menu Editor


  • Select the pages you want to add to your menu by clicking the checkbox to the left of each item’s title. In this example, the ‘Home’, ‘About’, ‘Another New Page’, ‘Child Page 1’, ‘Child Page 2’, and ‘Level 1’ Pages will be used. When you have selected the pages you want to include, click the Add to Menu button located in the bottom right-hand corner. You should now see a series of boxes, with the page titles of the items you added in the previous step on the left-hand side of each box.
  • Click the Save Menu button to save the changes.

Deleting a menu item

  • To access the options for the relevant menu item, find the corresponding menu item box in the right-hand corner of the menu editor window and left-click on the arrow icon in the top right-hand corner of it. The menu item box should then expand and the options we need to edit should be visible. See the screenshot below for an example.
Menu Item Options


  • Click on the Remove link in the bottom left-hand corner. The menu item box for the menu item you deleted should no longer be displayed.
  • Click the Save Menu button to save the changes you have made.

Customising Menu Items

Before we jump to the example, a little explanation about the ‘Navigation Label’ and ‘Title Attribute’ options is needed.

The ‘Navigation Label’ option specifies the title of the menu item as it appears on the navigation menu. This is what your users will see displayed on the navigation menu when they visit your site/blog.

The Title Attribute’ option specifies the Alternative (or ‘Alt') text for the menu item. This is what will be displayed when a users’ mouse hovers over a menu item, or if the user is accessing the site using screen reader software, for example.

In the example for this section, we’ll be using the menu item titled ‘Another Test Page’. The ‘Navigation Label’ option will be given value of ‘Page 2’ and the 'Title Attribute’ value will be changed to a value of ‘Click here for Page 2’ The steps you will need to take are listed below:

The steps you will need to take are listed below:

  • Left-click on the arrow in the top right-hand corner of the menu item box. The menu item box should then expand and the options we need to edit should be visible.
  • Enter the values for the Navigation Label and Title Attribute that you want to assign to the menu item and then click the Save Menu button to save the changes. In the menu editor, the title for the menu item you edited should have now been changed to the value you entered for the Navigation Label option. In the case of this example, it now has the label ‘Page 2’ instead of ‘Another Test Page

Creating multi-level menus

When planning the structure of your menu, it helps to think of each menu item as a heading in a formal report document.

In a formal report, main section headings (Level 1 headings) are the nearest to the left of the page; sub-section headings (Level 2 headings) are indented slightly further to the right; any other subordinate headings (Level 3, 4, etc) within the same section are indented even further to the right of the page.

The WordPress menu editor allows you to create multi-level menus using a simple ‘drag and drop’ interface. You can drag menu items up or down to change their order of appearance in the menu, or you can drag them left or right in order to create a multi-level menu structure. To make one menu item a subordinate of another item, then position it underneath, and drag it slightly to the right of, the main menu item.

This section will build on the example menu used in the previous section. Currently the menu only consists of main menu (Level 1) items, as can been seen in the screenshot below:

Example Menu as viewed in the Menu Editor


So, with our report analogy in mind, the menu in this example will be re-structured as follows:

*Home
*About
*Page 2
  *Child Page 1
  *Child Page 2
*Level 1

In this example, the menu items ‘Home’, ’About, ‘Page 2’ and ‘Level 1’ will be the main menu (Level 1) items, while ‘Child Page 1’ and ‘Child Page 2’ will be sub-items, subordinate to ‘Page 2’

The steps you will need to take can be found below:

  • Position the mouse over the menu item box for ‘Child Page 1’. While holding the left mouse button, drag it to the right then release the mouse button.
  • Repeat the above step for ‘Child Page 2’ and make sure that ‘Child Page 1’ and ‘Child Page 2’ are both indented the same distance from the left. Your menu should now look like the one the screenshot below:
Example Menu (Re-structured) as viewed in the Menu Editor


  • Click the Save Menu button to save the changes. Your new menu, with the structure described in the example, should now be created.


The Menu in Action

OK, you should be all done with creating the menu now. If the theme you use supports WordPress menus (in this example I’m using the Twenty Ten theme, which does include menu support) then you should only see the four main (Level 1) options.

The two sub-menu (Level 2) items created in the example should appear in a separate sub-menu when you place your mouse cursor over the ‘Page 2’ menu item. See the screenshot below:

Example Menu on a wordpress site using the 'Twenty Ten' Theme
source: http://codex.wordpress.org/WordPress_Menu_User_Guide

Sit back and watch WordPress TV

If you prefer to learn by watching, there are lots of useful videos on the WordPress.TV site, like the one above. This is an official channel run by the WordPress community and contains video tutorials on every aspect of managing a WordPress site. For beginners, I’d recommend you start on the ‘How to‘ section of the site.

Don’t forget there’s also the University of Lincoln Get Satisfaction service where you can ask and answer questions relating to the WordPress blogs, as well as documentation and videos here on this site.

Contextual Help

With the recent upgrade to WordPress version 3.0, you will now find a Help button in the top right corner of any screen in the WordPress admin area. If you click on the Help button, it will display helpful information about the screen you are on. So, for example, if you’re in the Posts -> Add New screen, click on the Help button and you’ll see this.

Click to enlarge

Embedding video and other media

A recent upgrade to WordPress introduced oEmbed, a new and easier way to embed video and some other media in your blog post.Whereas before, You needed to either copy the raw HTML embed code and paste it in the WordPress HTML editor, or activate Viper’s Video Quicktags plugin, you can now simply copy and paste the URL of the video you wish to embed.

It only works for services that support oEmbed, but the number of those services is growing. Today, the following services will allow you to use the oEmbed method of embedding a video:

To embed media using one of these services, the tutorial is simple:

  1. Copy the URL of the video/image/audio i.e.
    http://www.youtube.com/watch?v=mFsCFUCzwf0
  2. Paste it into your WordPress editor.
  3. That’s it!

How can I learn more about using WordPress?

If you’re new to WordPress or the University blogs, there are a few ways that you can find help and support.

  1. For a good overview of how to understand and use the WordPress Dashboard, watch these short video tutorials
  2. For documentation on using WordPress, browse through the official documentation, which we’ve recycled from wordpress.org
  3. Ask questions on the university Get Satisfaction site.
  4. Ask Google ;-)
  5. Drop into our monthly lunch-time ‘interest group‘ – open to all staff and students
  6. Look out for the ‘Working better on the web‘ staff training, offered by CERD, LLR and the Research Office.
  7. Ask Joss to join your class, team or department meeting or faculty away day. I can provide training in an hour or just an overview in 20 mins.
  8. Call Joss on 01522-886759 (but try the above first!)

New themes added

Over 100 new themes have been added for you to choose from. There’s quite a variety of styles and colours, from simple to crazy, from black to pink to white. As always, if you don’t find a theme that you like, you can browse through over 1000 themes on wordpress.org and let us know which ones you’d like to see installed. To preview and choose a theme that’s already installed, just go to the Appearance menu and click on Themes. You can browse through several pages of themes and preview each one by clicking on the thumbnails.

Themes

Using widgets

WordPress Widgets are WordPress Plugins that add visitor visual and interactivity options and features, such as sidebar widgets for post categories, tag clouds, navigation, search, etc. They were originally designed to provide a simple and easy-to-use way of giving design and structure control of the WordPress Theme to the user in the sidebar, which is now available on properly "widgetized" WordPress Themes to include the header, footer, and elsewhere in the WordPress design and structure.

Example of the WordPress Widget Panel
Widgets require no code experience or expertise. They can be added, removed, and rearranged on the WordPress Administration Appearance > Widgets panel. The order and placement is set by the WordPress Theme in the functions.php file.

Some WordPress Widgets offer customization and options such as forms to fill out, includes or excludes of data and information, optional images, and other customization features.

The Widgets SubPanel explains how to use the various Widgets that come delivered with WordPress.

The Widgets page at Automattic explains how to 'widgetize' WordPress Themes and Plugins, and how to write WordPress Widgets.

WordPress Widgets and Plugins featuring Widget options can be found in the WordPress Plugin Directory.

Activate Widgets

To active your WordPress Theme Widget options:

  1. Go to Appearance > Widgets.
  2. Choose a Widget and drag it to the sidebar where you wish it to appear. There might be more than one sidebar option, so begin with the first one. Once in place, WordPress automatically updates the Theme.
  3. Preview the site. You should find that the "default" sidebar elements are now gone and only the new addition is visible.
  4. Return to the Widgets Panel to continue adding Widgets.
  5. To arrange the Widgets within the sidebar or Widget area, click and drag it into place.
  6. To customize the Widget features, click the down arrow in the upper right corner to expand the Widget's interface.
  7. To save the Widget's customization, click Save.
  8. To remove the Widget, click Remove or Delete.

If you change WordPress Themes, the Widgets will return to the left side of the page in the Widget Archives or Available Widgets list. You may need to add them again and rearrangement depending upon the Theme's ability to preserve other Theme's Widgets.

Using Text Widgets

The Text Widget is one of the most commonly used WordPress Widgets that comes with every WordPress installation. It allows users to add text, video, images, custom lists, and more to their WordPress sites.

To use the WordPress Text Widget:

  1. Go to Themes > Widgets in the WordPress Administration Panels.
  2. Open the sidebar, footer, or Theme section to which you wish to add the Text Widget.
  3. Find the Text Widget in the list of Widgets.
  4. Click and drag the Widget to the spot you wish it to appear.

To open and edit the Text Widget:

  1. Click the down arrow to the right of the Text Widget title.
  2. Set the Text Widget Title (optional).
  3. Add the text or HTML code to the box or edit what is currently there.
  4. Choose the option to Automatically add paragraphs to wrap each block of text in an HTML paragraph tag (recommended for text).
  5. Click Save to save the Text Widget.
  6. Click Close to close the Text Widget.
  7. Switch tabs in your browser and preview the results and make changes if necessary.

The Text Widget can hold a variety of HTML, XHTML, and multimedia links and players such as video and object embeds.

Styling the Text Widget

Standard image alignment CSS styles such as alignleft, alignright, and aligncenter apply for images.

To specifically style the various default styles of the WordPress Text Widget, use the following example:

<div id="primary" class="sidebar">
<ul>
	<li id="text-1" class="widget widget_text"><h3 class="widgettitle">Widget Title for First Text Widget</h3>
		<div class="textwidget">Text within the text widget area.</div>
	</li>
	<li id="text-2" class="widget widget_text"><h3 class="widgettitle">Widget Title for Second Text Widget</h3>
		<div class="textwidget"><p>Text for second widget text area.</p></div>
	</li>
</ul>
</div>

Adding Code to the Text Widget

Basic HTML, embeds, and JavaScript are added easily to the WordPress Text Widget. Most embed codes from social sharing sites for multimedia will work in a WordPress Text Widget. However, active code and programming languages such as PHP will not work as the Widget will strip out code it cannot display.

To add active code to the Text Widget, use one of the many WordPress Plugins from the WordPress Plugin Directory that override WordPress restrictions on using PHP in posts. Check that they will work on Widgets as some will not.

Using RSS Widgets

There are two built-in WordPress RSS or Feed Widgets. The RSS Links displays a list of the links to various core WordPress feeds on your site for Posts and Comments. The RSS allows you to integrate an external feed source for content into a Widget area of your site, such as your Twitter account, Facebook posts, Google+ posts, or other blogs.

The RSS Links Widget offers the option to title the section and choose which type of feeds to offer to visitors to add to their feed reader. This widget does not display feed content, just the links to the feeds.

  1. Posts will displays the most recently published content in their feed reader.
  2. Comments displays the most recent comments in their feed reader.
  3. Posts and Comments displays a combination of both in their feed reader.

The visitor will typically click the link to add the feed to their feed reader.

The RSS Widget displays the most recently published content from any source with an active feed. This is an ideal way of integrating outside content into your site.

By default, WordPress RSS Widgets display the post title or the first 100 or so characters of a Tweet or long untitled post. These are either in the form of a link or features a link to the original source depending upon the feed's design and structure.

  1. Enter the RSS feed URL in the first form, copied from the source page for the content you wish to include in your sidebar or other widgetized space.
  2. Give the feed a title: This is optional and gives you the chance to showcase the source of the content.
  3. How many items would you like to display: By default, 10 are show, but you can choose from 1-20 posts.
  4. Display item content?: This allows you to show an excerpt of the content not just the title.
  5. Display item author if available?: If you wish to give credit to the original author of the content, check this to display the author.
  6. Display item date?: If available, the date of the original content will be shown.

You may add multiple RSS Widgets for incoming feeds to your WordPress sidebar and other widgetized areas of your site.

Resources

source: http://codex.wordpress.org/WordPress_Widgets

Using LaTeX on your blog

WordPress has supported \textrm{\LaTeX{}}, on both wordpress.com and as a plugin for a couple of years. You can adjust the size and style of the output and enable it for comments, which, if discussing mathematical formulae with peers, could be of huge benefit. To use \textrm{\LaTeX{}} on your blog, just activate the wp-latex plugin.

Maxwell’s Equations

\nabla \cdot \mathbf{D} = \rho_f

\nabla \cdot \mathbf{B} = 0

\nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}} {\partial t}

\nabla \times \mathbf{H} = \mathbf{J}_f + \frac{\partial \mathbf{D}} {\partial t}

Follow the robot and get updates on FriendFeed and Twitter

University of Lincoln blogs robot

As you may know, all University of Lincoln blogs, whose owners set them to be publicly searchable, are archived in the Community Posts site. One way of getting updates whenever someone updates their blog is by subscribing to the Community Posts RSS feed. However, some people prefer to get their updates via their social networks, so with the help of the University of Lincoln blogs robot, you can now subscribe to updates on Twitter and FriendFeed. Both of these social networks provide ways for you to receive updates, such as via email, RSS, SMS or Instant Messaging. Follow the robot and stay updated with what people are blogging about on blogs.lincoln

Realtime conversation on your blog

Prologue, the WordPress theme which transforms a blog into a hub of discussion, has been updated and is now called P2. Here’s a video which explains how it can be used for realtime conversation. Use it for project members to stay in touch, for students to discuss their course or as your department’s noticeboard. As always, your site can be private, public or anywhere in between.