Title: winterwisp's Replies | WordPress.org

---

# winterwisp

  [  ](https://wordpress.org/support/users/winterwisp/)

 *   [Profile](https://wordpress.org/support/users/winterwisp/)
 *   [Topics Started](https://wordpress.org/support/users/winterwisp/topics/)
 *   [Replies Created](https://wordpress.org/support/users/winterwisp/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/winterwisp/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/winterwisp/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/winterwisp/engagements/)
 *   [Favorites](https://wordpress.org/support/users/winterwisp/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Get attachment url in large size not working](https://wordpress.org/support/topic/get-attachment-url-in-large-size-not-working/)
 *  Thread Starter [winterwisp](https://wordpress.org/support/users/winterwisp/)
 * (@winterwisp)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/get-attachment-url-in-large-size-not-working/#post-2251031)
 * I figured it out I think.
 * I don’t fully understand what I did but it works for me and hopefully it helps
   someone:
 *     ```
       <?php
       	global $wp_query;
       	$postid = $wp_query->post->ID;
       	$imageid = get_post_meta(68, 'Slide 1 image', true);
       ?>
   
       <?php
       	$imageUrl = wp_get_attachment_image_src( $imageid, array(640, 320));
       	echo '<img class="CustomClassGoesHere" src="'; echo $imageUrl[0]; echo '"/> '; ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Get attachment url in large size not working](https://wordpress.org/support/topic/get-attachment-url-in-large-size-not-working/)
 *  Thread Starter [winterwisp](https://wordpress.org/support/users/winterwisp/)
 * (@winterwisp)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/get-attachment-url-in-large-size-not-working/#post-2251025)
 * Thanks so much for clarifying that. It’s definitely pulling the correct image
   now!
 * However, it outputs the entire image code and I was wondering if I could add 
   a custom class to the image?
 * Thanks!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Option to choose from logo or blogname?](https://wordpress.org/support/topic/option-to-choose-from-logo-or-blogname/)
 *  Thread Starter [winterwisp](https://wordpress.org/support/users/winterwisp/)
 * (@winterwisp)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/option-to-choose-from-logo-or-blogname/#post-1785581)
 * Hi there,
 * I know where it is. What I mean is I would like to find code similar to this:
 * > <?php if (get_option(‘uwc_logo_header’)) { ?>
   >  <div id=”title”> “><img />” 
   > title=”<?php bloginfo(‘name’); ?>” alt=”<?php bloginfo(‘name’); ?>” /> </div
   > > <?php } else { ?> <div id=”title”> “><?php bloginfo(‘name’); ?> </div> <?
   > php } ?>
 * I would really appreciate it if someone could direct me to a tutorial or something
   that has the code for the header.php and the functions.php
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)