WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
[resolved] Flawed left sidebar placement on small media screens (3 posts)

  1. ludwigt
    Member
    Posted 9 months ago #

    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

  2. nikeo
    Member
    Theme Author

    Posted 9 months ago #

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

  3. ludwigt
    Member
    Posted 9 months ago #

    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

Reply

You must log in to post.

About this Theme

About this Topic