How do I display 'Sign In' near cart icon in header section (Only for mobile view) in magento 2 [closed]
-
25-02-2021 - |
Question
Please Help me,I want to show Sign In link near cart icon in header section for mobile view, How can possible this ??..
Solution
It is possible from this way you can move class near minicart using jquery. please input this jquery script in to your any phtml file in your custom theme Magento_Theme.
<script type="scipt/javascript">
require(["jquery"], function($){
$( document ).ready(function() {
if($(window).width() <= 767){
minicart = $('ul.header.links li.authorization-link');
$('.minicart-wrapper').before(minicart);
}
});
});
</script>
I have tested it,working properly. After add this code please refresh the cache.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange