Title: Help with adding code to homepage?!
Last modified: August 20, 2016

---

# Help with adding code to homepage?!

 *  [ansgbaldwin](https://wordpress.org/support/users/ansgbaldwin/)
 * (@ansgbaldwin)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/help-with-adding-code-to-homepage/)
 * Hi,
 * I’m trying to add a “bestsellers”/”featured products” slider to my homepage. 
   I understand that I need to add the following code to my homepage:
 *     ```
       [etheme_featured]
       [etheme_new title="Latest Products" ]
       ```
   
 * But I can’t seem to work out how??
 * Here is the code for my homepage:
 *     ```
       <div>[layerslider id="1"]</div>
       <div class="banner one-half">
           <img src="[etheme_template_url]/images/assets/b1.jpg" alt="" />
           [etheme_btn title="Shop Now" url="test_url" class="active"]
       </div>
       <div class="banner one-half last">
           <img src="[etheme_template_url]/images/assets/b2.jpg" alt="" />
           [etheme_btn title="Shop Now" url="test_url" class="active"]
       </div>
       <div class="clear"></div>[etheme_featured][etheme_bestsellers][etheme_new title="Latest Products" ]
       ```
   
 * _[please mark any posted code – [http://codex.wordpress.org/Forum\_Welcome#Posting\_Code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)]_
 * If anyone could help then that would be great!
 * Many thanks!

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

 *  [Hennessey Digital](https://wordpress.org/support/users/wpthemesnz/)
 * (@wpthemesnz)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/help-with-adding-code-to-homepage/#post-3449421)
 * This are called shortcodes:
 *     ```
       [etheme_featured]
       [etheme_new title="Latest Products" ]
       ```
   
 * If you use these in your theme file directly, use them this way:
 *     ```
       <img src="<?php echo do_shortcode('[etheme_featured]'); ?>/images/assets/b2.jpg" alt="" />
       ```
   
 * or
 *     ```
       <div class="clear"></div><?php echo do_shortcode('[etheme_featured][etheme_bestsellers][etheme_new title="Latest Products" ]'); ?>
       ```
   
 *  Thread Starter [ansgbaldwin](https://wordpress.org/support/users/ansgbaldwin/)
 * (@ansgbaldwin)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/help-with-adding-code-to-homepage/#post-3449510)
 * thanks!

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

The topic ‘Help with adding code to homepage?!’ is closed to new replies.

## Tags

 * [Coding](https://wordpress.org/support/topic-tag/coding/)
 * [homepage](https://wordpress.org/support/topic-tag/homepage/)

 * 2 replies
 * 2 participants
 * Last reply from: [ansgbaldwin](https://wordpress.org/support/users/ansgbaldwin/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/help-with-adding-code-to-homepage/#post-3449510)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
