Title: Adding code snippet to homepage
Last modified: October 27, 2017

---

# Adding code snippet to homepage

 *  [webatar1](https://wordpress.org/support/users/webatar1/)
 * (@webatar1)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/adding-code-snippet-to-homepage/)
 * Hi, where do you add code snippets to hardcode elements into the homepage?
 * I have the shiftnav mobile menu plugin activated, but i wish to use the custom
   menu instead of the default one so that i can position the menu underneath the
   site branding.
 * The code provided is either html or php (as follows), but i’m not sure where 
   to place either of these. Where would i place either of the following to render
   it to the homepage? I’m using the avata theme.
 *     ```
       <?php shiftnav_toggle( 'shiftnav-main' , 'Toggle Menu' , array( 'icon' => 'bars' , 'class' => 'shiftnav-toggle-button') ); ?>
   
       or 
   
       <a><i class="fa fa-bars"></i> Toggle Menu </a>
       ```
   
    -  This topic was modified 8 years, 10 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

Viewing 1 replies (of 1 total)

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [8 years, 10 months ago](https://wordpress.org/support/topic/adding-code-snippet-to-homepage/#post-9626064)
 * > I’m using the avata theme.
 * That part isn’t supported here. For pro or commercial product support please 
   contact the author directly on their site.
 * As the author is aware, commercial products are [not supported in these forums](https://make.wordpress.org/support/handbook/forum-welcome/#do-not-post-about-commercial-products).
   As you are their customer I am sure they will have no problem supporting you 
   there.

Viewing 1 replies (of 1 total)

 The topic ‘Adding code snippet to homepage’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/adding-code-snippet-to-homepage/#post-9626064)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
