• Hello!
    It should be like a trivial task: add a second sidebar ..
    I added a new sidebar in the file funсtions.php.
    And now I want to add this sidebar in the page template.
    But, in this Theme page templates are created by compiling processor TWIG (today is the first time I heard about this). I try to edit the file layout.twig, but nothing good comes out… (the cache is flushed, Twig Debug included …)

Viewing 1 replies (of 1 total)
  • Thread Starter IgorIvanov

    (@igorivanov)

    If who faced with the theme of Properta Aviators or someone versed in output Twig, please help.
    The code is:
    {{ wp.get_header() }}

    <div id=”content” class=”clearfix”>
    {% if wp.dynamic_sidebar(‘top’) %}{% endif %}

    <div class=”container”>
    <div class=”row”>
    {% include ‘helpers/messages.twig’ %}

    {% if wp.is_active_sidebar(‘sidebar-primary’) %}
    <div class=”sidebar span3″>
    {{ wp.get_sidebar(‘sidebar-primary’) }}
    </div><!– /#sidebar –>
    {% endif %}

    <div id=”main” class=”{% if wp.is_active_sidebar(‘sidebar-primary’) %}span9{% else %}span12{% endif %}”>
    {% if not wp.dynamic_sidebar(‘content-top’) %}{% endif %}

    {% block content %}{% endblock %}

    {% if not wp.dynamic_sidebar(‘content-bottom’) %}{% endif %}
    </div><!– /#main –>

    </div><!– /.row –>
    </div><!– /.container –>

    {% if wp.dynamic_sidebar(‘bottom’) %}{% endif %}
    </div><!– /#content –>

    {{ wp.get_footer() }}

    I need to insert the second sidebar to the right..

Viewing 1 replies (of 1 total)
  • The topic ‘Theme Properta – can not understand templates twig’ is closed to new replies.