How can I prevent default panels from appearing on select pages?
Hide a Single Panel:
Edit Existing Default Panel
- Open the Panels manager and open the default panel you want to hide.
- Click the Source button on the editor toolbar.
- Add the following code to the beginning of the content area: <div id="hide1">
- Add </div> at the end of the content area.
Create New Panel
- Open the Panels manager.
- Add a new Panel and give it the following title: Hide Default Panels
- Click the Source button on the editor toolbar and add the following code:
<script type="text/javascript">
document.getElementById("hide1").style.display = "none";
</script>
- Click the Save icon in the upper right corner of the screen.
- Using the Panel Placement tab, select the page or pages you want to place the panel and then select "Footer" as the Panel Position.
Hide Multiple Panels:
Edit Existing Default Panels
- Open the Panels manager and open the default panels you want to hide.
- Click the Source button on the editor toolbar.
- Add the following code to the beginning of the content area of the first panel: <div id="hide1">
- Add </div> at the end of the content area.
- Add the following code to the beginning of the content area of the next panel: <div id="hide2">
- Add </div> at the end of the content area.
- Do this for each panel you want to hide, increasing the number in the ID by one each time.
Create New Panel
- Open the Panels manager.
- Add a new Panel and give it the following title: Hide Default Panel
- Click the Source button on the editor toolbar and add the following code:
<script type="text/javascript">
document.getElementById("hide1").style.display = "none";
document.getElementById("hide2").style.display = "none";
</script>
- Add a new line between the script tag for each panel. Be sure the ID's match the ones used in the Panel source code.
- Click the Save icon in the upper right corner of the screen.
- Using the Panel Placement tab, select the page or pages you want to place the panel and then select "Footer" as the Panel Position.
Previous Page