Hide hero div on every other page besides the home page

2 Comments

  • Duke Oliver

    Set the div to be display:none in your CSS

    Then on the Home Page, insert something like this at the top above the rest of your HTML:

    <style>
    .div-name-here {
    display: block;
    }
    </style>

    It will change the display value of that particular div to 'block' (or whatever value you want to use) whenever the page is loaded. You'll have to experiment with whatever works with your code

    2
  • Wes Drury

    Hi Nathan - You can use a little JQuery here:

    if (window.location.href != "https://bevmd.zendesk.com/hc/en-us") {
    $('header_div').hide();
    }

    1

Please sign in to leave a comment.

Powered by Zendesk