Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-29-2011, 07:10 AM   #1
Nicky
Judge Jury and Executioner
 
Nicky's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: Sweden
Posts: 30,069
Fuck, any Wordpress guru around?

I have been trying to figure out how to change the size of the "featured image" in the wordpress twenty ten theme. I want to set a size of 300x168 but whatever I try It just keeps going back to 150x150.

Any help is appreciated.
__________________

gfynicky @ gmail.com
Nicky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2011, 07:14 AM   #2
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
in the Media settings, did you try changing thumbnail size?
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2011, 07:39 AM   #3
tonyparra
Confirmed User
 
tonyparra's Avatar
 
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
i dont even mess around with its a pain try this:

1) install simple post thumbnails
2) set size of thumbnail
3) set code in theme

5mins of work and then you can simply copy and paste thumbnail urls or upload if you really want too
__________________

High Performance Vps $10 Linode
Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot
tonyparra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2011, 08:30 AM   #4
xec
Registered User
 
Join Date: Dec 2005
Posts: 37
Add to style.css
.wp-post-image {
width: 150px;
height: 150px;
}
Might also want to adjust the size in your Media settings, so you won't get ugly stretched featured images.
xec is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2011, 08:40 AM   #5
Sid70
Downshifter
 
Sid70's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Road trip
Posts: 16,413
Our Australia office is within a reach of skype call to settle it down.
__________________
Русня, идите нахуй!
Sid70 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2011, 08:49 AM   #6
Nicky
Judge Jury and Executioner
 
Nicky's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: Sweden
Posts: 30,069
Quote:
Originally Posted by xec View Post
Add to style.css
.wp-post-image {
width: 150px;
height: 150px;
}
Might also want to adjust the size in your Media settings, so you won't get ugly stretched featured images.
This didn't do anything. The feature image is still 150x150.(I ofc changed the 150px in your example to the size I wanted)
__________________

gfynicky @ gmail.com
Nicky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2011, 09:00 AM   #7
xec
Registered User
 
Join Date: Dec 2005
Posts: 37
Quote:
Originally Posted by Nicky View Post
This didn't do anything. The feature image is still 150x150.(I ofc changed the 150px in your example to the size I wanted)
Try
.wp-post-image {
width: 300px !important;
height: 168px !important;
}
and it should do it. Otherwise
xec is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2011, 11:49 AM   #8
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
I never used the twenty ten theme so I really don't know what featured image are you talking about, but I did some research and it seems it's a fucking mess, quite unexpected since you would expect a flawless theme. Anyway, just do this:

Code:
if ( function_exists( 'add_theme_support' ) ) { // Added in 2.9
	add_theme_support( 'post-thumbnails' );
	set_post_thumbnail_size( 150, 150, true ); // Normal post thumbnails
	add_image_size( 'myfeatured', 300, 168 ); // Permalink thumbnail size
}
and then in your theme's single.php and index.php (ie under the title of the post)

Code:
<?php the_post_thumbnail('myfeatured'); ?>
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2011, 11:50 AM   #9
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by xec View Post
Try
.wp-post-image {
width: 300px !important;
height: 168px !important;
}
and it should do it. Otherwise
that should work, but images would look like shit if they're created at 150x150px
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2011, 12:17 PM   #10
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
http://www.wpmods.com/tips-on-using-...featured-image
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2011, 12:23 PM   #11
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by holograph View Post
that's EXACTLY what I posted 3 posts above
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2011, 01:47 PM   #12
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
Quote:
Originally Posted by harvey View Post
that's EXACTLY what I posted 3 posts above
You are absolutely right! I'm code blind on this board
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2011, 01:49 PM   #13
tonyparra
Confirmed User
 
tonyparra's Avatar
 
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
Quote:
Originally Posted by harvey View Post
that's EXACTLY what I posted 3 posts above
do what harvey says or be lazy like me
__________________

High Performance Vps $10 Linode
Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot
tonyparra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2011, 04:51 PM   #14
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
someone needs to readup on the post thumbnail
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2011, 04:58 PM   #15
VladS
Available for Coding Work
 
VladS's Avatar
 
Industry Role:
Join Date: Jun 2008
Posts: 1,435
Did you check out the functions.php file?
__________________
<developer> MechBunny / KVS / PHP / MySQL / HTML5 / CSS3 / jQuery
Email: vlad [at] dangerouscoding.com
Telegram: @dangerouscoding
VladS is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2011, 02:18 PM   #16
Nicky
Judge Jury and Executioner
 
Nicky's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: Sweden
Posts: 30,069
Quote:
Originally Posted by harvey View Post
I never used the twenty ten theme so I really don't know what featured image are you talking about, but I did some research and it seems it's a fucking mess, quite unexpected since you would expect a flawless theme. Anyway, just do this:

Code:
if ( function_exists( 'add_theme_support' ) ) { // Added in 2.9
	add_theme_support( 'post-thumbnails' );
	set_post_thumbnail_size( 150, 150, true ); // Normal post thumbnails
	add_image_size( 'myfeatured', 300, 168 ); // Permalink thumbnail size
}
and then in your theme's single.php and index.php (ie under the title of the post)

Code:
<?php the_post_thumbnail('myfeatured'); ?>
This did not work. This is driving me crazy
__________________

gfynicky @ gmail.com
Nicky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2011, 02:45 PM   #17
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by Nicky View Post
This did not work. This is driving me crazy
it is IMPOSSIBLE that it doesn't work, it's the bare bones of the post-thumbnail function. You must be doing something wrong here. Now that I check what I posted, I noticed I didn't say the first snippet of code goes in your functions.php file, while the second goes in your theme's files.

sorry if this was the issue, sometimes I just give things by already known
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2011, 02:56 PM   #18
BSleazy
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
Quote:
Originally Posted by Nicky View Post
This did not work. This is driving me crazy
ICQ me and I'll get it to work if you're still having a problem.
__________________
icq 156131086
BSleazy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.