I want the put the computer menu in the footer like in the mobile version

Topic summary

A user wants to replicate the mobile footer menu design (with collapsible sections) on the desktop version of their store.

Current Situation:

  • Mobile version has an expandable/collapsible menu in the footer
  • Desktop version lacks this functionality
  • User shared screenshots showing the desired mobile layout

Proposed Solution:
Another participant suggested using HTML <summary> and <details> tags to create the collapsible menu effect.

Technical Details:

  • The original post includes CSS and JavaScript code for implementing collapsible footer blocks
  • Code handles click events and keyboard interactions
  • Uses ARIA attributes for accessibility
  • Media query targets screens under 750px width

Status: The discussion remains open with one suggested approach provided but no confirmation of implementation or resolution.

Summarized with AI on November 25. AI used: claude-sonnet-4-5-20250929.

Hello i want to put this menu like in the mobile view can u help me

bcnropax_0-1668897424489.png

<style>
@media (max-width: 749px) {
  .grid .footer-block.grid__item {
    margin: 0;
  }
  .grid .footer-block__heading {
    position: relative;
    margin: 0;
    padding: 1.5rem 0;
    cursor: pointer;
  }
  .grid .footer-block__heading::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    text-align: center;
  }
  .grid .footer-block__heading:not(.block-collapsed)::after {
    content: "-";
  }
  .grid .footer-block__heading.block-collapsed + .footer-block__details-content {
    visibility: hidden;
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    transition: all .2s ease-out;
    overflow: hidden;
  }
  .grid .footer-block__heading + .footer-block__details-content {
    visibility: visible;
    opacity: 1;
    height: auto;
    transition: all .2s ease-out;
    overflow: hidden;
    margin-bottom: 3rem;
  }

}
</style>

<script>
window.addEventListener('DOMContentLoaded', () => {
  if (window.matchMedia('(min-width: 750px)').matches) {
    return
  }

  const handleCollapse = (heading) => {
    if (heading.classList.contains('block-collapsed')) {
      heading.classList.remove('block-collapsed')
      heading.setAttribute('aria-expanded', 'true')
    } else {
      heading.classList.add('block-collapsed')
      heading.setAttribute('aria-expanded', 'false')
    }
  }
  
  document.querySelectorAll('.grid .footer-block__heading').forEach((heading, index) => {
    heading.classList.add('block-collapsed_new')
    heading.setAttribute('role', 'button')
    heading.setAttribute('aria-expanded', 'false')
    heading.setAttribute('tabindex', '1')

    heading.nextElementSibling.setAttribute('id', `footer-block-index-${index}`)
    heading.setAttribute('aria-controls', `footer-block-index-${index}`)

    heading.addEventListener('click', () => { handleCollapse(heading) })
    heading.addEventListener('keypress',  () => { handleCollapse(heading) })
  })

})
</script>

hi @bcnropax

You can use smmary details HTML for your mobile-version menu

https://www.w3schools.com/tags/tag_summary.asp