Latest From Blogigs - Adding Thumbnails To WordPress 3 Default Theme
Latest From Blogigs - Adding Thumbnails To WordPress 3 Default Theme |
Adding Thumbnails To WordPress 3 Default Theme Posted: 06 Jul 2010 01:37 AM PDT Image thumbnails has been built in as default since WordPress 2.9 and of course the latest WordPress 3. However, even when the function is available, most themes, including the default theme, do not call up the function for reasons known only to the designers. Users would have expected that since the function is available, themes that claim to be WordPress 3 compatible should have this function enabled by default. Whether they use the function or otherwise is the user’s preference. As it is, those who are using the default WordPress 3 Theme, Twenty Ten, and wants to insert thumbnails to their post in the front page will have to add in the codes to call up the function on their own. Though it is not too complicated a process, newbies are advised to keep a copy of the original as backup. WordPress 3 default Theme is built a little bit differently from the previous Kubrik Theme. Because this Thheme can support child themes, there is a file called the loop php that holds what used to be in the Index php. To add the call up of the image thumbnails, we must add in the php codes in loop php and not the Index php. Getting The Image Thumbnail To Show. After writing your post, upload your image the usual way, that is by clicking the ‘Add an image’ icon on the top of your post editor. When the image has been uploaded, click on the ‘Use As Featured Image’ link instead of the ‘Insert Into Post’ like you usually do. Once you completed that, you should see an image at the bottom right hand corner of your New Post page. That will be the image that will appear as the thumbnail. However, it will not be showing up as yet. That is because the codes that calls up the image is not included in the Theme. Inserting The Codes. Under Appearance – Editor, open the loop php. Scroll down until you se these comment.
Under this, scroll down further until you see this line
Immediately AFTER this line copy and paste in this line of codes.
I have added the array of 200, 160 which means the thumbnail will be automatically and proportionally re-sized to 200 x 160 px depending on the size of your actual image. It will also appear on the left side of your post in the front page. Styling The Image Layout. The thumbnail appears on the top left corner of your post which looks kind of odd. To flush it and blend the image with your text, open your Style css file. Copy and paste these at the very bottom of your style sheet.
.post_thumbnail { This will give your thumbnails a nice frame and blending in nicely with your post. Using The Same Image In Single Posts Page With that done, you now have a small thumbnail image in your front page. The single post page wil not have any image unless you insert one like you do the usual way. However, do not insert the image on the top of all your tex or else you will have 2 image sticking together in the front page. One the Thumbnail and two, the image you inserted. It will be better to insert any other images one or two paragraphs below. To save all this hassle of using 2 images for one post, you can have the same image that you have used for your Thumbnail as the image for the post. This image can be re-sized automatically to be bigger that the thumbnail so it looks better in your whole post. To get the same image to show in your singles post with a different size, open your singles php file in your Theme editor. Same thing, look for this line,
Immediately AFTER that line copy and paste in this line
This time, the size of your original image will be re-sized to 300 by 225 pixels, no matter what the original size of the image is. You can of course reduce or increase the size by changing the array values but then it might distort the picture bit if it is out of proportion. A small disclaimer here. I haven’t tested these in any other themes except the Twenty Ten, but I think it should work with all themes that are compatible with WordPress 3. Have fun adding and using thumbnails for the default WordPress 3 theme, Twenty Ten.
Related posts:
|
To Make Money Online, You Don’t Have To Blog About Making Money Online Posted: 05 Jul 2010 07:05 AM PDT I don’t like the title of this post. It has way too many words, but what the hell, I’ll cut it down with a Custom Title Tag and just call it Blog About Making Money Online to please big Daddy. A topic that has been written million times over, I still find it strange the misconception of bloggers who thinks that to make money online, they must be blogging about making money online. It is not to say that MMO blogs do not make money. They do, but first you have to brand yourself to the status equivalent of a dot com mogul or at least if not as famous, have people believing in what you say. To have people actually believing in what you say, you must have something others do not process. Be it the charisma, the confidence or simply the god given gift of gab, or in this case the gift or words. You should possess the ability to convince the birds perching on the tree to come down and feed from your palms. But then, thinking back, if you have that kind of ability, you do not need to be blogging at all, do you? So then, why do people who wants to make money online blogs about making money online. Tell you why. It is a glamorous topic. If they can talk about your money making prowess in the Net, and people believe them, they attain a certain level of ‘fame’ among their circle. It gives their ego a much needed kick. It does not matter even if they are making peanuts from their blog that is suppose to teach people to make money. There are plenty of tips to write about and people do not mind reading the same old tales over and over again. There’s another very strange phenomena among MMO bog readers. Not even 1 percent dares disagree with those repeated tips and tell the blogger outright that 9 out of those 10 tips do not work. None dare to ask the blogger to show some solid prove of their earnings to prove what they have been teaching is actually working for them. 99 percent of the commenters will be patronizing the blogger by saying something nice like, ‘Good Tips, I will try them out”. I will bet my bulging belly that no one is going to try it like they say because one, they have read those tips a zillion times and maybe two, they have already tried it and they know it doesn’t work. But still, they will make a very ‘encouraging’ comment. Why? I think I know why. All their commenters comes from the same clique or community if you want to make it sound better. They are all MMO bloggers and MMO bloggers wannabes. They do not want to risk their reputation by contradicting because they are all writing the same things! OMFG! Ha Ha..and another Ha. Glory to my gout infected big toe, the mystery is finally solved! I am a genius! Anyway, on a more serious note, real money makers seldom like to blog about making money. A guy with 100 Adsense blogs making him $100,000 monthly will not blog about how he is doing it it. A guy with 200 sites promoting 200 affiliate products which makes him $200,000 monthly will not boast about it. The only guy who blogs about making money is the guy who is trying desperately trying to sell you something and that something will always be something that will supposedly make you money, tons of money.
Related posts:
|
You are subscribed to email updates from Online Money with WordPress To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |