Chyrp Layout Issue

Is anybody here familiar with Chyrp? This is my first time using it, and I’ve run into a problem while modifying the theme. There is a sidebar and a main div (content). The sidebar comes first in the code, and is floated right, while the main div is floated left. I want to swap the order and put the content first, so that when the viewport narrows, the sidebar drops below the content, and not the other way around, as at present. However, I can’t work out which bit to move in the template. :o I’ve made three attempts and each time have only succeeded in making my content vanish altogether. :frowning:

Any assistance would be most gratefully received.

            {% endif %}
            <div id="wrapper">
                {% for type, messages in flash.all | items %}
                {% for message in messages %}
                <div class="${ type | depluralize }">$message</div>
                {% endfor %}
                {% endfor %}
                {% include "content/sidebar.twig" %}
                <div id="content">
                {% block content %}{% endblock %}
                <div class="clear"></div>
                <div class="page_nav">
                    $posts.prev_link
                    {% if posts.paginated and posts.pages > 1 %}
                    <span class="pages">${ "Page %d of %d" | translate | format(posts.page, posts.pages) }</span>
                    {% endif %}
                    $posts.next_link
                </div>
                </div>
                <div class="clear"></div>
                <div id="footer">
                    <p>${ "Powered by <a class=\\"chyrp\\" href=\\"http://chyrp.net/\\">Chyrp</a>" | translate } |
                       ${ "Firecrest Theme &copy; %d, Chyrp Team" | format("now" | date("Y")) }</p>
                    <a class="atom" href="{% url "feed" %}">atom</a>
                </div>
            </div>
        </div>
        ${ trigger.call("end_content") }
        {% include "content/debug.twig" %}
        <!-- Queries: $sql_queries | Load Time: $theme.load_time -->

Do you mean that moving: {% include “content/sidebar.twig” %}

to right before:


	<div class="clear"></div>
	<div id="footer">

Doesn’t work?

sigh No - that works perfectly, thank you. :slight_smile:

I mean I was being an idiot, and trying to move the preceding <div>, too. :frowning: