• travel guide
  • Travel Guides
  • Apps & eBooks
  • Community
  • Publish Apps
Angkor Wat in Cambodia: The main (header) image of a page will automatically be displayed in this position. See below for details.  <img src='http://www.guidegecko.com/images/spyglass1.png' align='texttop' /> Click for full image
Travel Guide > > Writers' Café

How to Add PHOTOS INSIDE the Description Text

  
Click for larger image
Upload Photo     Upload Video

Add a Point to the Map

Many writers have asked us to include photos inside the description text, for example to write longer articles with photos at specific positions within the text. This is now possible!

As per your request, you can now add photos inside the description text, as you can see in the examples further down on this page. In the following, I will explain how this works.

Warning: For Advanced Users Only!

Adding photos inside the description text is for advanced users.

You need to insert a "special photo code" as I will explain below. Make sure you are familiar with our website system, and first upload photos the "regular way" (see Step 1 below). When you have written a couple of articles and listings and understood how photos are uploaded and displayed in the regular way, you can start experimenting with the special photo code.

Step 1: Upload Photos

No change here. You upload photos the same way as before (also see our FAQ):

Upload your photos using the green "Upload Photo" box in the top right corner (just below the "Add Something" link). Make sure you add a meaningful description. The best descriptions do not simply state what the reader can anyway see on the photo, but provide additional information, e.g. about some details or what makes the photo special.

It is mandatory that you also add a correct attribution if necessary, for example if you use photos under a Creative Commons license.

Thumbnails for all uploaded photos will appear in the top right corner of the page. Users can click these thumbnails to see the large version and your description text.

Side notes on main/header images, apps and eBooks

  • You can select one photo as the main image for the page. This photo will be used as the header image on the page (see the photo of Angkor Wat in Cambodia at the top of this page). The first photo you upload will automatically become the main (header) image. If you want to change the main image, open the photo page and click on "Use as main image" below the image. You do not need a special code to display header images.
  • You may want to use a photo editing software to crop photos that you intend to use as the header image. This can help to make the photo fit the header format. See the header photo on the current page as an example:
    Cropped image used for the header.  <span style='white-space:nowrap;'><img src='http://www.guidegecko.com/images/spyglass1.png' align='texttop' /> Click to enlarge</span>

    The original, uncropped image.  <span style='white-space:nowrap;'><img src='http://www.guidegecko.com/images/spyglass1.png' align='texttop' /> Click to enlarge</span>
  • We also use the main image for the eBook. Only one photo per article/listing can be used for the eBook - the main image.
  • To include a photo in the iPhone app version of your guide, check the "iPhone" checkbox below the photo. Only one photo per article/listing can be used for the iPhone. If you check the "iPhone" box for multiple photos, only one will be chosen. 
  • While you can include images in the app and eBook as described above, these images will always be displayed on top or next to the description text in the app and eBook. You cannot place images inside the description text in the app or eBook. The method explained below only works on the website: The special photo code below will be ignored for the app and eBook.

Step 2: Get the Photo ID

Click on a thumbnail photo to open the photo page.

Check the URL of the photo page. The URL will look something like this:

http://www.guidegecko.com/general/description/pp,16780#view

The Photo ID is the number towards the end of the URL. In our example, the Photo ID is 16780.

Step 3: Insert the Special Photo Code

Now you are ready to insert the special photo code in the description text.

I recommend you first write your text, and then include photos afterwards.

When you are finished writing your text, place the insertion mark (cursor) at the position where you want the photo to appear. The easiest way is to insert an empty paragraph for the photo, but it also works inside a paragraph.

Then insert the special photo code: In our example, the code is %PHOTO_16780%. Just type the code as any other text, with %-symbols in the beginning and at the end, in capital letters (non-italics, non-bold). This will include a photo as below:

This photo was inserted using the code %PHOTO_16780%. Note how the photo description (this text) is overlaid on the image.  <span style='white-space:nowrap;'><img src='http://www.guidegecko.com/images/spyglass1.png' align='texttop' /> Click to enlarge</span>

Click "Save" and review that the code has been inserted correctly. Then press the F5 key (Windows) or Command-R (Mac) to reload the page. If you have inserted the code correctly, the code will now be replaced by the image.

Step 4: Format the Image (Very Advanced and Optional)

This photo was inserted using the code %PHOTO_16777r%. By the way: Good photo captions include additional information beyond what can be seen on the photo, e.g. like this one: "Angkor Thom was used in the filming of Tomb Raider with Angelina Jolie".  <span style='white-space:nowrap;'><img src='http://www.guidegecko.com/images/spyglass1.png' align='texttop' /> Click to enlarge</span>

The code in Step 3 inserts a large image centered within the description text. You can also insert smaller, square-sized images, and you can position the images on the left, in the center, and on the right.

The general code looks like this:

%PHOTO_XXXXX_YZ%

XXXXX, Y and Z are placeholders that need to be replaced as follows:

  • XXXXX is mandatory: the Photo ID (see Step 2).
  • Y is optional and can be "2" or "3": Use "2" for a small, square-sized image, and "3" for a large image ("3" is the default).
  • Z is optional and can be "l", "c" or "r": "l" places the image on the left, "c" centers the image, and "r" places the image on the right.

Note that you need to type an underscore "_" between PHOTO and the XXXXX placeholder. You also need to type an underscore "_" between the XXXXX and the Y placeholder if you want to use the Y placeholder (to insert small, square-sized images instead of the default, large image). You must, however, not use the second underscore if you only use the XXXXX and Z placeholders without the Y placeholder (e.g. %PHOTO_16777r%, at the top of Step 4).

Examples:

Small, square-sized image: %PHOTO_16779_2l%.  <span style='white-space:nowrap;'><img src='http://www.guidegecko.com/images/spyglass1.png' align='texttop' /> Click to enlarge</span>
Large image, inserted with %PHOTO_16778r%.  <span style='white-space:nowrap;'><img src='http://www.guidegecko.com/images/spyglass1.png' align='texttop' /> Click to enlarge</span>
The small, square-sized photo on the left of this paragraph has been inserted using the code %PHOTO_16779_2l%. The placeholder Y=2 places a small, square-sized image and Z=l places it on the left side.

The image on the right of this paragraph has been inserted with %PHOTO_16778r%. The placeholder Y (and the second underscore) have been omitted. Therefore, the default, large image (Y=3) is used. Z=r places the image on the right.

The image in Step 3 has been inserted with %PHOTO_16780%. The placeholders Y and Z have been omitted. Therefore, the default of Y=3 is used and a large image is placed in the center. This is the easiest way of inserting images inside the description text.

The image at the top of Step 4 has been inserted with %PHOTO_16777r%. The placeholder Y has been omitted, and Z=r places it on the right. Note that this is an easier way of inserting large images on the right than the equivalent %PHOTO_16777_3r%.

Step 5: Check the Page Layout (Mandatory For All)

After you make any changes, it is mandatory that you reload the page and make sure the image looks good, and the page layout is not broken.

Depending on your image and text, you may need to improve the layout by moving the image to another location or changing its size. This is especially the case when you insert images towards the beginning of the text, where there is limited space due to the advertisement on the left side and the thumbnails and map on the right side. In this case, move the special photo code further down the text, or use a header image instead of a special code to place the image above the text.

If you have any questions, please ask!

Type: Tip
Location: General







Users for How to Add PHOTOS INSIDE the Description Text
1 0 0
Guru
The Guru

You receive points for adding & updating information
and for replying to Discussions.

You become the Guru if you are the user with
the most points for the place.
 
Daniel
Daniel
has 205 points for How to Add PHOTOS INSIDE the Description Text.
 
has helped
142 people with his Replies.

Make it Happen!

Our service for you - your travel checklist:

  1. Read our online guides
  2. Find a cheap flight
  3. Book a nice hotel
  4. Get travel insurance
    - even during your trip -

...and have fun!