the above works as expected on the blog listing page, however once you click into .blog/all the listings and the sidebar are no longer children of the same div, and the blog content module is .span12
Dez 8, 201612:40 AM - bearbeitet Dez 8, 201612:42 AM
Autorität
simple_list_page: blog listing and sidebar are not children of the same parent
lösung
Check your blog listing template for a mismatched HTML element and if statement. The opening tag and ending tag both need to be inside or outside the if statement.
You've likely got something like:
{% if... %}
<div> Content {% endif %} </div>
Or this:
<div>
{% if... %}
Content <\div> {% endif %}
In either case the opening or ending tag will not be rendered causing you layout to break.
Make sure they're either both outside.
<div>
{% if... %}
Content
{% endif %}
</div>
Or they're both inside:
{% if... %}
<div>
Content
<\div>
{% endif %}
This can be tricky to find when there are several nested HTML elements or if statements.
Dez 8, 201612:40 AM - bearbeitet Dez 8, 201612:42 AM
Autorität
simple_list_page: blog listing and sidebar are not children of the same parent
lösung
Check your blog listing template for a mismatched HTML element and if statement. The opening tag and ending tag both need to be inside or outside the if statement.
You've likely got something like:
{% if... %}
<div> Content {% endif %} </div>
Or this:
<div>
{% if... %}
Content <\div> {% endif %}
In either case the opening or ending tag will not be rendered causing you layout to break.
Make sure they're either both outside.
<div>
{% if... %}
Content
{% endif %}
</div>
Or they're both inside:
{% if... %}
<div>
Content
<\div>
{% endif %}
This can be tricky to find when there are several nested HTML elements or if statements.