![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Judge Jury and Executioner
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
|
in the Media settings, did you try changing thumbnail size?
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Downshifter
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.
__________________
Русня, идите нахуй! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Judge Jury and Executioner
Industry Role:
Join Date: Mar 2003
Location: Sweden
Posts: 30,069
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Registered User
Join Date: Dec 2005
Posts: 37
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
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 } 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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
|
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
|
Quote:
__________________
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
|
You are absolutely right! I'm code blind on this board
![]()
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Available for Coding Work
Industry Role:
Join Date: Jun 2008
Posts: 1,435
|
Did you check out the functions.php file?
__________________
<developer> MechBunny ![]() ![]() Email: vlad [at] dangerouscoding.com Telegram: @dangerouscoding |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
Judge Jury and Executioner
Industry Role:
Join Date: Mar 2003
Location: Sweden
Posts: 30,069
|
Quote:
![]()
__________________
gfynicky @ gmail.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Confirmed User
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
|
ICQ me and I'll get it to work if you're still having a problem.
__________________
icq 156131086 |
![]() |
![]() ![]() ![]() ![]() ![]() |