Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Adding code snippet to homepage

Discussion in 'Misc WordPress Requests' started by webatar1, Oct 27, 2017.

  1. webatar1


    Adding code snippet to homepage, by webatar1

    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') ); ?>


    <a><i class="fa fa-bars"></i> Toggle Menu </a>

    Adding code snippet to homepage

Share This Page

Monarch Social Sharing Plugin