I want to show "View as" in toolbar just before grid and list modes.

I found its already exist in template file but is hidden:


 <strong class="modes-label" id="modes-label"><?= /* @escapeNotVerified */ __('View as') ?></strong>

and in

vendor/magento/theme-frontend-blank/Magento_Catalog/web/css/source/module/_toolbar.less _toolbar.less

.modes-label {
    &:extend(.abs-visually-hidden-desktop all);

1 Answer 1


Solution is to add ".lib-visually-hidden-reset" from UI library to


in your theme:

   .modes-label {
        .lib-visually-hidden-reset ();
        float: left;
        margin-top: 9px;
        font-family: @font-family-name__base;
        font-size: 14px;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.