Fixed Show Sidebar button present on pages with no sidebar

Discussion in 'Closed Reports' started by CarpCharacin, Jul 24, 2017.

  1. CarpCharacin

    CarpCharacin Customer

    Before submitting a bug report we usually recommend trying to replicate the problem on a default XenForo style(if applicable) to eliminate the possibility of it being a bug related to our styles.


    Website address(optional): https://www.utahfishkeepers.us
    Bug Report Details: I have the off-canvas sidebar enabled, and the show sidebar at the bottom is present on pages with no sidebar, such as threads.
     
  2. Russ

    Russ Designer

    This is adjusted for the next version, easy fix:

    Find:

    Code:
    Copy Source
    <xen:if is="@xb_offcanvas_sidebar AND @xb_offcanvas_sidebar_button"><a  onclick="return false;" href="#" class="button xbOffCanvasSidebarToggle" />{xen:phrase show} {xen:phrase style_property_sidebar_master}</a></xen:if>
    Add the AND {$sidebar} part.
    Code:
    Copy Source
    <xen:if is="@xb_offcanvas_sidebar AND @xb_offcanvas_sidebar_button AND {$sidebar}"><a  onclick="return false;" href="#" class="button xbOffCanvasSidebarToggle" />{xen:phrase show} {xen:phrase style_property_sidebar_master}</a></xen:if>
     
    CarpCharacin likes this.

Let's work together on your next project

Contact us today to talk about how we can help you