10 Apr 2011
by connerin Uncategorized
Hello World
Wow. Just learned an awesome WordPress feature, Shortcodes! Shortcodes are super simple to create and I just know I’m going to have many many opportunities to use these in the future. As a test the “Hello World” you see above was created with a simple shortcode and I’ll show you how simple it is to create a short code.
Shortcodes are created in the functions.php file in your theme directory. Open functions.php up and pick a place to put your code. The first thing you are going to do is create a simple function. Try this one.
function Hello() {
return “Hello World”;
}
Then below this you will create the shortcode by typing this…
add_shortcode( ‘hw’, ‘Hello’);
As you can see the first parameter will be the name of your shortcode (hw). The next parameter is the function that your shortcode will execute (Hello).
Now you are free to use this shortcode in any of your pages or posts. Just place Hello World anywhere in your posts or pages in the wordpress editor. When you go to view the post or the page you will see “Hello World”.
30 Mar 2011
by connerin Uncategorized
If you ever want a challenging and frustrating experience try moving a dozen or so websites from one server to another. But not so fast. These have to be sites you did not develop yourself. A few will be simple straight up html sites but most will be coded in some cms or even be flash based. The cms sites could be wordpress or moveable type or the rare “open realty” platform. Most will have database backends that you also have to move. File permissions will mysteriously change and sites that should move easily will often not even show up in the browser once moved.
But despite all this it is your job to get these sites moved and working correctly on their new server home. You will have to use google extenselvely and learn from the trials of others who have attempted this foolhardy task. If you feel you just can’t do it or a site is giving you problems and you can’t figure it out, fear not. There is a wonderful service called Website Movers that will do all of this for you. It will cost about $60 a site, but sometimes that is money well spent. Now just convince your boss to spend it.
27 Mar 2011
by connerin Uncategorized
I recently have been struggling with a site I’ve been working on. My trouble has been that a few of the background images are not showing up in internet explorer. This happens in any version of internet explorer. It took me too long to figure out why this was happening but here it is. Your css might look something like this:
#myDiv {
background:url(images/myImage.png)top left no-repeat;
}
This will not show up in internet explorer. Here’s the fix:
#myDiv {
background:url(images/myImage.png) top left no-repeat;
}
Notice the space between “.png)” and “top”. That’s all you need to do to get your background images to show up in internet explorer.
19 Feb 2011
by connerin Uncategorized
Welcome to the online home of Conner Tolley. This is a place where I will discuss my thoughts on the web and more specifically web design and development. I work as a web developer and love my job. I love the web culture and all the exciting new discoveries and techniques that are out there.