homepage Welcome to WebmasterWorld Guest from 54.161.192.61
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / WordPress
Forum Library, Charter, Moderators: lorax & rogerd

WordPress Forum

    
Can't Add Thumbnails
Planet13

WebmasterWorld Senior Member planet13 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4436304 posted 5:41 pm on Apr 2, 2012 (gmt 0)

Hi everyone:

I am trying to add thumbnails to my theme and unfortunately I can't seem to be able to assign them. I think my theme has kind of a weird functions.php file and that MIGHT have something to do with it.

I have added:

add_theme_support( 'post-thumbnails' );

to my themes functions.php file.

And I have uploaded a Feature Image to a post.

But I don't see anyway to assign that featured image as a thumbnail (it shows in the body of the post fine, but when I look on the category page, it instead shows the default "no image available" where it should be showing a thumbnail.

Any help appreciated.

BTW: I am using WordPress 3.3.1. and the theme is called Magasin Uno Reloaded 1.1 but the creator doesn't seem to offer any support since itis a free theme.

Thanks in advance.

 

Planet13

WebmasterWorld Senior Member planet13 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4436304 posted 6:33 pm on Apr 2, 2012 (gmt 0)

BTW: I have tried adding the following code:

if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails' );
}

I have put it into these TWO different files:

/wp-content/themes/magasin-uno-reloaded/functions.php

/wp-content/themes/magasin-uno-reloaded/includes/functions.php

But still does not show up.

How can i tell if this function:

add_theme_support

Actually exists? Should I look in the theme's functions.php file? (It ain't in there). I have also looked in the includes//functions.php and it doesn't seem to be in there, either. Maybe i have to add that function somewhere?

Planet13

WebmasterWorld Senior Member planet13 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4436304 posted 2:18 pm on Apr 3, 2012 (gmt 0)

Well, for what it is worth, the problem was that I was trying to create featured images by hotlinking to them. Unfortunately,wordpress doesn't allow you to create thumbnails from an image that you hotlink to. You have to use the browser upload feature and actually upload it (apparently).

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4436304 posted 3:49 pm on Apr 3, 2012 (gmt 0)

Well, yeah, basically no thumbnail image exists until you upload it. Additionally hotlinking is generally a bad idea unless you have the permission of the source. Basically what you're doing is stealing their image to display on your site, and using their bandwidth to do it. One of these days you'll open the page and see a "replacement - no - stealing - allowed" image in it's place when they figure it out and add hotlink protection.

Planet13

WebmasterWorld Senior Member planet13 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4436304 posted 4:48 pm on Apr 3, 2012 (gmt 0)

Hi ya, rocknbill:

Basically what you're doing is stealing their image to display on your site, and using their bandwidth to do it.


You are unfortunately giving me too much credit :)

What you had suspected me of doing (hotlinking to someone else's image) would probably have taken some amount of aptitude - something I seem to be bereft of lately. :(

I was actually hotlinking to ONE OF MY OWN PHOTOS that was already in my coppermine gallery on the same server - just in a different directory.

Since I wanted to save on disk space (by not having to upload the image twice in to two different locations), I thought I could just hotlink to one of my own images.

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4436304 posted 3:41 pm on Apr 4, 2012 (gmt 0)

No suspicion intended, education. Many people do this and don't even realize what they are doing, or even consider it might be wrong. Hotlinking by definition is linking to a resource on an external server.

If your coppermine gallery is on the same domain, you can just use

/path-to/coppermine/images/01/12/file.jpg

... but if it's a dedi or VPS and it's actually a different domain (but same server,) yes you'll have to use the full URL.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WordPress
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved