with Lorelle and Brent VanFossen

List of CSS Found Within Which WordPress Files

In order to make any adjustments to the HTML of your new WordPress site and Theme, you have to find the references to the styles in the php code of each page section. In WordPress 1.2, this was easy because most of the information was found in the index.php page. With WordPress 1.5, everything is divided up among the different sections with the new modular template files. One CSS style will start in one template file and end in another, passing through two other template files on their way to the closing tag. This can make it difficult to track down your WordPress Theme CSS styles.

I’ve gone through the list of php files in the Classic Theme and Default Themes and used those as a base from which to modify my web page styles. Every WordPress Theme should have these base core CSS styles, but they might not be the same, and they might not be in the same template file. But this list may help you track them down.

Here are the php WordPress template files in which you will find the following styles:

index.php
H2
post
H3
storytitle
meta
storycontent
feedback
header.php
rap – begins
H1 header
content – begins
sidebar.php – dependent upon theme
menu
categories
search
archives
meta
footer.php
credit
cite
comments.php
comments
postcomments
commentlist
author
email
url
comment
comments-popup.php
comments-popup
H1 header
all comment styles (see above)
credit
cite

Doing a Linda Blair in Exorcist Impression

Apologies to all for the long time in posting. I have tons to tell you about but right now, I’m working on my impression of Linda Blair in The Exorcist. My head hasn’t stopped spinning around in circles since arriving in Seattle just over a week ago.

Five days spent “spending time” with my hyperactive mother, working on her rentals, chasing errands all over the countryside, and having little or no quiet time with her or with ANYTHING, the world is a blur as my head spins off its neck. (more…)

Tea With the Ladies Then Cleaning House in Seattle

I landed in Seattle late Saturday night after a full day spent in the church of Brent’s parents working on the quarterly Ladies Tea. The day before, I’d spent most of the morning slicing bread for the french toast casserole and cutting up piles of fruit and other things. Only nicked myself once when someone patted me on the back in greeting, distracting me and moving the tip of the knife just enough forward to catch the pointer finger. No big deal, but frustrating.

We had run out of bread and while waiting for more to appear, I’d been reassigned. Lynda Kay, Brent’s mother, started in on the new bread and I soon rejoined her. She was now using a latex glove, the hospital kind, on one hand. I asked why and she showed me her hand in the glove. Her middle finger was lost in a sea of blood inside the glove. I ordered her to stop and take care of it, but in the eternal martyrdom of mothers and volunteers, she said it was nothing and kept on going. As the pile of bread shrunk down, I ordered her to stop and put compression on it saying that I would finish this up. She finally obeyed.

Seems she had sliced off the very tip of her finger, not enough for stitches and the rush to the hospital, but enough so she will have an entertaining time of it when giving someone the bird for a while. I asked her if it hurt and she said no.

“Yet,” I reminded her. “It will hurt later. Andrenaline is my friend.”

About an hour later I was learning how to cut up more food to prepare it for the next day’s brunch when I heard a familiar voice issuing forth a sound I’d never heard come out of that familiar body. It was a raging scream of pain. Then the scream became words.

“You wanted it to hurt, Lorelle. Well, it hurts now!”

I rushed around the corner to find my mother-in-law in absolute agony, her face a blotchy mess of red and white under the skin.

“What’s wrong?” I moved quickly forward, watching from the corners of my eyes for towels and things I could use as bandages or whatever aid supplies I could jury rig from the kitchen paraphenalia spread out across the kitchen.

It seems that in an effort to be helpful, Lynda Kay’s best friend (and co-coordinator of the food for the teas), Joan, had decided to use the old styptic technique of putting baking soda on a cut and had poored some in a bowl and forced Lynda Kay’s finger down in it. Not good. I ordered her to wash it off and told her and Joan that this was for micro-cuts, the little shaving nicks and such. On an open wound this is like pouring acid over it.

Lynda Kay kept telling me, trying to laugh through her tears of pain, that this was my fault for wanting it to hurt. I reminded her that I told her it “would hurt” not that I wanted it to hurt. Small difference but she took some joy in trying to pass the buck with weak laughter. Hey, I’ll take the blame for anything if it makes others feel okay about the situation. It just rolls off of me. I’m used to it.

We cleaned her up and she kept the pressure on the end of her finger and she turned to supervision and then the setting up of our table.

The theme this time was ski lodge, log cabin, that kind of wintery thing. Some of the tables had little log cabins as their centerpieces, with minature skis resting by the door. Others had snowman themes and other winter looks. These women know a year or more in advance what the theme will be and they hunt all over garage sales, attics, and dollar stores to find the decorative bits. It’s amazing how much work they put into it.

Some use their precious family antiques, many not having seen the light of day for decades. I talked to several of the table owners who told me that this pot or this quilt was from their grandmother or great aunt, usually handmade. Just wonderful.

They don’t stop with just the centerpiece. They go full force with every bit of the table decoration. The plates and glasses and coffee or tea cups are brought by the table’s host, typically complementing the table’s design. One woman had the most unsual mossy green plates with pine codes painted on them with matching tall coffee mugs with birds of the forest painted on them, all looking hand painted.

Another one had the wonderful Dutch/English plates of blue and white with snow scenes of Victorian dressed people in carriages or walking across the dirt street. I’ve forgotten what those are called, but it reminded me of my mother’s father who married a Scandinavian woman late in life, Lily, who had a whole collection of these plates on her wall, and not just in blue but all kinds of colors. But only white plus a color. Never color scenes, just this mono-color effect of the old world. Lovely.

The stage and around the room were latice screens and more decorations that continued with the log cabin, hunting/ski lodge theme. People had brought their naked fake Christmas trees and these were creatively gathered into little outcroppings of the forest, a wonderful illusion, with a lot of batting cleverly used to create the effect of snow. Others, including Lisa, had brought in old metal and wood sleds and skis to incorporate into the lodge look.

On Friday, as the decorating was beginning, I spotted the numerous stuffed dead animals around, some with only their heads, others featuring full bodies. Racoon, squirrel, and other small creatures were featured in their full x-bodies, posed to look life like with glass eyes. Moose, elk, and deer didn’t rate full bodies but only heads and antlers. On a back wall of the mulit-purpose room hung a huge rack of moose antlers. I personally thought it would have looked more appropriate on the basketball hoop, but they hung on the wall suspended by wires.

I wasn’t thrilled with the dead animals, but on Saturday, they were positioned out of the direct line of sight off to the side and peeking out from among the fake trees so they weren’t so obvious.

Overall, the entire room was very well decorated and played out the lodge theme in a nice fashion. Warm. The candles and lights on the tables only added to the lovely effect.

Due to all the volunteer work Lynda Kay does for the tea, her and Lisa share a table and they tend towards the simple, though even to me it is a lot of work. Lynda Kay brought small fake trees which Lisa arranged on blocks to be a multi-level little forest. There was sparkles in the batting which we tucked under the trees to make snow. We sprinkled clear irridescent confetti over the trees and onto the batting, but it was almost invisible on the trees. So after much debate, I added the plastic and glittery snowflakes into the trees like giant snowflakes and it made it snap right up. The plates were simple white with crystal like water glasses featuring a gold rim, and a lovely white napkin was tied with a silver bow on each plate. I placed the white snowflakes that Joan had crocheted for the table under the edge of the ribbon on the napkin and then we added the little business card I helped Lynda Kay design which featured a bluish silver snowflake and the words “Jesus Loves You Snow Much.” Too cute.

There were no little workshops or mini classes this time, which was a disappointment for me, just the brunch and the guest speaker, one of the charismatic ladies in the church speaking about her relationship with god so that others would be inspired and motivated. I got caught up in the cleaning up, bringing in the food from the food tables that would spoil and quietly cleaning things up in the kitchen, and so I heard most of the talk through the kitchen walls, which was more than plenty for me. I’m not a fan of white people who scream and yell their praise of god. When done well, it is wonderful, but when done a little off…. I had more important things to do.

The people are wonderful and it is amazing how many husbands and family members showed up at the end to help clean things up. Kent had his hands in the dish water rinsing and scrubbing pots and pans before they were to go into the large restaurant style dish washers. I teased him that I expected to see dishpan hands when he was done, and sure enough, as we were leaving for the airport, he showed me his reddened and dried out hands. Sign of honest labor.

We wrapped up the left overs and scrubbed everything to a spit shine, leaving the gigantic kitchen ready for the next invasion. And Kent and Lynda Kay, her finger now wrapped up in bandages, left for the airport to get me to Seattle.

The flight was normal, a minor delay leaving Houston, as ususal. And I was lucky this time to have fascinating seat mates. The first short flight was a young priest-in-the-making who came to Tulsa for a retreat and to test drive the monestary there. I know that Tulsa is one of the religious meccas for Christains in the US, but a monestary? Wow. Part of the Benedictines.

We had a great chat and it was obvious that his retreat had been a quiet one, so he was eager to use words and express himself. He’s one of the young I heard about that feels old for this modern age, who wants to go back to the way things were rather than are. He was cute talking about embracing the new, but it was clear that he wanted to old, ultra conservative ways of the church to be brought back. I was forthright and a little more honest with him in my speech than most people would be (even got him to swear naturally), not intimidated or impressed by any holy people – or anyone – everyone wears underwear, shits and farts at one time or the other so we is all peoples – so I was a serious breath of fresh air to him. He loved that I could not only carry on a conversation but I KNEW something.

And he was refreshing to me because I have missed good dialog and debate conversations. I just love going round in circles with people about their thoughts and knowledge, interrogating and testing both them and me. Not that I cling on and hammer them, a real honest discussion of what is and isn’t and how the world goes around. In the US, I’m continually faced with surface talkers, those who are experts at the weather, how the day was (fine), and the pains in their hip or back. I want to talk about what they think is really going on in Iraq, how important the real weapons of mass destruction are in Iraq and North Korea, if the threats put forth by the US to go to war in Syria are going to amount to anything, and how the EU is going to cope with the influx of the modern but growing fundamentalistic Muslim Turkey – the real important things in life.

So we had a brilliant chat and I felt revitalized after months of stagnant discussions since our arrival in the US. I’ve had a few, but they’ve been far and few in between.

Luckily, my seat mate on the long flight to Seattle was even more charming. A young Brit on his way to meet his Internet love for the first time in three years (met in England and then continued through their correspondence and phone) and to visit the states for the first time. Too cute. We talked about everything, from funny stories of childhood to world politics, cooking recipes, and what to see and do in Seattle. I gave him my card and warned him that if anything happened during his three weeks that didn’t work out right, he was to contact me immediately and I’d help. We had such fun, I’m sure we kept people awake and irritated around us. We kept it down, but it was too much fun. I’ve only laughed that much when I was with Julia. Too great laughing days in one week, I’m spoiled!

His young love was standing across from my mother (who, as I predicted to young Alex, was wearing red and jumping up and down to see me) at the bottom of the escalator. I left him and his girlfriend to fetch my luggage, but he sought me out to introduce me, which I thought was wonderful. If she goes for him, she will be spoiled for the rest of her life, but it will not be an easy road. They have to get past a lot of cultural differences. He will have to learn to live with her ignorance and disinterest of the world outside of her little world and she will have to get used to intellectual stimulation from every corner. Who knows. Such geographical distances can be surpassed, but they are often the stuff of fairy tale romances that die after the bloom. I’ve seen it many times.

Still, it reminded me a lot of myself when I was younger and the lengths I would go through for what I thought was love. It was need, not love, but then, what is the difference. SIGH.

We made it home to Everett and I crashed in bed within minutes of arrival. The two hour time difference made arriving in Everett at ten equal to midnight for me. The next morning we were up and off to one of my mother’s rentals to scrape, clean, mud, sand, poke, and prode it back into life from the recently departed renters, making it ready for the next batch.

The home could easily be a duplex, a double apartment if the downstairs basement was finished, but it isn’t, so it is a single home with lots of room. At least lots of room to someone who lived in a smaller place in Tel Aviv and currently re-resides in a trailer in a trailer park. It has a huge master bedroom with two slightly smaller bedrooms, one bath (the only downside) and a large front living room and a huge family room that overlooks the wonderful Cascade Mountains behind the house and features a huge deck. The kitchen is open and roomy with a large area for a dining table. It’s an unusual layout, one that I would find hard to work around with only one bathroom for three bedrooms, but it is nice and roomy. The back deck is totally rotted and will be replaced with some new high tech stuff made out of recycled things, not requiring much maintenance for years, unlike wood. That will be interesting to see.

I scraped and cleaned the windows in preparation for caulking and painting. Duct tape had been used, for whatever insane reason, on the inside of the windows and outside on the sliding glass door and it had petrified, become hard as a rock and embedded itself into the paint and onto the metal. Yuk! I finally tackled it with the power sander but it was a beast to smooth out. Mildew and mold were starting to root in some of the windows, but only the older single pane windows. Some of the windows had been replaced with the new double pane insulated windows and looked great. Gave me a lot to think about when it comes to choosing our own windows for our new house.

I worked with my mother to sweep out the basement garage with its massive harvest of spiders, webs, and desicated flies coating the basement’s window sills. We then mudded and spackled the holes in the bare wall board as best as we could in preparation for the painters giving it a fresh new coat of paint. Mom went ballistic with some really strong primer called “Kilz” which not only acts like a solid base primer, it has anti-bacteria and mold eliminating properties and is called a stain fighter, covering up most stains. Hopefully this will all blend out with the paint layer over the top of it all.

They worked for hours on the bathroom, cutting out the old mildewed bathtub enclosure and replacing it with a nice open shower curtain and bath surround. Removing the enclosure opened up the little bathroom a lot, letting more light in.

We made the inevitable frequent trips to the hardware stores, something I always delight in, and finished up very late Sunday night, with me falling down around my ankles with the sleepies. A couple more days and I should be better with the two hour difference, but right now, with my finger still healing, I’m worn out.

Apologies to Non-Internet Explorer Users

After preaching for years about web standards and compliance, when setting up the CSS style sheet for my new online blog called “Journal Thoughts”, I skipped a few little details. So I apologize for those of you NOT using Microsoft Internet Explorer to view my site. In my attempts to force Internet Explorer to do what I wanted it to do, I skipped one code in my style sheet which made the menu to the right totally and completely screw up.

I’m working on converting the entire site to PHP and MySQL with WordPress, and then I will fix it up so it is viewable for everyone.

My sincerest apologies for making it difficult to view my blog.

And for those of you still using Microsoft Internet Explorer, consider upgrading for free, and improving the overall enjoyment of surfing the next by downloading and installing FireFox Internet Browser. You will be glad you did.

Get Firefox!

Preparing for Tea and Packing

After an insane yesterday spent back in the storage room and sorting through all the boxes again, going through and checking them all off the list and searching…well, I’m getting ahead of myself as usual.

I woke up yesterday morning at five with a pounding heart and sinking gut. I just realized that there was one item not in all the boxes we’d been through the whole day before. One serious item. The antique Singer sewing machine my dear friend, Ruth, gave me. I had pointed it out to the movers and it was one of the first things they packed up. I insisted that they pack it with care and that I wanted it to arrive in one piece. Well, it didn’t arrive in pieces. It just didn’t arrive.

I went through the manifest and it wasn’t on the list, but then, they weren’t really specific with the things on the list anyway. The big ticket stuff was singled out like the camera equipment, VCR, laptop, and printers, but most of the rest of the stuff was vague. All clothing and fabric, table clothes and such were just marked “linen” and all the dishes, kitchen items and knicknacks were all “household”. Not very specific.

Kent and I went back to the storage room and went through every box, accounting for every box number and opening up every one that felt in the slight bit heavy, since this steel sewing machine is very heavy. Nothing. Every box accounted for.

I called Brent and he went through the paperwork and found that the sewing machine was listed on the customs form and the insurance form, serial numbers and everything. So this morning I was on the phone with the shipping company in New York asking what to do next.

They’ve send the information to Israel and maybe I’ll hear something the beginning of next week. What a pain.

The weather is amazingly warm here, highs in the mid 70s but I know it is much hotter. The cars are boiling when you get into them and I got a little sunburned from the two days out in the bright light going through all the boxes.

I really thought everything was great until this….ugh.

With not much else to do other than pack up the stuff for the VanFossens to take to Brent in their motorhome in a couple weeks on their way to Florida, and to pack for the plane trip tomorrow to Seattle, I spent the morning at the church helping Linda Kay, Brent’s mother, prepare their quarterly tea, a mission to recruit people for their church and an outreach program. The last one before Thanksgiving had over 500 people, but this one is supposed to be much more low key. Only about 300 people. My goodness.

I chopped up bread into little cubes for something they are calling a French Toast Casserole and sliced up some oranges. The ladies are just too cute and funny and all cheerful and fussy at the same time. They’ve been doing this together for so long, while the clash and spin, they know each other well enough to get through it all with a smile. Amazing.

Brent’s mother just adores all of the fuss and excitement. It’s a tremendous amount of work but she practically sings her way through the process with a smile. Amazing. The whole familly pitches in. I helped Brent’s sister, Lisa, and his mom to decorate the table with trees and snowflakes – simple but charming. Then Lisa and I went out to a fast lunch before picking up the littlest one, Hayden, and heading back to the house. At Lisa’s house, I took a try at their leaking toilet, something I’m quite the experienced fixer of, and managed to target the problem but I couldn’t fix it. It’ll have to come out to be fixed. Pain in the buns, but at least the leak isn’t in the tank.

Anyway, I came back to the house and packed up all the stuff to go to Seattle and back to Mobile and finally got a little rest to sit here and write this.

My sliced up finger is actually doing fairly well. I ignore it and it causes me only a little annoyance. It is actually quite painful, but I just be quiet and live with the pain. Tough broad!

It has started to get some, shall we say, action, and it occassionally has a mind of its own. The other morning it was jerking and dancing around so much, I warned Brent’s parent that if my little finger did something obscene, I couldn’t be held responsible for it. They assured me that there wasn’t anything I could do that was obscene with my little finger. “Oh, yeah, maybe not in this country, but somewhere!”

So tomorrow I’ll do the tea with the ladies of the church, all 300 of them, and then head to the airport and off to Seattle. Lots to still do.

Views of a Web Page

Web pages aren’t viewed by everyone equally. We’ve taken one of our web pages and passed it through some tests to resize, reshape, mash, smash, shrink, expand, and mess with our design. If you are going to experiment with CSS, or even if you are just designing a simple Theme or web page layout, you have to put your web pages through extensive testing to make sure your design works across all the different browsers, and that means any equipment used to view, read, see, or hear your web pages.

Below are the graphic results of what different computerized media can do to your web page. The graphics aren’t represented as 100% original screen size but as representations of what it should look like. We took a great deal of care to make sure our pages are as accessible as possible, so the glaring errors and problems your page may or may not have might not be shown here. This is to encourage you to do these tests yourself to see how your page would look under the various conditions web pages are viewed so your design will work for everyone.

To see how you would view the original page we tested, check out our article on Dot Animal Syndrome for nature photography.

Screen Sizes

The view you see on your computer monitor is based upon the size of the screen, the screen resolution, and the depth of color. The following tests are done to compare actual screen sizes and not compare screen resolution or color depth. In the next section we look at font sizes which can relate to screen resolution quality. We’ve done our best to take one web page and set it to be viewed at different screen sizes, emulating the most popular screen sizes used on desktop computers, laptops, and handheld computers, which compare with future cell phone access to web pages.

Screen Size 640×480

Screen size of640x480Our web page viewed at a screen size of 640×480. At one time this was the most common screen size used by most computer users. As you can see, the content around the photograph of the bear is wedged between the left column content and the photograph. We only see the top 5-8cm of the web page, requiring scrolling to move down into the content beyond the header and the photograph to the right. The text is readable and not crowded around the graphics.

Screen Size 800×600

Screen Size 800x600Most web pages are designed to be accommodated by the average screen size in use today which is 800×600, though this number is dropping as more people invest in better quality and higher resolution and larger monitors. As of 2003, about 45% of all Internet users had 800×600 sized screens. The page looks fine at this page size, readable, uncrowded, and well laid out. There is still a lot of text that needs to be scrolled down through, but there is enough of the page showing to invite the viewer to scroll down.

Screen Size 1024×768

Screen Size 1024x768The larger screen size of 1024×768 is gaining popularity, representing about 51% of users (2003), and expected to grow as people invest in higher resolution and larger monitors. We can see more of the content and the width of the page is now wider. As the screen size widens, designers may have to take into consideration their “narrow” view of forcing web pages into widths to accommodate the 800×600 average, since there will be so much more screen real estate to cover. Page layout designs like ours are based upon a combination of absolute and relative values so the page expands to fill the screen unlike those designed only with absolute column and page width values.

Screen Size 1280×1024

Screen Size 1280x1024While still in the minority, the use of 1280×1024 screen sizes are growing as people improve their monitors and computer hardware. The width of the page is greatly increased and we see more of the document. The photograph is almost lost in the majority of text now visible on the screen. With the extra wide space, designers must consider how to lay out their pages to accommodate the extra width. Web designers who force their page to be sized to accommodate the smaller screen sizes will suddenly have a lot of empty space to the left and right of their designed page. Instead of the traditional portrait (top to bottom) content flow, some designers may turn to landscape layouts (side to side) creating several columns to fill the width of the screen. A wider forced screen layout would cause the viewer of the same page on a smaller screen to scroll to the left and right to see the entire page unless the page was coded with relative column widths. The latest version of Cascading Style Sheet (CSS) codes should include methods to take into account different screen sizes with alternative style sheets, further enhancing and complicating the design process.

Also notice how the font sizes have shrunk with these ever-widening screen views. As the screen resolution changes, so does the font size. Forcing a specific font size won’t change this. It is based on pixel size (dots-per-inch – dpi) and the higher the screen resolution, the smaller the font, unless it is modified by the user. By designing a page with a forced font, you take away the rights of those using higher resolution screens to adjust the font size of your page to allow them to read it.

Screen Size for Ipaq, PDA or Similar Handheld Computer

Screen Size for Ipaq or Similar Long Screen Handheld Computer Handheld computers are growing in popularity for their portability as View of a web page on a handheld computerwell as capability. Many of them are now incorporating cell phone and wireless technology, become one device that does everything for the mobile computer user.

The screens come in two average sizes currently, a short square shape and a longer rectangular shape. Many handheld computers (PDAs) feature a retractable base which opens to reveal a writing pad or more of the screen. Some handheld computer software systems recognize when the bottom section is open or closed, resizing the content on the screen accordingly. Some allow for quick switching from horizontal to vertical viewing, again changing the perspective of the viewed page.

Screen Size for PDA or Similar Short Screen Handheld Computer In general, most web pages can be viewed by the software typically provided by the PDA manufacturer. Working with Cascading Style Sheets (CSS), the designer can control how their page will look when viewed on a handheld computer. This technology is still new, but expect it to grow quickly. We’ve embedded such CSS code within our style sheet which looks like this:

@media handheld {
  body  { background: center center; background-position: 45% 55%}
   #sidebar { display:none}
   #content { margin: 0}
   #footer {text-align:left}
   .ad  { display:none}
      }

Estimation of the view on a handheld computer using CSS style sheet coding These instructions tell the browser that if the page is being read by a handheld computer, position the page within the center of the “screen”, do not display the sidebar menu, reduce the content menu margin to zero (to fill the small screen), moves our footer code from the right to the left so the user might not have to scroll from left to right to see it, and not to display any advertising, which slows the loading of the page. The result should look like the example to your right, depending upon the screen size and software involved.

Variable Font Sizes for Internet Browsers

Font size on a web page is controlled by three things:

  • The designer’s embedded font code
  • The setting of the Internet browser for font size
  • The monitor’s screen resolution quality

Designers work hard to make their pages look as good as possible, and one of the choices they face comes with the fonts they choose. While there are hundreds of thousands of fonts available for printed material, a font used within a web page design typically must be on the user’s computer already. This means there are only a limited number fonts a designer has to choose from in order to be viewed by the most amount of users. The one thing designers can control is the size of the font. Thinking of web pages as another form of desktop publishing, many novice designers set the fonts with absolute values such as point sizes to force the font to be the same size no matter what. Well, the no matter what is limited to their machine, screen size and screen resolution and Internet browser’s default font size. Not mine.

Results of a Font Survey of the Most Common Fonts Online by Visibone. external site Built into Microsoft Internet Explorer and other Internet browsers is the ability to view a page’s fonts at different sizes. Typically they are named x-small, small, medium, large, and x-large or smaller, small, medium, large, and larger. In Internet Explorer, you can change the web page font size by accessing the menu for VIEW, TEXT SIZE and choosing the size. If a page has been designed with relative or variable font sizes in mind, the font size will reset itself. If the fonts have been hard-coded, embedded into the document as absolute values, then the font size will not change. When a designer uses absolute value references for fonts, they are taking away the right of the Internet user to choose the font size that helps them read the page in comfort. Internet browsing software designed for accessibility, for disabled users, can have difficulty working around absolute font values, or the results might not be “pretty”. When possible, use relative sizes when choosing fonts to make your page accessible for everyone.

This should mean that a 12 point Times Roman should look the same on everyone’s machine. It doesn’t. The other part of the problem is screen resolution. The higher quality the screen resolution, the smaller the font will appear on the screen. As you saw in the above examples on screen sizes, more and more people are using larger screens and most of them are taking advantage of the higher quality resolutions. This means that your 12 point font viewed with an 800×600 screen will look like a 10 point font or possibly smaller when viewed with a 1280×1024 size screen. Let’s look at some examples.

Text Size for Large Type

Text Size for Large TypeViewed at a screen size of 800×600 with the font set at the largest font size, the font is large and easy to read, and the content still flows well around the page. In a life-size view of this page, the font size would be about 14-18 points, even though the web page’s default base font is set at 11 points. This is approximately how a page would be viewed at about 8 or 16 bit color resolution, fairly low (640×480 to 600×800).

Text Size for Medium Type

Text Size for Medium TypeViewed at a screen size of 800×600 with the font set at medium, the page is set at what we designed the base font size to be, about 11 points. It is readable, and the graphics and content flows through the page. This is approximately how a page would be viewed at a fairly medium resolution, about 24-32 bits (800×600).

Text Size for Small Type

Text Size for Small TypeViewed at a screen size of 800×600 with the font set at smallest, the text is still readable, though it takes some work. The font size is about 6-8 points, even though it was set at 11 points. Web designers who use absolute fonts get a web page view similar to this when viewed at high resolutions (32 – 128 bit and greater) on large monitors with screen sizes of 1024×768 and higher. The font may be set at 10 or 12 point, but they look like 6-8 point when viewed at the higher resolutions.

View of a Printed Page

View of a Printed PageUsing Cascading Style Sheets (CSS) we encoded our web page to be printed without the background graphic in the header and the sidebar content. The style code also sets a print margin and does not print the advertising. It looks like this:

@media print {
    BODY  {background:white; font-size: 10pt; margin: 0}
  #sidebar  { display:none; }
  #bottom  { display: none}
  #header  { height: 30px}
  #header p  { font-size: 120% }
  #content  { margin-left: 0; float: none; width: auto; }
  #content a:link:after, #content a:visited:after {
  content: " ("attr(href) ") ";
  font-size: 90%;
  }
  #content a[href="/"]:after  {
  content: "(http://www.cameraontheroad.com" attr(href) ") ";
  }
  .ad  { display:none}
  h1, h2, h3, h4, h5, h6  {page-break-after: avoid;
      page-break-inside: avoid; }
  blockquote, table,
  pre  { page-break-inside:avoid; }
  ul, ol, dl  { page-break-before: avoid; }
}

To see how your own web page would look without print, in Microsft Internet Explorer from the menu choose FILE, PRINT PREVIEW.

Viewed with Different Internet Browsing Software

Different Internet browsing software views web pages differently. Some interpret the HTML and CSS codes differently. Others have trouble with Javascripts and layers. Older software didn’t know what CSS was so it will just ignore it. Other browser software, like Lynx, strips all the pretty out of page and boils it down to its barest content. Let’s look at some examples.

Viewed with Lynx Internet Software

Viewed with Lynx Internet softwareLynx Internet Browser Software is designed for the disabled and for those tired of the graphic heavy Internet who just want to get to the content. It is commonly used by the academic community and hard core computer users. Lynx ignores all graphics code and layout style and displays the content of a page, stripped of all its prettiness. It features an 80 column page width and displays the content in Courier font. It does some interesting things, though. If your page features meta tags that specify your main home page, table of contents, email address and copyright information, it will display this as content. All links wrapped around graphics will display as the ALT tag.

By checking to see if your page can be viewed with Lynx, you can check the accessability of your page to the disabled, and really put your HTML to the test. Does it pass? [[Note: Due to abuse, you have to save an empty HTML file called delorie.htm to your site’s root folder in order for the Lynx viewer to work. It’s like giving “permission” to use their tools.]] There is another technique by CRSchmidt.net’s Lynx Viewer. Just type in the name of your site after the link and it will show your site as if it were viewed with Lynx, stripping away all styles. To view our site, type http://crschmidt.net/services/lynx/www.cameraontheroad.com and the Lynx view will open in a new window so you can compare.

Backwards Compatibility

Viewed with backwards compatibility viewerOlder Internet browsers don’t recognize new code standards such as Cascading Style Sheets (CSS). What they don’t “see” they ignore. The page to the right was created using the Backwards Browser Compatibility test. It tests for Microsoft Internet Explorer version 5.0 and older. Since it doesn’t recognize the CSS style sheet, it just shows the simplest of page layouts. Is it still viewable? Can you read it and see the pictures associated with text?

This isn’t just a matter of backwards compatibility with older browsers. Can your web page be seen by any browser, with or without its stylesheet? Strip it down to its barest essence and what remains.

We did this with our own web pages to put them through the naked or stylesheet-less test. In this example we show one of our web pages with no stylesheet. That’s right. No CSS. Only the default look of the tags by your browser. By default, headings are larger than the text but photographs and graphics just sit there, with no text wrapping around them. Now, view the same page with the stylesheet turned on. Totally different.

If your web page design can pass this very strict test and still be readable, then you are on to a good layout and design.

What a Search Engine Sees

View of what a search engine may see when it visits your web page Want to know what the search engine sees when it visits your page? Delorie.com created a free online testing program to strip your page of the pretty design elements and view it as a search engine robot or spider would.

This online tests provides several examples of how a search engine robot may gather information. In the first example, it from all the headers such as H1, H2, H3 and so on. In the last example, it reveals the content of your page, all titles, headers, ALT tags, and TITLE tags clumped together.

Designing your web page for search engines, if you understand that this is the only information a search engine robot or spider is interested in, make sure your page design allows them to get to this information as quickly as possible. Move this content up to the top when possible as a search engine robot or spider typically views only the first 25-50% of a page.

Checking for Color Blindness and Visually Impaired

Deuteranope filter applied to web page
Protanope filterapplied to web page
Tritanope filter applied to web page

Color blindness is much more common than people realize. Vischeck.com’s Color Blindness free online tester, Color Blind Color Tests and Example and Q42 Color Blind Tests will test your web page colors to see how they would be viewed by someone who Grizzly bear, photograph by Lorelle VanFossenis color blind. We ran our test page through tests for the three more common types of color blindness, Deuteranope, Protanopia, and Tritanope. As the results of the color shifts might be difficult to view on your screen, we’ve provided you our original photograph of the bear seen in the web pages to the left of this paragraph to help you see the differences.

Deuteranope (Deuteranopia) affects about 4.9% of the male population. It is the absence of sensitivity to green colors and influences how people view reds and greens. The bear and the graphic text has an almost black and white sepia look with the red tones gone. Notice that the blue letters in the graphic text and the head line for “The Nature of Composition” and the title of the article underneath are almost black.

Protanope (Protanopia) affects about 1 percent of the male population. It is the absence of sensitivity to red and influences how people see colors at the red end of the spectrum, specifically reds and greens. While this sample appears close to the original, there is a hint of red missing and the blue is darker than the original.

Tritanope (Tritanopia) is very rare and affects approximately 0.001 percent of the male population. It is the absence of sensitivity to blue and influences how people see color along the blue scale, especially blue and yellow colors. All blue within the graphics and photograph of the bear are gone, leaving a green and purple tint, and the blue used for the headlines and titles are now black.

Visually Impaired Views

Not all visually impaired people are 100% blind. Many suffer from various degrees of sight impairment including blurred vision, and partial or blocked vision. Microsoft Windows and other operating systems come with accessibility features included. Add-on software, like speech recognition and speech reading and control, are widely available to disabled users, too. Each “see” a web page differently. Part of designing and validating your web pages for accessibility means understanding how those with sight problems can view your web pages.

In an amazing step into stupidity, according to the author of Blindness-Related Resources on the Web and Beyond, he highlights web pages about blindness and for the blind that are not even close to accessible. One of them is the Website for the Helen Keller foundation. These sites serve a valuable lesson in how to design for (and not!) web page accessibility.

Viewed with Accessability features turned on Microsoft Windows. Crecon’s Page View Tester for the Visually Impaired is a poorly designed online tool but it does the job in portraying what your web page would look like using simple accessibility features which enlarge the text to sizes usually bigger than the typical Internet browser.

You can try this yourself through Microsoft Windows. They have an Accessibility feature built into the last few versions of their operating system. Accessibility features in Windows can be turned on through the CONTROL PANEL, ACCESSIBILITY or ACCESSIBILITY OPTIONS icon. Look for HIGH CONTRAST and set the settings for any of the different high contrast settings for the visually impaired. Below you will see several different examples of our test web page viewed at high contrast using the large fonts in black or white backgrounds and different font colors. Different forms of visual impairment see better when viewing different colored letters against a black background. People with dyslexia view dark letters against a blue-tone background better than a white background. The software completely ignores the designer’s font sizes and colors when possible. The more a designer uses absolute coding for fonts, the less likely a visually impaired user will be able to view the site using these tools.

As the text is so large in these examples below, you are viewing the entire page as seen at full width on our monitor set at 1024×768, including the Internet Explorer menu and title bar, and the Start and Taskbar in the bottom. We mention this because if this was viewed on a monitor with the screen setting at 800×600, you would see even less of the web page content with the smaller screen size.

Yellow large high contrast text against a black background.White large high contrast text against a black background.

Green large high contrast text against a black background.Black large high contrast text against a white background.

 

Want More?

As we find more ways to view web pages, we will post our findings here. If you know of a way to view a web page and would like to let us know so we can post the web page view here, please leave a comment below and we’ll get back to you as soon as we’re back online – ah, the joys of the traveling life.

Unpacking and Repacking in Tulsa

The flight to Tulsa from Mobile was quiet and uneventful, except for a minor delay in Houston. It seems the airplane was leaking massive hydralic fluid from one of the brake lines so there was a 45 minute delay while they replaced the part. We arrived in Tulsa only 20 minutes behind schedule so they picked up lost time in the air. Got to keep those schedules.

I’d rather feel better about the plane landing with both feet working.

Brent’s parents were waiting, and I was glad to see them. It’s the comfort of home. We went to the house, had a lite dinner, and I was in bed unconcious not much longer. I still am lagging in the energy department. Brent keeps telling me that all my energy is going into healing my little finger.

This morning was lazy and then off to the storage room to attack the stuff. There wasn’t as much as I’d feared and we hadn’t filled up the storage room, so that was a relief. Brent’s dad, Kent, and I started attacking boxes without much of a plan. I thought the best plan of action was to check the boxes for damage and then make notes of what we found with pictures with the digital camera, and then check inside to see what was damaged.

What ended up happening is that we opened up every box, did a cursory look for things Brent and I needed, shook and rattled things to see if they would jingle or jangle to signify breakage, and then close up the box and label it so we knew what was in it.

I thought there would be more sentimentality, but as we worked in the direct sunlight, getting hotter and hotter in what should be freezing cold, I put aside all sentimentality and went for things of critical importance.

Once again, this meant making decisions to leave paperwork, research, and MY WORK in storage. Over and over again I make the decision to put my work in storage and to move on. There is a lesson here, and maybe it is that I devalue my own work, or maybe it is that I am willing to be the one to sacrifice for the sake of space, peace, and happiness, but for now, this is the decision I make as the things we have to have pile up and the rest can just be put on hold.

I get what is most important, and that is a huge lesson. In my programs on self-improvement and travel, I talk about learning to live with less by learning to give it up first. Until you can let go of the STUFF, you can’t live with less. It’s a fact. It is the emotions caught up in the STUFF that have to be dealt with, not just the physical presence of the STUFF. Time and again I keep shrinking down my life and reconsidering the stuff I want in my life. I accumulate, but the choices are wiser. Books, though, are still the hardest things to part with. Not only do I love books, I love to look at books. For me, they are a kind of artwork and I derive great pleasure from looking at books.

So we went through each box, digging in deep as they didn’t all consist of the related items from the top. One by one we found the things Brent and I had put on our list to bring back to the trailer. Kent pulled the boxes out of the storage room into the sunlight and I plowed through them and then we packed them back up, wrote the key words on the outside to help us identify the contents, and then he stacked them back in the little room. We did all the boxes in one day. Amazing.

It really went like clockwork, one box after another, and even time to stop for lunch at Braums, my idea of perfection in a hamburger, and back to work. We’re totally worn out and I can hardly concentrate enough to write this. The only little bug in the oinment was that we lost the lock for the door. I don’t remember even seeing it after he unlocked it, and maybe it got packed away, but it was gone. So we ran out and bought another one, no big deal, and the first one will show up someday…in a box.

So the unpacking and repacking is done and tomorrow I go through the stuff I pulled out and condense it down for Brent’s parents to haul to Brent in their motorhome. They are leaving in a couple weeks to head down there to spend a few days with him, then pick me up at the airport in Mobile and leave the next day. They are heading to Florida where they will babysit their grandkids at Disney World and the rest of the fun play centers while the parents attend a business conference. That is some seriously good grandparenting! And lucky kids.

I’m off to Seattle on Saturday, with enough time to attend another church tea!!! That will be fun to report on.

I’m going to bed now. My bones are totally worn out and my poor finger is throbbing. But the main work is DONE!

Need Some New Recipes?

This is a charming site that features TONS of recipes including Meps and Barry’s Recipe for Crustless, No-Bake Pumpkin Pie.

Wow! I’ll be spending some time here.

Photographing the Wind

The car door slammed, frustration evident not only in his body language but expression. "Trouble?"

Brent deposited the camera into my lap and shook off his hat. "The damn wind."

I looked outside at the field of wild daisies and sure enough, they were dancing around in the wind, white waves upon green stems. "You’re trying to photograph the flowers, right?" He nodded. "Why not try photographing the wind instead?"

Daisies blowing in the wind, photograph by Brent VanFossenHis expression twisted strangely. Slowly, the light bulb went off. With a grin, Brent grabbed the camera and was out into the chilly spring air again.

A long time ago a photography teacher told me that if you go out to photograph with a goal in mind, you often miss out on the other possibilities. Leave the agenda at home and stay open to whatever you find. When the wind won’t work with you, why not work with the wind?

Photographing the wind is a real challenge because you can’t see it directly. People rarely think of the wind as a photographic subject. You can’t do morning light on wind. Front light has no effect. Learn to pay attention to the effect wind has on subjects and before you know it, you may not be photographing the wind directly, but you will be photographing the wind.

A storm blows the trees around, photograph by Brent VanFossenOn a windy day, head out into the forest. The thick bases of tree trunks keep the trees fixed in the ground, but their highest reaches sway back and forth in the wind, and even their leaves shimmer in the lightest breeze.

In the low light levels of most forests, slow shutter speeds are easy to get. Slowed down to 1/2th of a second or even a full second, depending upon the wind speed and tree movement, you can capture some amazing images of the movement of the tree tops. Get down low to look up at the still tree trunk bases and capture the motion high above you. A wide angle lens accentuates the wide tree base and the soaring height of the trees.

Waves on the Beach, Israel, photo by Brent VanFossenIf you are catching the motion, blur the movement with slow shutter speeds. If you want to stop the action of falling leaves or crashing waves, choose a high shutter speed. The drama of an image capturing the wind is enhanced if it includes objects in the same picture that move along with things that don’t move. The effect is much more surreal and dramatic.

Fast shutter speeds capture the crash of the waves during a storm on the beach, photograph by Lorelle VanFossenCapturing the wind’s effect on subjects does mean working with slow shutter speeds. The slower shutter speeds allow your subject to move back and forth across your frame during longer exposures, showing the motion. Blessed with a day with a moderate to low light level, a day with clouds, slow shutter speeds come easily. They can also be found in the morning or afternoon when the light level is lower. On a bright sunny day, you can add a polarizing filter to cut 1 to 3 stops of light for the slower shutter speed you need.

As your subject is moving, you need to make sure your camera is stabilized solidly to enhance the motion effect, keeping the still items still and the moving parts in motion. A solid sturdy tripod will give you the stabilization you need. A light tripod will shake and vibrate in the wind. Watch out for camera straps and camera lens covers dangling in the wind, too, causing the camera to shake.

In strong winds, such as those along ocean coast lines or during storms, you might weight down the tripod for more stability by hanging your camera bag or plastic sacks filled with sand, dirt, or rocks from the center of the tripod. We’ve even used gallon plastic milk jugs or 2 liter soda bottles filled with water hanging from a bungie cord from the tripod.

Looking for wind

Wind forms ripples across the snow at Hurricane Ridge, Olympic National Park, photo by Brent VanFossenAs we’ve said, the wind itself is almost impossible to photograph, but its effects aren’t. Winds’ effect on nature helps to mold mountains and hillsides as it blasts away on one side and softly drops off on the other. As it hits the ground, the wind picks up dust and dirt, scouring the land and carrying them along until the wind speed drops or the objects meet resistance. The particles are deposited in piles or ripples, building up slowly over time unless they are blown or washed away. On the top of Hurricane Ridge in the Olympic National Park, the winter winds batter the snow covered ridge, lifting the snow in drifts resembling ripples in a lake over the frozen slow.

Ripples across the water, Canada, photograph by Brent VanFossenThe brush of wind against the surface of a body of water creates dancing patterns in the water, enhanced by reflections of the trees and surrounding landscape. Patterns become abstract, dissolving in the motion of the wind across the water.

The wind helps plants and trees spread their seeds across the land, scattering seeds of all shapes and sizes through the sky. Look for helicoptering maple seeds whirling down, or dandelion golf ball-like seed heads releasing their seeds into the wind. In the fall, the leaves drift down from the trees to cover the ground below, insulating it naturally against the coming winter.

Grasses sigh with the motion of the wind as it Trees in fog, photograph by Brent VanFossenmoves across the fields. Clouds are pushed around by the whims of the wind, flying across open skies and lifting and swirling around mountain peaks. Fog moves through valleys at the slightest nudging from the wind, moving through trees and up and down the hillsides. Look for lighter evidence of the wind in dust devils, or the swirl of white caps on the sea or a lake.

Big winds are more dramatic in their evidence and results. In some cases, a slow shutter speed is not as desirable as you photograph the dramatic impact of high winds such as hurricanes and tornadoes, stopping the action in its tracks. In the middle of a harsh storm, Electric Wind Mills provide power for people in California, photograph by Brent VanFossenphotograph the driving rain and/or snow to show the wind’s affects. After a serious wind storm, walk through a forest to find trees uprooted or snapped off like twigs, revealing the power of the wind’s fury.

Nature isn’t the only host for wind’s effects. Look around for flags, windsocks, kites, skirts, and scarfs blowing in the wind. With today’s modern technology, wind mills have made a comeback as they harness the energy from the wind to generate electricity in many parts of the world with consistent high winds. Things that move have little chance against the pressure of the wind.

Photographing and Exploring Jerusalem

One of the oldest menorahs from early First Temple period, Museum of the First Temple Period, Jerusalem, photo by Lorelle VanFossenExploring the Old City of Jerusalem means going back through time. Not just back but down through the layers of time. A city conquered, crushed, rebuilt, conquered and crushed, then rebuilt again and again and again, visitors to Jerusalem relive the adventure by touring the many layers of history which remain.

Many recent archeological discoveries come from the unfortunate exposure of many of the oldest layers caused by the Arab destruction of the ancient Jewish Quarter during the wars. When Israel won Jerusalem in 1967, archeologists were among the first to move into the destroyed areas, revealing incredible historical finds as they probed the layers. Imagine the process of debating and deciding when to stop at a particular layer in time and when to dig deeper, destroying what lay above, but potentially uncovering even older remains below. Some of their oldest finds date back to the First Temple period (950 BCE) and are preserved in the Museum of the First Temple Period. (more…)

WordPress Theme Tweaks and Twitches

I’ve been poking at this WordPress Theme of mine for a few days and all the little nitpicky stuff is getting me down. There are a lot of major and minor things to clean up. And I’m totally not happy with how FireFox is handling my old layout. In fact, I’m disgusted with my old layout. Guess it’s time to really do what I want to do.

While working on my CSS design experiments a few years ago, I also put together some serious state-of-the-art web page layouts and designs. Unfortunately, most browsers couldn’t keep up with it. Too graphic heavy and too many bells and whistles. It’s been about three years now, so I figured that if people haven’t upgraded their browsers to at least something that is two years old, they never will and I can only do so much for them. It’s time for me to get more serious about my own web page design and design for ME and not to make it simple simple simple for the rest of the crowd.

I decided that I wanted to try to create a fixed background image of our trailer meandering down the Talimena Skyline Drive in Arkansas for the main and category pages. Over that, I wanted a translucent filter which would allow the content to sit on a semi-opaque white background when it moved over the content. This way, when the viewer scrolls down the page, the content moves but the image doesn’t. Eric Meyers has the most wonderful example of how this works on his site.

I did all kinds of things, trying this and that, changing the colors, opacity, and nothing was good enough. And it would look great in Internet Explorer and crap in Firefox, and then crappy in IE and wonderful in Firefox. It was all close, but it just didn’t have the punch I wanted. I also really loved having nothing but black text on a white background for the long, wordy articles I tend to write. Clean and simple while still having a kick. I wanted to get back to our roots, life on the road and photography, so I wanted to look more “photog” than “educational”. The opaque background for the text didn’t work. It was messy and hard to read.

Brent, my hero, finally convinced me to make the background image fade into the background so the header area would feature the photograph fading to white and the majority of the background would be white, allowing the text to be against a white background. Brilliant. Totally brilliant. He knows nothing about how all this works, but he can take one look and come up with the solution. One more reason why I keep him around and adore him desperately!

So I slammed the photograph into PaintShopPro and fought for ages to get the fade right, creating graduated filter after filter after filter to drop the photograph down to white without leaving a line or making a mess of it. And then I had to test each one to see how far down it would go before it interfered with the text. Then back to the drawing board, literally. Finally I got it right.front page of our new WordPress themed site

Not long after, someone emailed me that they are using a super wide screen resolution and the photograph hangs off into white background when the screen width reaches the end. After a lot of new research, I set the image to be 1024 pixels wide based upon the widest average screen width in use. I thought that would be plenty. Because I set the font of the header information to white, to contrast against the photograph in the background, when the screen stretches all the way across beyond 1024 pixels, the floated text floats all the way over to the right with white text on white background. Not a good combination. This brought a great deal of angst.

I hate websites which decide the width for me, leaving blank edges all around. I like fluidity and elasticity in web page design, using up the whole screen real estate, or not, dependent upon the user not my design. Screens that now reach over 1024 pixels wide is a lot of wide screen real estate to cover. So, after years of working to tweak my lovely layout to be fluid with the screen widths, I’m back to debating about how to deal with screen width issues again.

After consulting with some pro designer friends of mine, I come up with a temporary fix. I set the background image to repeat horizontally for ever and ever. It isn’t good, it isn’t pretty, but it works. If I decide to leave it this way, I will probably soften the right edge to blend better with the left edge as it repeats. The challenges a web designer is faced with. Or I set it to 1024 pixels wide, let the user make it narrower if needed, and the wide screen user can suffer with empty space on the right side of the page….what to do? I’ll debate before I decide. The majority of Internet users are still stuck on 800×600 though use of larger screens are rising quickly.

Linking Graphics and Images in WordPress

After dealing with the background, I started to work on each individual post to make sure all of the HTML imported correctly, fix any bugs, and make sure that the links to the graphics still worked. This was a little more of a challenge than I thought.

Years ago, I’d set up my photographs and images in their own folders. From inside an article, the links to the graphics were set with relative links. This means that instead of having them linked via an absolute link like "http://www.examplesite.com/images/ball.gif", if the article was in the “Learn” folder and the subfolder “Biz” for articles about the business of nature photography, the relative link for the graphic would be "../../images/ball.gif". The dots and slashes instruct the browser to look for the graphic two directories up to find the images directory and the graphic would be in there.

With the move to WordPress, the issues of relative links gets kinda thrown out the window. My Theme template files are in a sub-sub-subdirectory of the root. So would the relative link have three sets of ../ in order to get the image? Nope. Figuring this out took some detective work, though.

When someone visits your WordPress site, the literal address is aimed at the index.php in your root directory. This template file, while called index.php isn’t actually the “real” index file. It features instructions that basically say “go get the templates and fill them with information from the database and pretend that everything is generated from the root directory unless you have instructions otherwise.”

So it grabs the index.php from your theme folder which is usually at something like:

http://www.example.com/wordpress/themes/mytheme/index.php

Let’s work this out then. The root index.php leads to the Theme index.php and the actual “web page” information is pulled from the database to generate the page, so what should the link be? From the Theme or from the root?

From the root. Even though your information gets pulled from different sources, the root file that controls all the action is still based in the root directory. So the relative link for images has no use for the dots and slashes since it will look for the images directory from the root.

To ensure that they are found from the root, you can add a slash to the beginning of the link like this:

/images/ball.gif

This forces the browser to look at the root directory first for images.

This led to my first lesson in doing a search and replace in the database to get rid of all those dots and dashes in the image links.

UPDATE wp_posts SET post_content = REPLACE (
post_content,
'<img src="../',
'<img src="');

Looks simple, but it took me a couple hours to figure this little SQL query statement out. I’m totally new at this MySQL database stuff, though I have years of experience with MSAccess and other databases, this is different.

The query basically instructs the database to look in the wp_posts table in the post_content field for any occurrence of the first line of <img src="../ and replace it with the second line of <img src=" to fix my little problem. Little did I realize that this piece of code and I would become very intimately acquainted.

I did a search for one set of ../ and then for another, to make sure I got all the ../../../ sets. Cleaned it up in seconds. Wow! Powerful little query, but it can easily search and replace the wrong thing and screw things up. I started making frequent backups of my database to make sure that I had something to go back to if I did mess it up. And I did, but everything was all fixable.

As I looked through each post, I realized that my bullets weren’t showing up. I had copied over my list CSS directly from my old site and the relative/absolute link thing hit me here again. The style.css is called directly from within the header to the style sheet in my Theme. This means that the style sheet looks for its links from the folder the Theme resides in, because that is where it also sits. Any link from within the style sheet has to be directed from that folder to the image folder or the spot within your site that the images sit…messy.

A command decision had to be made. I recommend that if you are using any graphics in your CSS, like backgrounds, replacement graphics for the lists or headings, put them in the same folder as your style sheet to ensure easy loading. Or in a subfolder of your Theme folder. Big lesson learned. This is much easier.

Another Image Link Solution

While working on the test site, I had a terrible time dealing with all of these relative links for images, before I figured out about the search and replace query in the database. So if you aren’t ready, like I was, to do a massive search and replace in your database, then you can use the following tip.

In the header.php template file, just before the style sheet reference in the head, paste the following line, changing the appropriate information to suit your needs:

<base href="http://www.yourdomain.com/wordpress/"/>

This directs your url references so you can use relative links that will not work from where the page is but from the base reference. You can then use relative links like this:

<img scr="wp-images/bicycle/bike1.jpg" alt="photograph of a Schwin bicycle">

And the graphic will be found as if it was in:

<img scr="http://www.yourdomain.com/wordpress/wp-images/bicycle/bike1.jpg" alt="photograph of a Schwin bicycle" />

Lacking Links

Now that the background was finally set, and I could see the images on my site, it was time to look at the header title, article heading titles, text, and links since they lay on top of the background.

title of article without hoverThe colors in the photograph of the road winding down Talimena Drive is wonderful, fall colors, and it blended down wonderfully into the white. But the text that laid over it before it reached the pure white included the title of the article or page title (category, archives, etc.), the top text of the sidebar, and the beginning of the article. I knew the colors needed to be earthy, since that was represented in the background, but which colors to choose?

title of article with hoverI tried everything. White was great across the top for the header, giving enough contrast for the letters to show up, but white wouldn’t work for the mid to total white range. I tried earth tones like browns, and greens, but they blended in with the photograph. Not enough contrast. I tried a dark green on the heading titles and could see them fine in the content that went into the white background, but I couldn’t see them against the photograph. I tried a light green, but it looked awful against the white, though it did stand out against the photograph. I didn’t want to push the whole content down to where there was more contrast in the photograph, and I didn’t want to bring the white gradient up any further. ARGHH, the compromises we have to make in design.

sidebar link colors with hoverI discovered several color helping sites that really gave me a lot of assistance in figuring out the color scheme, but it wasn’t until Brent stood behind me again, the unassuming brilliant designer that he is (but don’t tell him because he doesn’t know), and said, “Make the titles a deep red, not purple and not orange, but a rust base red. And then match the links to those colors.”

Through the use of the following color scheme sites, I was able to finally pick a good color scheme to set the links and heading colors.

We found a good red and I set the styles, so now I needed a good link hover color. Brent recommended that I turn “red into gold” which worked wonderfully for the links in my sidebar and throughout the document against the white background, but the h3 heading for the title of the article sat in the background photograph and the gold color on the hover made the title disappear into the photograph. Not enough contrast. GRRRR.

We hit the color schemes again and finally found a lighter red color that worked wonderfully as a slight contrast shift for the link hover. The rest of the links will feature the gold hover color.

We decided to keep the “earthy” tones and set the sidebar titles and “box” lines in a rich green color, which adds to the fall, natural colors throughout. I love it.

Step-by-step, this WordPress Theme and site is coming together.

Moving On To the Structure

Well, I can finally “see” my new WordPress test site. It isn’t as pretty as I want, but it is getting there. Now that the core stuff is there, it’s time to attack the HTML, PHP, and structure of the site again and really pull all of this together to be the site look and feel that I want.

Working on the CSS and WordPress Theme

With the move to WordPress v1.5, things are a little more challenging for creating a CSS file. As I mentioned, the header, footer, index page, and other elements are now divided up into pages which are “included” in the main index.page. A div or class will start in one template file and finish in another, so things get a little crazy and confusing.

I realized that the effort to install Apache, PHP, MySQL and WordPress to my computer to help me create my new WordPress site look and Theme was not the way to go. Everything in WordPress is done “online” and I needed to tweak my Theme without being online all the time.

I created a test story content and pasted it into a WordPress entry, filling in the title and choosing a few random categories. I used different headings all the way from H1 to H5 so I would see what the Theme I’d chosen would do with them, adding nonsense text between the headings. I created a list, then a couple of nested lists, going a few layers down, so I could see what would happen with those styles. I added some graphics, and basically made it look like a regular one of my articles. I saved the post and then viewed the file on my test site.

Viewing the source code, I copied it and pasted it in a new text file I saved on my hard drive in the WordPress directory where my test theme was located under the name “testing.html” – not on my site. Using the ability to view web pages from a hard drive, I knew I could work with this test file on my computer and not consume bandwidth and waste time with frequent uploads of the modified style sheet and html page as I work on it. I found out later that this technique is called a sandbox.

The style sheet link in the head was changed to the local style sheet file in the testing.html, and then the step-by-step process of modifying the CSS file begins.

Sorting the Style Sheet

The first thing I noticed is that the style sheet was sorted alphabetically. Why anyone would do that….well, that’s another topic, anyway, I wanted to “see” my page via the CSS so I quickly went through and grouped related things together with headers. For instance, I wanted the core structure of my site all together, so that when I changed the width of the sidebar, I could change the width of the content without jumping from “s” to “c”. If I want to change of my headings, I want all my headings in one place so I can make sure that the font size of H2 is larger than H3 which is larger than H4, and so on. Once that was done, I started with the basic elements.

Starting simply, I changed the basic font in the body tag, and then in the paragraph tag, which is grouped with the list and feedback tags in the classic layout. These can be changed and separated later. I also added a font in the header to control the look of the header differently from the rest of the page.

The next step was to identify which section is which. I went through the structure tags and for every ID and major class I gave it a colored border like border: solid 1px red to help identify which CSS selector referenced which section.

After viewing the file with the new borders put in place, I now had a different color around each section. I identified which section was the header, sidebar, footer, content, and so on, and went back into the style sheet and put comments in to help me know which style matched which section, like this:

/* header styles */
#header {margin:10px; padding: 5px; ...}

As I went along, if I found some styles that would go in the header, then I moved them in the style sheet to the header section, same with the footer, content, and so on, grouping related styles together.

I always call the sidebar the sidebar in my styles, but I found that the sidebar in this theme is called menu, identified by the colored border around it. With the sidebar/menu outlined, I now knew basically its dimensions. It was on the right side of the page and I wanted it on the left. So I moved it by changing the position to the left side of the page. The main content area is now overlapped and the width is screwed up, but one thing at a time.

As I went through the CSS, I found the reference to the calendar. Since I won’t be using that, I deleted all the calendar style codes, but left the reference in the html. Right now I’m concentrating on the style sheet and not touching the html. I will get to that later. One thing at a time.

I changed the header to be 100% across and the height to be 120px. This makes room for the banner graphic from our old site set in the background. There is no H1 style code in the style sheet, but it does appear in the header – in fact, it is the header, listed as <h1 id="header">. This makes the header interesting as it will shrink or expand based upon the font size and the amount of text that wraps around, though it can be influenced by the specific height of the DIV. Since the H1 tag is the header, the only text in the header would be inside of the H1 tag. This makes it a little limiting. I may have to change this when I get to the html.

Now, the main content has to be modified to move over to the right to accommodate the new placement of the sidebar. I changed the CSS to match our unique page layout design that I developed. I guess it’s not so unique any more. I spent months developing it for our site and writing about it, and now, four years later, it’s a standard and not much different from WordPress’s core Themes. It was sure innovative at the time, but I guess I was ahead of my time. Anyway, the text in the content section went right up against the edges of the box, so I added padding to give it some “room”.

There is a lot more that I will need to fix in the sidebar/menu, but right now, things need to be fixed in the main content area.

The Content Section

Links are very important to the success of a page and I love the links I had set up with my old website, so I just popped them back in. They feature several characteristics dependent upon what they do. Here they are:

a {color:#0000CC}
a[href], a, a:visited, a.external:link, a:hover, a:active {text-decoration:none}
a {border:0;margin:0;padding:0}
a:visited {color:#006699}
a:hover {color:#003399; background:#CCFFFF; border-bottom:2px solid #003399; border-top:2px solid #003399; border-left:0; border-right:0}
a.external:link, a.external:visited {border-bottom:0.05em dotted}
a.related:link, a.related:visited {font-weight:normal}

I will tweak with these when I get the rest of the styles done, but for now, I’m happy with the familiar. Ah, I made a note to remember to set the links in my sidebar menu to either have or not have the borders on the hover characteristic as they will be influenced by these links. I make so many notes as I go through this…but I have to. There is so much to do and the memory…well, it is whelmed by all the stuff on the “to do” list.

Then I add my list from my old site, but changed to match the new selector names. I like my link graphics, so I decided to keep them for now, too. They look like this:

.storycontent ul li, .storycontent li.number {list-style-type:upper-alpha}
.storycontent ul {margin:0.3em 2em; list-style-position:outside; list-style:url(ball.gif) disc; font-size:98%}
.storycontent ul ul {margin-top:0.3em; list-style:url(bullet.gif) square; font-size:96%}
.storycontent ul ul ul {margin-top:0.3em; list-style:url(ball1.gif) circle; font-size:95%}

You noticed I kept them in the storycontent section. I wanted them to stay there and not be inherited in the sidebar menu’s set of links. This is planning ahead, and learning from lessons I made in the past.

The headings are a bit more challenging. The top three (h1, h2, and h3) are assigned to specific information. H1 is the site title and represents the entire header. H2 is the date and H3 is the story title. I will be moving the date and will want it small, so I’m going to do some fiddling with these defaults.

I want to change the H2 to my story title and have the H3 be the sub-sections within the article. I will then use H4 as a sub-subsection, stylized very simply. The H3 heading I’ve designed to be very distinctive and I like it. I use a repeated graphic, one of our nature photographs, in the background and change it according to the seasons. It is styled like this:

h3 {clear:right; color:white; font-size:140%; font-weight:bold; padding:8px; margin-top:1em; margin-left:-10px; background:url(h3icebar.gif) repeat #000099}
h3 a {color:white}
h3 a:visited {color:white}

I am also particularly fond of the design of my blockquote. I discovered part of it while working on my CSS experiments and then tweaked it to suit my own needs. It features two sets of opened and closed graphic quote marks around the quote, with the author’s name in small italics. Since I already have all my blockquotes stylized within the content I’m uploading to the database, I decided to keep my blockquote design. I simply replaced the default blockquote with mine. For reference, here it is:

blockquote {color:navy; font-style:italic; font-size:105%}
blockquote i {color:#3366CC; font-style:normal; font-size:70%; text-align:right}
#nickwrapper {display:block; position:relative; width:80%; margin:10px 0px 10px}
blockquote.nick {margin:5px 0px; background:transparent url(quotel.gif) left top no-repeat}
blockquote.nick div {padding:0 53px; background:transparent url(quoter.gif) right bottom no-repeat}

The layout in the HTML is:

<div id="nickwrapper">
<blockquote class="nick"><div>You have learned something, and I have learned something.<br />
Too bad we didn't learn it sooner.<br />
We could have gone to the movies instead.<br />
<i>Balki Bartokomous, TV show: Perfect Strangers </i></div></blockquote></div>

Note: I later changed this to feature two hands “holding up the quote” instead of the quote graphics – such are the ever evolving changes of a web page design.

I also added a bunch of details from my old site that include specific text colors, boxes for highlight content, and other elements that add to the overall look of the page. I simply copied and pasted these into the style sheet. They will appear with the content which already holds these HTML and CSS references in my articles imported last week into the database.

Now to the really challenging aspect of the style sheet in WordPress – the Sidebar Menu!

The Sidebar Menu

The menu hosts some oddities that make working with the styles different from most containers. The whole thing is set up inside a series of nested lists. Nested lists, like the table layouts of old, can be a nightmare unless properly laid out. Since nested lists inherit style values from the list style above it, it can be difficult to create truly distinctive looks for each section. WordPress tries to make this easier by using classes for each section, but it is still challenging if your desire is to create distinctive looks for each section.

Here is the basic and very simple layout of the nested lists that come with the default setup of WordPress to help you keep track:

#menu
#menu ul
#menu ul li - Heading Title: Categories
#menu ul ul li - Links List Under Categories
#menu ul ul ul.children - Sub-List Under Categories (for subcategories)
#menu ul li - Heading Title: Search
#menu ul ul li - Links List Under Search
#menu ul li - Heading Title: Archives
#menu ul ul li - Links List Under Archives
#menu ul li - Heading Title: Meta
#menu ul ul li - Links List Under Meta

See the repeating patterns? If you change the look of #menu ul ul li, you change the look for each section featuring that selector reference. If you want a different look for your Categories list and a different look for your Archives list, WordPress tries to make it easier because, while they are not listed in the style sheet of this theme, they may be in others, so you need to know or make sure each section features its own ID. They are:

#categories
#search
#archives
#meta

To change the look of the list identified as “categories”, type in #categories in your style sheet and then make the modifications you want. Same for the rest of the list. This way, you can have your categories be a large font with a blue background, and the rest of your lists feature smaller fonts with pink backgrounds…or whatever. Experiment with different looks to get the one you want.

To add to the confusion when it comes to stylizing the style sheet, you need to understand that these are nested lists of links which inherit the “parent” style. This makes the issue of styling these doubly hard.

Links typically have their own style. They have an inactive, static look before they are clicked, a style when the mouse moves over the link, and another style after the link has been visited. Because you are dealing with the issue of the parent/child relationship of the nested list and the fact that these are links, we got the link styles actually becoming the parents to the list, which makes the list become a child, and each nested list has it’s own parent/child issues within it. Oh, boy!!

Try to following the bouncing CSS drama for the sidebar, if I can explain it well enough.

links/anchors
The links tend to be set for the entire document, which would make their styles become the parent to the links within the menu. If you want them styled differently, each style, as listed below, must feature its own link style.
#menu
The ID for the entire section is #menu. It sets the whole look for the entire sidebar menu including the background, fonts, sizes, etc. To change the overall look for the entire sidebar menu, make changes here. For text and non-list and non-link items, the codes within the menu style will become the parent style for the sidebar.
#menu ul
This is the opening of the list and sets the overall look of the entire list under the menu style. If you have an unordered list list within your content, it will look different from this list, unless you have the list styled on its own and not under the content style (such as #content ul. If you don’t, the styles for the ul become the parent to this list. If you are having a problem trying to adjust the look of the sidebar/menu list, check for the parent ul for the source of the trouble.

From here, any changes to the relative font size, type, or style will be given to the list unless specifically modified in each section. For examples, if you set the font to be 90% of the basefont of the rest of the document, and set the font to 80% in the next list, the font size will actually be 80% of the 90% parent of the 100% grandparent (so to speak) style, making the font actually 70% of the base font, which is pretty small. Play around with creating different looks, but remember, the ones below (children) start from the references created here.

#menu ul li
This is the first actual list of links. WordPress uses this to establish the look for the Categories, Search, Archives, and Meta titles or headings. Remember, these are the static headings that give these titles, they are not actual links. The actual li tags are labeled with IDs relative to their type, be it Categories, Archives, Search, and Meta. Because these are all connected via their own list, when you change the #menu ul li style, you change all of them. But you can individualize these headings, but remember, they inherit the layout of the #menu ul li so play around with this to make each section different. To change the look of the links below the headings, you need the next style.
#menu ul ul
This establishes the outline of the first list of links to actual information. If you want this list area to have a specific background color or image, or be highlighted in some way, this is where you make those modifications. For example, if you want your overall background for the sidebar menu to be yellow and yet you want each section of links to be in a box with a background color of green, you would change it here. You influence the look of the actual list links in the next section.
#menu ul ul li
This section is the sub-list of the main list and contains the specific categories under Categories, the months under Archives, and so on. This section formats the look of the items, which are links, in the list itself. If you would like the list to have bullets, graphic images, or default squares or discs, you set this information here. Remember, these lists are lists of links and while you can change the look of the lists, you need to change the look of the link features elsewhere.
#menu ul ul li a:link
If you want to change the look of the links in the list of links under the different titles, this would be the most basic link style you would add. It might look like this in the style sheet:

#menu ul ul li a:link {color:red; font-weight: bold}

Because the above #menu ul ul li only stylizes the “look” of the list and not the link itself, you have to change the look of the link here.

#menu ul ul li a:hover
When the mouse moves over a link, you can change the way the link looks by styling the hover attribute. Many people choose to have an underline appear, or to have the colors of the words change. Others get more dramatic and have the background color change, too, or any combination of these. Beginners often set the hover to “bold” when the link isn’t bold when resting. When text is bolded, it adds weight to the size of the font and makes it slightly larger. This sudden enlarging of your text pushes the other content around, often causing the whole page to jump around a little. Be sure and bold both the inactive link (anchor) and the hover to make it stay the same size if you want the look to be bold. From there, use your imagination.

Here is an example of a basic hover effect and how to use it with this style:

#menu ul ul li a:hover {color:purple; background: yellow; text-decoration:underline}

Remember, if you have a straight a:hover styled elsewhere, it will become the parent to this style and you have to check there if you have styling problems with this link style.

#menu ul ul ul.children
Many people want to have their list of main Categories also feature the subcategories. This list of links become the “children” of the list. To stylize their specific look, which is typically to make them smaller and feature a different bullet, you make those modifications here. For example, if you had a Category called “WordPress” and you wanted two subcategories called “Themes” and “Plugins”, they would be the “children” categories and styled under this style. To style the links, the style would look like this:

#menu ul ul ul.children a:link {color:green; font-weight:normal }

To style a specific group of links, remember they have their own CSS ID, so to change the Categories section, remembering that this section has style parents that have to also be taken into consideration, it might look like this:

#categories li a:link {color:green; text-decoration:none; font-weight:bold}
#categories li a:hover {color:red; text-decoration:underline; font-weight:bold}

Using any of the specific ID tags such as #categories, #search, #archives, and #meta, you can more specifically change the look of the list and the links in each of these sections. Again, they inherit the styles from their parent #menu ul ul li a but you can still customize them if you override these styles. Experiment to get the effect you want.

Our List Of Links Menu

I really wanted to keep our sidebar layout. This involved a little more messing around with the CSS and the HTML. I needed to have the list of Categories be distinctive from the rest of the lists. WordPress already gives the different sections in your menu list of links identifiers which are not listed in the default classic style sheet. They require adding, so I added them, messed around for an hour with great frustration and then gave up. I was beaten down by the parent/child relationship of the styles. It’s so damn confusing.

The problem comes from the “inherit”. In the default layout, there are four main link lists and their sublinks listed under each. Each inherits the look of the one above it, and modifications to each one means battling with the parent style. I want the #categories and #search to look different from the others, and the others to have their own consistent look. Fighting browser bugs and the frustration of these nested inheritances, I decided to say “hell” with the nested links and I dropped them. I set up divs with the ID for each section and having a simple non-nested list underneath each one. This way, I have much more control over the end results and I don’t have to battle with the nested list/links parent/child thing. This meant I had to go into the HTML to change the codes. I decided to change them first in my test file so I could experiment some more, and then I’d make sure and make the same changes in my sidebar.php template file – another thing to add to my growing list of things to remember.

Remember, this WordPress Theme is for ME and not for the public, so I can do whatever I want. But it does give you, the innocent bystander, the idea that other options are out there.

The Footer

The footer by default in the classic WordPress theme is the credit. The same was basically true with the simple theme I’d chosen to slice and dice. Since the link to WordPress is in my meta section of links in the sidebar/menu, I wanted my own set of links at the base. I dug into my old site’s footer codes and replaced them in the footer section on my test page. When I tweak and mess with them to get them right, I’ll move them over to the footer.php template file. Another thing to add to my growing list of things to do.

Cleaning Up the Mess I Made

As you can tell, nothing remains of the original theme I used as a starting place. I’ve hacked and whacked it into my own design. In short, I’ve made a big mess of things. Now that all the styles have been set, it’s time to clean them up. Yes, there is still more tweaking and fussing to be done, but the core work is now done and the test page is starting to look like something I can work with.

To start cleaning things up, I went through the style sheet and deleted all of the colored borders I’d originally put in to help me find the different sections. Since I pretty much know where everything is now, I can get rid of these. If need help locating an area in the future, this is an easy thing to add.

Then, I double and triple checked the look to make all the little parts look like what I wanted. Sure enough, some little annoyances slipped in, but now I had something I was familiar working with, so it only took a few minutes to fix it all up. The tweaking of the CSS can go on forever.

Now it was time to attack the style sheet. I’m sure that you, like me, made notes all over the place, adding spaces and indents – well, the thing is a bit of a mess. I had notes in there left over from dealing with the nested lists in the sidebar that said things like “Damn category links are here” and “Third level nested list styles here”. I cleaned these up pretty quickly. To clean the extra and unwanted spaces, I used a simple search and replace to get rid of triple line breaks and spaces at the end of lines and so on, working the data into a format that I’m comfortable with. Some like having their CSS styles spaced just so with indents, I like clean and simple.

If you choose to optimize your style sheet, to clean it up and condense it by removing unwanted spaces and elements, do so very carefully. I recommend a multi-stage effort. Unless you are very familiar with CSS, just clean up the excessive spaces and tabs and leave the code alone. If you are experienced with CSS, you probably already know what to do, but I’ll remind you anyway. Go through the code and condense redundant declarations into a single reference with multiple selectors.

As you become more accustomed to CSS, you can get really drastic about cleaning house. I have a detailed explanation and resources to learn even more in our article on Optimizing Your Web Page.

Now that I’d set up the core look for the website theme, and cleaned up some of my mess, it was time to attack the HTML…oh, boy, more fun!

File Downloading – Avoiding the Bug and Viruses

Over 90% of all viruses today enter your computer through email. The odds of you getting a virus through email in the USA as of 2001 was 1 in 1200. Today, your file virus checking software probably caught at least two in the past month. Currently, you cannot get a virus by exploring on the Internet or visiting a web page. You can get a virus from a file you download from a web page, but not from the web page itself, though this may change in the future.

Whether you use a virus scanning program for your email and email attachments or for your safety on the Internet, get a good one. One virus can destroy your entire computer and wipe out all the information on it, wasting your time and money, not to mention all your hard work and research. Many people will spend USD $25 to $100 on a surge protector for your computer to protect it from power fluctuations, and not spend USD $30 for a virus program? Be wiser than that.

Norton Utilities and McAffee have two top of the line virus scanning programs. I’ve tried others and gone back to these two, and I stick now almost exclusively with McAffee. Their program and customer service continues to be excellent, so I’m a big fan. You can download their program right off the internet, saving you money from buying the package off the computer store shelf. As of June 2002, the cost for the basic package is about USD $29.00. That comes to about $2.40 a month for virus protection. Not bad. Download and install the program and it will remind you to update daily or whenever you tell it to. This keeps you up-to-date with the latest protection. New viruses are coming out every day and you want to be ready for each one.

DOWNLOADING FILES

The Internet is a great resource for files and software. You can get games, software updates, and all kinds of utilities and programs. You can even find a lot of fun and games to download.

A great resource for software programs is called www.tucows.com (In Israel try www.tucows.co.il ). This site offers a wide range of “shareware”. This is software you can “try before you buy”. It’s great to be able to test drive the software to see if it is really what you need. After 15 – 90 days, if you are happy with it, you can pay for the program and the manufacturers will send a registration code to enable full use of the program. You bought it, you just got to try it on first.

Shareware is available for all kinds of interests and activities on your computer. They have games, utilities to speed up or mess with your computer, graphics programs to make blah photographs into artistic wonders, entertainment and music software for creating your own CD albums or writing a song on the computer, and so many different things, the list is very long.

Some shareware software programs I have used for many years, some even for decades, include:

WinZip
A file compression program that allows you to take files and shrink them down for transfer to another computer, via email, to a CD or floppy disk, or just to make more space on your computer.
WinRAR
Another file compression program. Some find this one’s advanced features better than WinZip. We use both of them for their differences and similarities.
TclockEx
This is a freeware (no charge) program that changes your Windows taskbar clock into something useful. Instead of just the time, it shows you the day of the week, the day and month and the year. I have used this or similar programs for many years as knowing the time is nice, but I need to know what day it is.
PaintShop Pro
Probably one of the best graphic design and manipulating software programs available, and at such a great price, this program runs right up there with Adobe PhotoShop for many of its features. If you like to mess with graphics or photographs, get this program.
HotDog Pro
THE single best program I’ve ever worked with for putting together web pages and web sites. Truly powerful and worth more than its modest fee. I can’t imagine designing web pages without its powerful advanced features.

HOW TO DOWNLOAD FILES

To download a file, click on the file name. A window called “Save As” will pop up and you instruct it on where to save it on your computer. Put it somewhere where you can find it. I recommend creating a Download folder where all downloaded files are kept. You can move them somewhere else later. I usually keep the name of the file, but you can rename it to help find it in the future.

Another option is to RIGHT CLICK, and click SAVE TARGET AS. This will bring up the File, Save As window.

Once downloaded, follow the instructions on your virus scanning program to scan the file for viruses, and the installation instructions provided by the manufacturer.

Installing WordPress 1.5 and Modifying It

Wouldn’t you know it. Here I am, working my buns off to learn how to use WordPress, importing massive old articles into the database, playing around with a test site, and I’m about ready to make it go public, and WordPress releases not only a new version, but a humdinger of a new version. It requires some rethinking as well as re-tooling.

I began by installing a new test site with the new version. I tried the “normal” method of installing WordPress 1.2.2 and then “upgrading” to 1.5 but it didn’t work. After two days of messing around with it, I finally deleted everything in the directory, dropped (deleted) the tables in my database created by 1.2.2 and did a clean install of just WordPress v1.5. Worked like a charm.

The first thing I saw when it worked was the WordPress Administration’s new feature called the Dashboard. This seems to be recent posts from the developers’ forums to help you keep up with the changes and things you need to know. Nice feature, and a nice way to keep in touch with what is going on with the WordPress Community. I like it. I then went through and clicked every tab and every subsection tab to see the changes in the new version and to make all the little fussy changes and adjustments to make the site “mine”.

There are a lot of new features and the Page feature is a big improvement and change. This allows you to set up independent customizable pages that will still communicate with your database information, but they can be unique in and of themselves. The Pages work outside of the WordPress Loop and is used to create pages that don’t “fade with time” like “About”, “Contact”, “Events” and so on. This will be perfect for all of the administrative web pages I need like my own “About” and “Contact”, but also my Policies, Accessibility Policies, Reprint Requests, What’s New, and Copyright. I started to make a list as I thought of the different ways I could use this new feature.

In order for the new Page feature to work properly, the .htaccess file must be read/writable, so be sure and change it to at least 666 in order to work. When you create a new Page, it writes to the .htaccess file to add the file to your server’s redirects and rewrites. If you change the page in any way, you will have to update the changes in your .htaccess file. I learned the hard way.

Wow! WordPress Themes

In the past, everything in WordPress radiated from the index.php file in the root directory. Imagine my surprise after installing WordPress v1.5 to find that the index.php is only 4 lines long! After some digging through a lot of information, I learned that the new version uses Themes for its layout and presentation styles. Each WordPress Theme has its own index.php file found within their appropriate theme directory under the wp-content directory. And the index.php isn’t just the only file. It is now divided up into modular template files, with each “section” having its own template file.

This is actually brilliant as it protects your files from being written over during updates, and it allows you to make changes to the header or footer but not the rest of the page, but it takes a little hunting and a little learning to figure out how they all work together and how you can make them work for you. Make sure that you are working in the right Theme template directory, and that you have backups of the originals…just in case. Another lesson learned the hard way.

I realized quickly that I would have to create my own WordPress Theme as the ones that were out there were nice, but not “me”. This is the beginning of the fun part – oh, and if I have any hair left on my head when we’re done, please remind me I said this was supposed to be “fun”.

Cleaning the Template Files

I spent a lot of time redoing the template files for the theme “base” I finally decided upon. I wanted to start with as clean a plate as possible and so I hunted through the available themes and found something that had the “look” I wanted with a header, footer, single sidebar, and a wide content area. Luckily, I found Simple Clean by Rohit Kumar on the WordPress Theme Contest site. It features no graphics, no bells or whistles, just nice clean layout for me to totally change. While I tweaked and bent it into my own design, so much so that there is no evidence of Rohit Kumar’s Simple Clean theme at all, it was a great core to work with. It was a place to start.

The first thing I did was to get rid of all the horrid tabs and spaces all over the template files. While tabs within HTML and PHP are considered “standard”, trying to read through code that is tabbed 10 tabs over from the left margin makes me nuts. Things get all scrambled as text editors try to figure out what to do with all those tabs. So I got rid of them all. Remember, this is a WordPress Theme for ME, not for anyone else to use and not for release to the public. I can do whatever I want to my Theme.

I found that once I did a search and replace for all those spaces and tabs, including spaces and tabs at the end of a line of code before the line break (what good do those do anyway?), my template files shrank down tremendously. Smaller the file, faster it loads.

Now I needed to go through and make sure I knew what everything was. This wasn’t as easy as I thought it was going to be.

I posted a test post and viewed it as a web page in my Internet browser. I hit “View Source” to look at the code and printed that out. Step by step, I went through all the many pages and made a comment note about which section was which and what style applied to which section. For instance, in the header of the page, there is a CSS div called header, but there is also an H1 heading inside of the div. I made a note of where that div started and ended with a red pen on the paper. Above the header div, I found that there was a rap div and I had to go through, counting every div, to find the ending of the rap div at the end of the entire page. Since all it says there is </div>, which is useless information, I made a note that said “end of rap code”. Very simple. I traced every div and class that I could and then labeled which section I thought was which.

Then I went into my theme folder and started with the header.php template file. I traced the information in the template file through my generated HTML page. Sure, there was more information in the HTML page than in the template file, because the template file had code that generated the information from my database, but I could follow enough to figure out where the rap and header and so on began, and made a note at each place.

Just below the body tag in the header.php template file, I typed in a comment like this:

<body>
<!-- header begins -->

At the end of the header.php template file, I added another comment:

<div id="content">
<!-- sidebar ends and content in index.php begins -->

Notice that the div for content begins in the header.phptemplate file but doesn't close there, similar to the rap div. I needed to know where to find the content div if I was having a style issue with that section, so in the index.php template file, I put this at the top of the file:

<!-- content div begins in header.php -->

I may move this so it sits together with the rest of the content, depending upon what I decide to do later, but for now, I needed to know where it was so I could track down what I was doing.

I went through every template file and did the same thing, based upon my notes in my printed test page. Now it was time to hit the < a title="article on designing the CSS in the WordPress Theme" href="index.php?p=594">CSS style sheet.

Learning More About WordPress

I’ve been making a plan, and checking it twice, going to find out if I’m naughty or nice….you know the routine. The effort to convert my site from static HTML to interactive database, specifically into WordPress, has been extremely educational. In other words, I’m learning more than enough about things I wish I didn’t know. Ah, but that’s the way of the web.

Now that I have a fundamental (seriously fundamental) understanding of PHP and MySQL, I need to understand what WordPress can, and can’t, do for me.

The first place to start learning about how WordPress works is to read through the FAQs and the official documentation site, WordPress Codex. But that isn’t the only place for documentation and how-tos. Here are the sources I found to help me through this process:

When you are ready, the WordPress Support Forums will help answer questions. Trolling around the WordPress Forum, I quickly learned that a lot of people were having the same problems as I was, and if I asked the same question, I would be told that I should search the forums first for an answer. Valid suggestion, but the problem is I don’t know what I’m asking. Finding the words to ask the questions is one of the hardest parts of the asking. For instance, in printed media, the masthead is the top of the page with the title of the newspaper or magazine, with info about it. In HTML speak, it’s the header, not to be confused with the head, and here you start to see some of the problems that come with learning to speak the talk and talk the speak.

There is something very important that you need to know about the WordPress Forum, and I learned it really quick after a few spanks. It is totally run and supported by volunteers. The fact is that WordPress is free and the developers work overtime, for free, to add, upgrade, and improve the program. Support provided on the Forum is sometimes provided by the developers, but for the most part, it is by enthusiastic volunteers who love the program so much, and they, like me, feel a little guilty for getting this much power for nothing. They want to contribute and do so with their own experiences and learned expertise of the program. These are not professional customer service folks. They are not paid. A few might be behind some of the tweaks and magical programming efforts, but for the most part, they learned how to use WordPress the hard way and they want to help others not suffer as much as they did.

As non-professional support givers, they also have some expectations about visitors to the forum. After a few months hanging out there, I learned a little about those expectations.

First, they expect you to have done your homework before you post your question. Search the forums at the least, or use a search engine at the most. With so many people using WordPress now, a lot of people are posting their solutions to your same problem on their websites. The forum has been going for a couple of years, so you can search through the back archives and probably find a solution. And the WordPress Codex is still developing their table of contents, so a search there might turn up something helpful.

Second, they work really hard to understand your problem, no matter how you explain it, so give them as much information as you can. They know finding the words to describe your problem is difficult, especially for WordPress users with English as a second, third, or eighth language. Do your best to explain the problem or issue with as many of the “right” words as you can find, and they will try to figure out your problem. The article in the Codex First Steps With WordPress walks you through a basic first look at WordPress and helps you to name some of the areas. If your problem is on a live site, post a link to your site to help them help you. Also, before you post your question, realize that a lot of problems are solved by running a validation of your site. All it takes is one slip of the finger in the code and you have screwed up the look or results of your web page. Tell them you’ve validated your page, give them a link to the problem page, and describe the issue as best you can, and they will work overtime to help you out.

Third, not every expert is online on the forum all the time. The real experts come and go when they have time, since this is volunteer work. If your question is unusual, or too technical, or too specific to something few know about, then it may lie unanswered. If your question goes unanswered for a while, and you are in a hurry, then search the net or check in at the #Wordpress ICQ Channel (Direct Link) for a live chat with some WordPress experts – and yes, they are also volunteers. And you can always post another note or “bump” (type another note on the question) it up after a few days to see if anyone is now paying attention. Be patient. They are doing the best they can.

Now that I learned how to ask questions about WordPress and where to get help for WordPress, let’s get into some of the other lessons I learned along the way.

Things I Learned About WordPress

In preparation for installing and setting up WordPress for our website, I had to learn how different functions…well, function. The first part of learning about the functions were learning their names.

Templates/Template Files
To me, a web page is made up of html pages and style sheets. I was now entering a new world where something called PHP pages become HTML pages and they aren’t “web pages” but template files. In its most simplest form, a WordPress template file can generate every single web page on your site. The core template is called index.php and within it are the codes and tags that go into the database and collect information and then post it so you can see it on your site. The results are found within a generated HTML page. Different template files can be used to create different results, and WordPress uses modular template files to break up a single document into different parts, like the header, footer, sidebar, and main content page. For more info on templates, check out the WordPress Codex article on Templates.
Template Tags
Inside of WordPress template files are bits of PHP code that go into your database and collect the information to display on your generated HTML page. These are called template tags. One example is the template tag found in the title of your page’s header. Instead of looking like:

<h1><a href="http://example.com/index.php"My Website Name</a></h1>

It uses the bloginfo() template tag to generate the information as set up in your WordPress Administration Options:

<h1><a href="<?php bloginfo('url'); ?"><?php bloginfo('name'); ?></a></h1>

This is a very simple usage. The WordPress template tags are very powerful and some are flexible, allowing you to use different parameters to change the end result. I’m still learning about these, but you can find more information about them at Codex’s Template Tags.

The WordPress Loop
You will find a lot of references to the WordPress Loop in the documentation and on the forum. You can probably understand what this is better than I can, but basically it is a loop of PHP code that says, if this, go do that, and then if this, go do that, and go back and check again that all the conditions have been met and then spit out the web page so people can see the nice results. It uses conditional tags which set the conditions that are to be met to generate the information.
WordPress Pages
It took me a while to figure out the difference in WordPress between a page and a Page, but basically a page is a normal post created by running through the WordPress Loop. Okay, just another web page on your site. An individual Page is not so much static as it is outside of the Loop. It doesn’t grow old and stale and move from the front pages to the archives. A Page is used to create helpful web pages like “About”, “Contact”, “Site Policies”, “Site Map”, and other pages you need to flesh out your website.
WordPress Plugins
Plugins are bits of PHP code which do things for you within your WordPress setup. Some plugins help you fight spam, others add features, and others are just plain fun. There are even tutorials on how to write your own WordPress plugins, if you feel inclined. I’m still playing with these, but you can find WordPress plugins by searching the Internet or on the following sites:

For the most part, these plugins require you to do little but activate the plugin code and then sit back and watch it work. For others, you will have to venture into your index.php file or other template or configuration files to make a few changes. In general, the documentation that comes with most plugins is fairly specific and easy to help you make the adjustments. And who knows, you might have so much fun messing around under the hood, you might just create some fun plugins of your own.

WordPress Themes
A WordPress Theme is a collection of template files and a style sheet which create the “look” or presentation of your WordPress website. Last I heard, there were over 100 250 themes and a new contest underway, so soon there will be hundreds of themes to choose from. To use a WordPress Theme, download the Theme file and upload it to its own subfolder under wordpress/wp-content/themes/. Then go into the Administration pages and click on Presentation. Select and activate the Theme you want to use, and then look at your site. Bingo, instant makeover. Many people are starting to get into making their own WordPress Themes and I will be spending a lot of time reading about how they did it so I can customize mine to make it look like my old site, or something new.

Here are some sites that helped me learn more about WordPress Themes:

Now The Process Begins

With this information and resources by my side, it’s time to begin the process of restoring the look of my old website to the new WordPress site. I’ve only scratched the surface of what I’m going to need to know, but it’s a start. Stay tuned!