Jump to content

How to make certain pages narrower (not 1170px full width)?


Recommended Posts

Using the Six theme. WHMCS defaults to Bootstrap's max 1170px main container width on all pages that do not have a side bar. 1170px is way too wide for pages such as announcements and ticket forms (the readability of a heavy text page suffers once a paragraph exceeds a certain width, generally around 800px). 

So on all these pages, WHMCS wraps them in a  full-width Bootstrap container with the class "col-xs-12 main-content". It would be so much easier if it adds an additional class to identify the page, such as "home-page", "submit-ticket", "announcements" etc like all Wordpress pages do, so we can style them directly in CSS via "max-width" and "margin:auto"  as needed. But WHMCS doesn't do this, and I can't find the actual "col-xs-12 main-content" container in the .TPL template files (the contents in the templates start AFTER the main container). So how do I efficiently limit the width of these pages?

I can use CSS to limit the width of the main element of the page, such as the ticket form, the article containers etc . The problem is that the "header-lined" class container which includes the main heading of the page and the breadcrumbs sit outside the page's contents, right under the "col-xs-12 main-content" container. Again these "header-lined" containers do not have any page identification class added. So these will remain left aligned if we center align the narrowed-down content container on the page.

Your advice would be greatly appreciated.

Edited by startover909
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated