Title: Need help adding code to current theme
Last modified: August 22, 2016

---

# Need help adding code to current theme

 *  [yieldpoint](https://wordpress.org/support/users/yieldpoint/)
 * (@yieldpoint)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/need-help-adding-code-to-current-theme/)
 * hi,
 * i’m wondering if it’s possible to add some code to the following. What I’m looking
   to do is add option for image hover titles in addition to the one specified in
   the following code:
 * case ‘Portfolio Content’:
    default: ?> <img src=”<?php echo $small_image_url[
   0]; ?>” alt=”” class=”portfolio_img”/>
 *  <div class=”mask”>
    ID); ?>”> <h6><?php //echo $portfolio_item->post_title?>
   </h6> <span class=”button white”><?php _e( ‘View Project’, THEMEDOMAIN ); ?></
   span>  </div>
 *  <?php
    break; //end Portfolio Content
 * any help will be greatly appreciated, thanks!

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 6 months ago](https://wordpress.org/support/topic/need-help-adding-code-to-current-theme/#post-5442401)
 * If you add that following code you’ll crash your website. Which theme are you
   looking for support with?
 *  Thread Starter [yieldpoint](https://wordpress.org/support/users/yieldpoint/)
 * (@yieldpoint)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/need-help-adding-code-to-current-theme/#post-5442403)
 * no, this code was taken from my existing website’s theme, which works just fine
   as is. all i need to know is what do i need to add to this in order to have various
   title options aside from “View Project”? as it stands, when i hover over images
   from this particular page, all i can have is “View Project” as the hover title
   but I don’t just want to change the text (i can simply do that), i actually want
   to have more title options for each image. is this possible?
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 6 months ago](https://wordpress.org/support/topic/need-help-adding-code-to-current-theme/#post-5442404)
 * And which theme is that?
 *  Thread Starter [yieldpoint](https://wordpress.org/support/users/yieldpoint/)
 * (@yieldpoint)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/need-help-adding-code-to-current-theme/#post-5442419)
 * i’m sorry for my ignorance, but why is that important? i just need to know how
   and if it’s possible, thank you.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 6 months ago](https://wordpress.org/support/topic/need-help-adding-code-to-current-theme/#post-5442420)
 * These are the themes we support: [https://wordpress.org/themes/](https://wordpress.org/themes/)–
   If your theme doesn’t fall under there then we don’t support it.
 *  Thread Starter [yieldpoint](https://wordpress.org/support/users/yieldpoint/)
 * (@yieldpoint)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/need-help-adding-code-to-current-theme/#post-5442423)
 * ok, like i said, sorry for my ignorance. i’m still new to all of this and just
   thought i could get help with coding. i will seek help on another site. thanks
   anyway for taking the time to reply.
 * take care,
    jessica
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 6 months ago](https://wordpress.org/support/topic/need-help-adding-code-to-current-theme/#post-5442424)
 * Before you copy & paste the code into your theme’s files make sure the code has
   no syntax errors in, by checking it through this tool: [http://www.piliapp.com/php-syntax-check/](http://www.piliapp.com/php-syntax-check/)
 *  Thread Starter [yieldpoint](https://wordpress.org/support/users/yieldpoint/)
 * (@yieldpoint)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/need-help-adding-code-to-current-theme/#post-5442425)
 * thanks andrew. i am aware of that – the above code i provided is an excerpt taken
   directly out of my theme’s index.php file, so no errors in it – i was simply 
   looking at how to code in more options for titles, that’s all.

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

The topic ‘Need help adding code to current theme’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [hover](https://wordpress.org/support/topic-tag/hover/)
 * [image title](https://wordpress.org/support/topic-tag/image-title/)
 * [selections](https://wordpress.org/support/topic-tag/selections/)

 * 8 replies
 * 2 participants
 * Last reply from: [yieldpoint](https://wordpress.org/support/users/yieldpoint/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/need-help-adding-code-to-current-theme/#post-5442425)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
