I’m relatively new to Kirby – most of my site is built.
I’ve figured out columns, but I’d love to have a sidebar on one of my information pages (roughly 2/5 of the page with the rest of the page being text and images as needed). I can’t seem to figure out how to do this, between snippets, plugins, et al.
(I should note that I’ve been coding most things by hand and haven’t used the panel much.)
I think it must have something to do with columns but I can’t seem to sort out how to do that without changing the column definitions for the site overall, which is undesirable. I’m sure it’s something obvious.
The columns plugin only affects the very space in which the columns are used, the textarea of a page. What you need is an overlying grid that creates a separation between your sidebar and the space that contains the textarea. With that you define columns of the width 2/5 for the sidebar and the width 3/5 for the textarea (which itself can contain columns - a nested layout). You can either build your own definitions to create that overlying grid or use something like Skeleton or Bootstrap or Zurb Foundation. Skeleton is nice for simple setups, with only a couple of features.
You can then create an invisible page (plus sidebar-snippet) for the contents of the sidebar and put any content that you need there, giving it the grid width 40% and a template for any page that you want to have this sidebar, giving it the grid width 60% (in the CSS definitions).
Building a sidebar actually doesn’t have anything to do with Kirby. Although all the solutions you were provided with could work, I think you should simply use Google with a query similar to “html sidebar” and read through tutorials and questions and answers sites. This is by far the best way to learn to codeine my honest opinion.
See for instance this user’s answer to a similar question: http://stackoverflow.com/a/18148419
I’d like for the sidebar to be a simple introductory text with H1 and perhaps a few pertinent links.
This is for a page on my site that will be something like a blog, only much more simple and updated less frequently. The sidebar text is unlikely to change. I believe it would be content from the same page.
Since I seem to have painted myself into a corner here, I’m going to start from scratch with really simple questions: does the HTML markup go in my content/page .txt file, or does it go somewhere else? Does the CSS go in assets/main/main.css?
I tweaked the PHP and CSS a bit (probably from, y’know, the other tweaking I’d done before) and this is what I have now. Your answering my question so thoroughly also answered some peripheral questions I’d had but didn’t think were important enough to mention. HUGE gratitude!! Thank you!!
I’d like to get the text to not wrap around the sidebar, and to create a break between the underline for the Bloggish headline and the Experimental headline. I’ve done some Google searches but nothing seems apparent so far and since you were so wonderful last time around I thought I’d come back.
All of the questions asked here are basic html/css questions that have nothing specific to do with Kirby. Although you’ll find that everyone here is always very keen to help, I think you would greatly benefit from looking at html/css classes online
@thiousi Sure, I don’t mind putting the code directly in the forum. I am a painter and a visual person, so screenshots are normally how I communicate things like this.
While I believe that others here have been keen to help, my interaction with you has been to the contrary: you have repeated over and again that I should take coding classes or Google things rather than come here with questions. You have repeated that I do what others have said already, as though I haven’t already tried it with some or little success. I hope you realize that this comes off as disrespectful and condescending, particularly as I’ve stated more than once that I am new to Kirby in general. (Further: not everyone has the privilege of time for coding classes.)
It was my understanding that the Kirby forum was for people using Kirby CMS at all levels of experience: the idea being that those with a little experience gain more, help those who have less, and so on. Your behavior here has made me doubt that premise and I very feel reluctant to return as a result.
So: Please, if you have nothing to contribute, do not respond again.
I apologize that my answers came off the wrong way. I am always eager to help and my advice to you was sincere and thoughtful, albeit wrongly worded.
If you do not wish me to answer again, I won’t. I wish you all the best in your endeavour to learn to code.
@degrey Sorry, but that shocked me right there. @Thiousi went ahead and put quite some time into solving your HTML problem, solvable by a Google search and countless StackOverflow answers.
You’re right that the Kirby forum is for people of all levels of experience. You’re right, that basic HTML and CSS questions tend to get answers too. Let me add, that I’ve never seen a forum with such a friendly community, so many helpful answers and especially so little frustration, hate and “lmgtfy”-links. It’s amazing.