Home Forums Square Change default Layout of Pages

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #780
    morytox
    Participant

    Hi,

    I try to build a WordPress Community Page including BBPress, Buddypress and Events Manager. All of this Plugins are using the dafault page Tamplate, which is based on the Sidebar layout with a #primer width: 69%;
    I do not want to override the sidebar layout styles in case some of my additional pages will use the sidebar layout, so is it possible to change the default page layout to the 100% width and use the sidebar layout on demand within page creation interface?

    Hope that will work!
    Best regards,

    mory

    #784
    Hash
    Keymaster

    You can do it either by modifying the template file of the buddypress, bbpress. They have standard method of overwriting the file via theme file. But this one is complicated who does not know coding.

    The best solution would be CSS. Each page generates a unique class name in the body. you can use this class name and then change the width of the primary and secondary or even hide secondary using display:none css incase of primary width to be 100%

    #786
    morytox
    Participant

    The second way is what i did temporarily . The problem is, that if i want to create a simple page with sidebar, the basic css is already altered. Due the fact, that the version without sidebar has an additional class to the basic class, it is not that simple to just change the basis. Can you tell me the location within the files where you match the layout designs (the thing below the editor in the page creation) to its corresponding classes ? Perhaps i can change the default one there. I have basic understanding in html/php/wordpress structure. So it might be possible to figure out a way that fits my requirements.

    #791
    Hash
    Keymaster

    The way it work is that it will generate a class named sq_right_sidebar, sq_left_sidebar, sq_no_sidebar, sq_no_sidebar_condensed on the body based on the layout that you select at the end of the page editor.

    If you search with the above class name in the style.css, you should be able to find all the css relating to them.

    #926
    Freefly
    Participant

    Hello, I have a very similar problem with albums from the envira gallery. When opening galleries from the album the gallery will always use the default sidebar layout as mentioned by the thread starter. How can the default layout be set to sq_no_sidebar? Thanks for your support.

    #939
    Hash
    Keymaster

    Hi,

    It seems like the plugin you created make use of custom post type and all the new created post type will show with default right sidebar layout.

    You will need to add custom CSS to make the gallery pages full width.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.