• Resolved ludwigt

    (@ludwigt)


    I noticed that Customizr appears to place the container for the left tc-sidebar underneath article-container on small media screens.

    My PHP coding skills are slightly rusty but I did look into the index.php and class-content-sidebar.php files. It would seem the left sidebar is supposed to be rendered before article-container but it doesn’t seem to be the case here.

    The behavior is the same regardless if the layout is set to use both sidebars or only the left sidebar. I suspect this to be a feature since on smaller screens you might want the widget field to be less prioritized than the widgets.
    But I have been wrong before and personally I’d like the left sidebar to be placed before article-container.

    Any thoughts on these people?

    Kind regards
    Ludwig T

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author presscustomizr

    (@nikeo)

    Hi,
    This is handled with javascript (on client side thus).
    Check the inc/js/tc_scripts.js file.
    Bests

    Thread Starter ludwigt

    (@ludwigt)

    Thank you yet again, nikeo!
    I have a menu widget in the left sidebar and wanted it to stick at top for mobile devices instead of at the bottom.

    Anyway, I changed the second instance of “insertBefore(e)” to “insertAfter(e)” and that did the trick.
    Personally I am no fan of compressed JS code but sometimes you have to persevere and just do it.

    It would be nice to be able to define this if you want the left sidebar to have priority over the main-wrapper.

    Many thanks yet again!

    Kind regards
    /Ludwig

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Flawed left sidebar placement on small media screens’ is closed to new replies.