Shopify themes, liquid, logos, and UX
Hello, i want to have a phone menu similar to the one on PC. Appriciate any help!
Website: https://d8106d-4.myshopify.com/
Solved! Go to the solution
This is an accepted solution.
Hello, if you want to have a shortcut element right below the logo for mobile devices, do the following:
1. Access your Shopify admin page, select add and select edit code:
2. In your code folder, find the theme.liquid file and add the following code before the </html> tag
<script> var headerElement = document.querySelector('.header'); var newAnchor = document.createElement('a'); newAnchor.href = '/products/clever-cook-laga-mat-utan-en-spis'; // Thay thế bằng đường dẫn mong muốn newAnchor.textContent = 'Utforska Clever Cook™'; newAnchor.id = 'custom-element'; headerElement.appendChild(newAnchor); </script> <style> a#custom-element { grid-column: 2 / span 1; font-size:15px; text-decoration:none; text-align:center; } @media only screen and (min-width: 769px) { #custom-element { display: none; } } </style>
Result:
Hope it helps @Elias10
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Hello, if you want to use desktop menus on mobile, they will be very ugly. Because the difference in the size of the devices makes the elements on the menu not have enough space and breaks the interface.
I will provide sample images as they are displayed on mobile devices.
However, if you really want to fix it or have an idea about editing the menu interface to make it more beautiful, please describe it carefully in the next comment. I will help you fix it.
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Can i have the burger menu on the side but a "shortcut" to my product only, that looks like the one on PC? Like just in the middle under the logo?
Regards Elias
This is an accepted solution.
Hello, if you want to have a shortcut element right below the logo for mobile devices, do the following:
1. Access your Shopify admin page, select add and select edit code:
2. In your code folder, find the theme.liquid file and add the following code before the </html> tag
<script> var headerElement = document.querySelector('.header'); var newAnchor = document.createElement('a'); newAnchor.href = '/products/clever-cook-laga-mat-utan-en-spis'; // Thay thế bằng đường dẫn mong muốn newAnchor.textContent = 'Utforska Clever Cook™'; newAnchor.id = 'custom-element'; headerElement.appendChild(newAnchor); </script> <style> a#custom-element { grid-column: 2 / span 1; font-size:15px; text-decoration:none; text-align:center; } @media only screen and (min-width: 769px) { #custom-element { display: none; } } </style>
Result:
Hope it helps @Elias10
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024