• Homepage
  • Menu Tutors
    • Simple Menu
    • Dropdown Menu HTML
    • Dropdown Menu CSS
  • HTML Tutors
    • Album Description HTML Text Only
    • New Album Description HTML Text & Photo
    • Separate Links Gallery
    • Another Links Gallery
    • Example of more levels
  • Menu 3
    • Drop 1 >
      • D1 Flyout 1
      • D1 Flyout 2 >
        • D1FO2 Flyout 1
        • D1FO2 Flyout 2
    • Drop 2 >
      • D2 Flyout 1
      • D2 Flyout 2
    • Drop 3
  • My Site
  • Menu 5
  • Menu 6
    • Drop 1
    • < Drop 2
      • D2 Flyout 1
      • < D2 Flyout 2
        • D2FO2 Flyout 1
        • D2FO2 Flyout 2
  • Manage Site
    • Control Panel
    • Customization
    • Themes
    • Categories
    • Subcategories
    • Sharegroups
    • Keywords
    • Messages
    • Watermarks
    • Sales
    • Private
Steve Allen (allen-steve)  > Other > Simpler Album Description
My Info or Guestbook or what-ever

Thanks for stopping by. The code you will find below creates a gallery that can be used for an "about me", "guestbook", "info" or other page with mainly text (also known as "HTML only page"). The code used in this example will make it so that the text flows around the photo.

  • Click on the "add photos" button on any page and select "New gallery" in the dropdown.
  • Fill in the gallery title and select a category then click "Create Gallery".
  • Next page click the "return to your gallery" in upper right corner or upload the photo you'll be using.
  • When the new gallery loads click on the "customize gallery" button or pick "customize gallery" under the "gallery tools" dropdown.
  • On the customize page set the gallery to "unlisted".
  • Also on the customize page in the style dropdown select "journal (old)" to force the gallery to "journal (old)" style to hide the style picker.
  • Hit the save button on the bottom right.
  • You can now copy the html below and paste into the album description.
  • Go to your control panel and select the "customize" tab, click "Customize" in the list.
  • On the "Customization Settings" page, the top box, "css - optional" is where you will paste the CSS. After pasting it in go to the bottom of the page and click "Update".
  • Now when you return to your gallery you should see it formated.
  • The photo shown on the left above can be uploaded to this gallery. It will be hidden by the CSS below, plus you won't forget where you put it and comments will work.

Composition advice. Make sure if you're using a photo that the person is looking into the text and not away. Hate to see anyone talking out of the back of their head. :GRIN
See the instructions at the bottom of this page on how to move the photo to the right of this text.

The area above this white box is an example of text and photo in the album description. In this white box is the code to construct it.


Add this to the album/gallery description

Replace the XXXXXXXXXX with your photo number and size.
You might need to add the photo security key. XXXXXXXXXX_XXXXX-S.jpg


<html>
<div class="myTitle">
  Title
</div>     <!-- closes myTitle div -->

<div class="myPhoto">
  <img src="/photos/XXXXXXXXXX-S.jpg" width="200" height="300" />
</div>     <!-- closes myPhoto div -->

<div class="myText">
  <p>Thanks for stopping by. This is an example of 
  adding html to the gallery description which can be use 
  for an "about me", "guestbook", "info", "contact" or any 
  other "html" page.</p>

  <p>Create a new gallery, set it to private and journal 
  style under gallery customization.</p>
  
  <p>text text text text text text text text text text text 
  text text text text text text text text text text text 
  text text text text text text text text text text text 
  text text text text</p>

  <p>text text text text text text text text text text text 
  text text text text text text text text text text text 
  text text text text text</p>

  <p>You can contact me by Email <a href="mailto:myname@mydomain.com">
  <span class="myEmail">here</span></a></p>

</div>     <!-- closes myText div -->
<div class="spacer"></div>
</html>

Add this to your CSS

Replace the XXXXXXX's with your gallery number

Do not include the gallery security key XXXXXXX_xxxxx


       /* START gallery XXXXXXX */

.gallery_XXXXXXX #albumDescription { 
    margin-top: 40px;    /* gap from navbar at top */
    background: #ccc;    /* background of description box */
    padding: 20px 40px 40px 40px;    /* top right bottom left */
}                                    /* spacing inside box from edges */
 
.gallery_XXXXXXX .myPhoto {
    float: left;     /* allows the text to flow to the right */
    padding: 0 30px 10px 0;  /* top right bottom left        */
}                            /* spacing of text around photo */

.gallery_XXXXXXX .myPhoto img {
   border: 4px ridge #444;    /* add border around photo */
}

.gallery_XXXXXXX .myTitle {
    font-family: Comic Sans MS, verdana; 
    font-size: 150%;
    color: #444;
    font-weight: bold;
    text-align: center;
    margin: 0 auto 30px auto;    /* top right bottom left */
}

.gallery_XXXXXXX .myText {
    font-family: Comic Sans MS, verdana; 
    font-size: 100%;
    color: #444;
    font-weight: normal;
    text-align: justify;
}

.gallery_XXXXXXX .myEmail {color: #444;}
.gallery_XXXXXXX .myEmail:hover {color: red;}

       /* things you can hide on page */
.gallery_XXXXXXX .nophotos h3, /* if no photos in gallery */
.gallery_XXXXXXX #albumNav_top,
.gallery_XXXXXXX #albumNav_bottom,
.notLoggedIn .gallery_XXXXXXX .journal_entry,  /* hides photos in gallery */
.notLoggedIn .gallery_XXXXXXX #breadcrumb {display: none;}

       /* END gallery XXXXXXX */

End of CSS (Don't forget to set the gallery to journal style)


To position the photo on the right instead of the left modify the 
above CSS to what is shown below in blue.
You'll also need to swap the right/left padding as shown below.

.gallery_XXXXXXX .myPhoto {
    float: right;     /* allows the text to flow to the left */
    padding: 0 0 10px 30px;   /* top right bottom left */
}


Note: If you want comments to be available for the gallery, especially the guestbook, there has to be at least one photo in the gallery and it can not be checked "hide". The CSS above will hide the photo. This will also give you a photo to feature for the thumb on category and/or sub-cat page.
To change the comments at the bottom of the guestbook gallery to "guestbook comments" add this to your javascript. Replace the XXXXXXX with your gallery number. function ModifyText () { if (YD.hasClass(document.body, "gallery_XXXXXXX")) { var objElement = YD.get("comment") if (objElement != null) { var str = new String(objElement.innerHTML); str = str.replace(/Gallery Comments/, 'Guestbook Comments'); objElement.innerHTML = str; } } } YE.onAvailable("comment", ModifyText);

This is a brand new gallery with no photos.

Powered by SmugMug | Login | Shopping Cart | Help | Portions © 2009 SmugMug, Inc.
Show FeedsAvailable Feeds | What are feeds?
Gallery Photos:
Atom FeedAtom | RSS FeedRSS
Comments | Info | Keywords

| hide gallery comments

New comment: Requires approval

Name: 
Email: 
Link: 
Connect  Connect with Facebook


Rating: stars
To foil spammers, enter this code: copy this text in this box: Code unreadable?