To use the Shortcode Builder interface, you will need to have the Williams Shortcode Builder plugin activated, and be using the visual editor.
To create an individual the shortcode, which represents a single picture-overlay-blurb unit:
- If you want a blurb below the image, write it and select the text in the editor. If you don't want a blurb, just place your cursor in the visual editor where you'd like the grid unit to appear.
- Click on the "Shortcodes" button, located in the 2nd row of your visual editor's toolbar (outlined in orange below). If you only see 1 row of tools, click on the kitchen sink (outlined in green below) to reveal the 2nd row.
- Hover over the "Format Content" menu to reveal its submenu, and select "Image Block Layout", outlined in red below.
- Fill out the form in the dialog popup box. Hovering over the input boxes will reveal hints, helping you fill out the form. Clicking “OK” will insert the shortcode into the visual editor.
Select image: Required. Click on the empty box next to “Select Image” (red arrow above) to access your media library or upload a new image. See above for recommended images size.After selecting your image, click on the blue "Choose Image" button in the bottom right of the screen. This will close the window, and bring you back to the shortcode builder. The "Select Image" box should now contain the full URL of the image you just chose, as shown below.Click-through URL: Required. This needs to be a full URL, starting with http. When the user clicks on the image, this is where they will go.Title: Required. The text that will be placed on top of the image. Keep it short.Caption: Optional. The text that will be placed below the image. If you highlighted text before selecting the "Image Block Layout" tool, the selected text will appear as the value in the blurb box . For best results, all blurbs on the page should have a similar length.
- Rinse and repeat until you have as many blocks as you'll need for your grid.
Editing the shortcode
In the editor (in both visual and text modes), the shortcode will look something like this:
[quad image="http://wordpress.williams.edu/files/2015/02/wp-banner.png" url="http://www.williams.edu" overlay="This text goes over the image"]This text goes below the image[/quad]
You can edit the shortcode attributes (the values inside the quotes above) directly, or you can delete the shortcode, and create a new one using the shortcode builder tool again.
Megamenu Social