Jump to:

3395 Posts in 977 Topics by 853 members

Template Questions

SilverStripe Forums » Template Questions » Adding content to left or right of the page layout

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 773 Views
  • Larry7
    Avatar
    Community Member
    21 Posts

    Adding content to left or right of the page layout Link to this post

    I am doing a very simple web site for a short term project so I had hoped not to have to learn too much about the inners of SS but just use the CMS.

    Using any of the supplied themes, it seems content is centred on the screen with a fair bit of real estate on the left and right hand side of the screen. I have managed to create a new homepage template and added it to the database. When I edit that template to add (in this instance a Twitter script so that ongoing Twitter updates are refreshed on the page), while the script works, the widget just takes up space in the middle section of the page. I can't get it to be placed far at the left or at the right.

    I suspect there is a template or style sheet somewhere but for the life of me I can't find. Which css file usually contains the definition of how wide the screen is. For example on this forum, there appears to be real estate to the left and right of the content (defined by the header) which shows the issue I am trying to overcome - how to place content left or right of the wide of the header.

    Thanks

    Larry

  • pinkp
    Avatar
    Community Member
    168 Posts

    Re: Adding content to left or right of the page layout Link to this post

    "I suspect there is a template or style sheet somewhere but for the life of me I can't find. Which css file usually contains the definition of how wide the screen is"

    Everything you need for the layout is in 'themes' > 'mytheme'

    Then 'templates' or the 'css' folder the width of the site is in the layout.css

    hope that helps

    773 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.