- This topic has 5 replies, 3 voices, and was last updated 7 years, 7 months ago by Hash.
- AuthorPosts
- October 10, 2016 at 3:09 pm #780morytoxParticipant
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
October 10, 2016 at 9:53 pm #784HashKeymasterYou 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%
October 11, 2016 at 3:01 pm #786morytoxParticipantThe 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.
October 11, 2016 at 9:35 pm #791HashKeymasterThe 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.
October 27, 2016 at 10:25 pm #926FreeflyParticipantHello, 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.
October 31, 2016 at 2:02 pm #939HashKeymasterHi,
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.
- AuthorPosts
- You must be logged in to reply to this topic.