Magento 2 How to edit my account side nav: Mastering the art of customizing your Magento 2 account navigation unlocks a world of enhanced user experience. This comprehensive guide provides a step-by-step approach to modifying the account side navigation, from fundamental adjustments to advanced techniques. We’ll explore various methods, addressing both simple modifications and intricate customisations. Discover the secrets to adding, removing, and reordering navigation elements, ensuring a seamless and intuitive user journey.
By understanding the underlying structure of Magento 2’s account side navigation, you can tailor the experience to meet specific business needs and user preferences. This guide will walk you through the process with practical examples, code snippets, and insightful explanations. A solid understanding of Magento 2’s architecture and layout files is crucial for navigating this process effectively. This detailed approach empowers you to confidently and effectively adjust your navigation for optimal results.
Introduction to Magento 2 Account Side Navigation
The Magento 2 platform, a robust e-commerce solution, offers a customizable account side navigation system. This structure, strategically placed within the user’s account dashboard, guides customers through various account management functionalities. Effective navigation is crucial for a positive user experience, enabling easy access to essential features like order history, address management, and personal information updates. This section explores the fundamental structure and customization options of the Magento 2 account side navigation.
Structure of the Magento 2 Account Side Navigation
The Magento 2 account side navigation is typically presented as a vertical list of links. These links are organized hierarchically, providing a clear path for customers to navigate through their account information. The structure is designed to be intuitive and easily understandable, minimizing the need for extensive searching. This organized layout contributes significantly to user satisfaction and promotes efficient account management.
Importance of Customizing the Navigation
Customizing the Magento 2 account side navigation enhances the user experience by aligning the platform with specific business needs and customer expectations. Modifications can improve usability, reduce customer support inquiries, and potentially increase conversion rates. The customization can streamline the navigation to only include relevant sections based on the user’s role or activity, creating a more focused and efficient experience.
Common Use Cases for Modifying the Account Side Navigation, Magento 2 how to edit my account side nav
Modifications to the account side navigation are frequently implemented to enhance specific aspects of the customer journey. Common use cases include:
- Improved User Flow: Rearranging sections to create a more logical order of actions for customers, enhancing the flow of account management. For example, a customer may need to quickly access their order history before viewing their payment information. This can be addressed by modifying the navigation to place order history closer to the top.
- Enhanced Feature Exposure: Highlighting particular features, such as loyalty programs or exclusive discounts, through a dedicated section in the navigation. This is important for promoting engagement with these features and driving sales.
- Adapting to Specific Customer Segments: Tailoring the navigation to the needs of different customer segments (e.g., new customers vs. returning customers). For example, a new customer might not need advanced order tracking options, so those can be hidden from the initial navigation.
- Compliance with Regulatory Requirements: Ensuring the navigation is compliant with regional regulations related to privacy and data protection. This includes clear and prominent links to privacy policies and data management options.
Typical Elements in the Account Side Navigation
The following table Artikels the typical elements found in the account side navigation, providing a structured overview.
Element | Description | Example | Purpose |
---|---|---|---|
Account Information | Personal details, address book, and contact information. | My Account, Addresses, Contact Details | Enables customers to manage their personal data. |
Order History | View, track, and manage past orders. | Order History, Order Details | Provides visibility into previous purchases. |
Wishlist | Manage saved products for future purchase. | Wishlist | Allows customers to save items for later consideration. |
Payment Methods | Manage saved payment methods. | Payment Methods | Facilitates secure and convenient future transactions. |
Identifying Navigation Elements
The Magento 2 account side navigation plays a crucial role in guiding customers through their account management process. Understanding the structure and components of this navigation is essential for both maintaining default functionality and implementing custom modifications. This section delves into the various elements of the account navigation, outlining possible sections and contrasting default and customized implementations.The account side navigation is not a static entity; its structure can be tailored to meet specific business requirements.
This adaptability allows merchants to optimize the customer journey and enhance user experience by strategically placing relevant links and sections. A comprehensive understanding of the default navigation structure and the potential for customization is critical to successful Magento 2 development.
Possible Navigation Sections
The account side navigation in Magento 2 typically includes a range of sections designed to facilitate customer interaction with their account. These sections provide customers with tools to manage orders, addresses, personal information, and more. A comprehensive list of potential sections includes:
- Orders: This section enables customers to view, track, and manage their past orders.
- Addresses: Customers can view, edit, and add new delivery and billing addresses.
- Account Information: This section allows customers to update their personal information, such as name, email, and password.
- Payment Methods: Customers can view and manage their saved payment methods.
- Wishlists: Customers can view and manage their saved wishlists.
- Downloadable Products: This section facilitates access to any downloadable products associated with the customer’s account.
- Customer Reviews: A section for customers to view and manage their product reviews.
- Newsletter Subscriptions: Customers can manage their email subscriptions.
- Reward Points: For stores using reward programs, a section to view and manage reward points.
- Saved Cards: A section to manage saved credit cards or payment methods.
- My Profile: A section allowing customers to access and update their profile information.
- Customer Groups: For stores with multiple customer groups, a section to manage customer group details.
Default vs. Customized Navigation
This table contrasts the default Magento 2 account navigation with a potential customized version, highlighting key differences.
Feature | Default Navigation | Customized Navigation |
---|---|---|
Orders | Displays order history, tracking, and details. | Includes a section for “Order History & Tracking” and a direct link to “Manage Returns”. |
Addresses | Standard address management. | Includes a separate “Shipping Addresses” and “Billing Addresses” section. |
Account Information | Limited to basic profile updates. | Enhanced with a section for “Account Preferences” to allow customers to personalize their experience. |
Navigation Depth | Relatively shallow. | Potential for deeper nesting of sections for improved user experience. |
Links and Functionality | Limited to core account functions. | Potential inclusion of links to promotional offers, customer support, or loyalty programs. |
File Locations for Navigation Management
The core files responsible for managing the account side navigation in Magento 2 reside primarily within the following directories:
- app/design/frontend/theme/[theme_name]/Magento_Customer/templates/account/: This directory contains the template files for the account pages, including the navigation structure.
- app/code/Vendor/Module/view/frontend/layout/: The layout XML files within this directory control the placement and structure of the navigation links.
- app/code/Vendor/Module/etc/frontend/routes.xml: This XML file defines the routes used by the account section. Changes to these routes will impact how customers navigate to the different account pages.
Methods for Editing the Navigation
Modifying the Magento 2 account side navigation offers granular control over customer experience and site functionality. This flexibility allows merchants to tailor the user interface to specific business needs and branding strategies. Several approaches exist for customizing the navigation, ranging from direct code modification to leveraging Magento’s built-in configuration options. Careful consideration of the chosen method is crucial, as different approaches have varying levels of complexity and impact on maintainability.Various methods are available for altering the Magento 2 account side navigation.
These methods range from simple configuration adjustments to more complex code modifications. Understanding the nuances of each method is essential for achieving the desired customization while maintaining a robust and scalable application.
Code Modification
Direct code modification, while offering ultimate control, is generally discouraged for account navigation customization due to potential compatibility issues and maintenance challenges. Modifying core Magento files directly can lead to unpredictable behavior and make future updates problematic. This approach should be reserved for highly specialized or custom requirements where other methods are insufficient. If employed, ensure meticulous backup procedures and a thorough understanding of the codebase.
Layout XML Modification
Magento 2’s layout XML files provide a structured and manageable approach to modifying the account navigation. This method offers a balance between flexibility and maintainability, as changes are isolated within specific layout configurations. Using XML files allows for targeted adjustments to the navigation without directly modifying core code, improving the stability and maintainability of the site.
- Modifications to layout XML files are generally isolated, reducing the risk of conflicts during updates.
- Modifying layout XML files is often considered a best practice for customization, as it is well-integrated into Magento’s architecture.
- This method is more manageable and predictable compared to direct code modification.
Configuration Options
Magento 2 offers a range of configuration options within the administrative backend to customize account navigation. These options provide a simple way to manage basic customizations without needing to dive into code.
- Configuration options are easily accessible within the Magento admin panel, allowing for quick adjustments.
- These adjustments are generally less impactful on the codebase, leading to greater stability.
- Modifying configurations directly can alter the presentation of the account side navigation without requiring code changes.
Custom Module Development
Developing a custom module provides the most robust and maintainable approach for significant account navigation customizations. This method is particularly useful when complex or recurring adjustments are needed.
- Custom modules allow for complete isolation of modifications, preventing conflicts during future updates.
- A dedicated module fosters organization and maintainability of customizations.
- Custom modules facilitate the integration of complex logic and interactions, making them appropriate for advanced scenarios.
Comparison of Methods
Method | Pros | Cons | Complexity |
---|---|---|---|
Code Modification | Ultimate control | Potential for conflicts, maintenance challenges, update risks | High |
Layout XML | Targeted adjustments, maintainable | Limited to layout-based changes | Medium |
Configuration Options | Simple, quick adjustments, minimal code impact | Limited customization capabilities | Low |
Custom Module | Complete isolation, maintainability, complex customizations | Requires development effort, more time investment | High |
Customization Examples
Customizing the Magento 2 account side navigation allows merchants to tailor the customer experience by adding, removing, or rearranging sections to align with their specific business needs and branding. This flexibility enhances user navigation, making it easier for customers to locate desired information and complete transactions.Effective customization of the account side navigation is crucial for a positive customer experience.
By strategically modifying the structure, merchants can improve site usability and potentially increase conversion rates. This process requires careful consideration of the desired layout and functionality.
Adding New Sections
Adding new sections to the account side navigation involves modifying the XML layout file that defines the navigation structure. This file typically resides in the `Magento_Customer` module and often needs to be adjusted to accommodate the new section. The process involves several key steps:
- Identify the appropriate location within the XML layout to insert the new section. This often involves understanding the existing navigation hierarchy and where the new section logically fits.
- Create a new XML configuration node for the new section, specifying the necessary attributes such as the label, URL, and icon (if applicable). Ensure consistency in naming conventions and attributes to avoid conflicts.
- Save the updated XML layout file and clear the Magento cache to ensure the changes are reflected. Proper cache management is essential for avoiding conflicts and inconsistencies.
Removing Existing Sections
Removing sections involves identifying the relevant XML node and removing it from the layout file. This step requires careful attention to avoid inadvertently breaking other navigation elements. The specific steps include:
- Locate the XML node representing the section to be removed within the layout file.
- Carefully delete the entire XML node, ensuring no dependent elements are left behind.
- Clear the Magento cache to reflect the change.
Reordering Navigation Elements
Reordering navigation elements involves adjusting the sequence of XML nodes in the layout file. This is important for a clear and intuitive user experience. The steps involved are:
- Identify the XML nodes representing the navigation elements to be reordered.
- Modify the order of these nodes within the layout file by changing their position. This often involves moving the XML elements up or down in the hierarchy.
- Clear the Magento cache to reflect the change.
Code Snippet Examples
<referenceBlock name="customer_account_navigation"> <block class="Magento\Theme\Block\Html\Header" name="customer.account.navigation.custom" template="Magento_Theme::customer/account/navigation/custom.phtml"> <arguments> <argument name="sections" xsi:type="array"> <item name="new_section" xsi:type="array"> <item name="label" xsi:type="string">My New Section</item> <item name="url" xsi:type="string">my-new-section</item> </item> </argument> </arguments> </block> </referenceBlock>
This example demonstrates a structured XML layout file snippet for adding a new section named “My New Section”. The specific attributes (label and URL) are defined for the new section. This snippet should be integrated into the appropriate layout file within the Magento 2 theme or module.
Responsive Design Considerations
Effective e-commerce necessitates a user experience that seamlessly adapts to various devices and screen sizes. The account side navigation, crucial for user interaction and information access, must be responsive to ensure a consistent and positive experience across desktops, tablets, and mobile phones. A well-designed responsive navigation streamlines user journeys and enhances overall site usability.
Responsive design for account navigation involves dynamically adjusting the layout and presentation based on the device’s characteristics. This adaptability is critical for maintaining a user-friendly experience and ensuring that the navigation remains intuitive and accessible regardless of the viewing context. The core principle is to maintain clarity, accessibility, and functionality across diverse screen resolutions.
Importance of Responsive Design
The account side navigation is a key component of user interaction within a Magento 2 store. Responsive design ensures the navigation remains usable and accessible across different screen sizes, from large desktop monitors to smaller mobile devices. This adaptability improves the overall user experience and contributes to a higher conversion rate by enabling easy navigation and access to account features.
Ensuring Navigation Adaptability
To guarantee the navigation adapts effectively, careful consideration of the layout, and its flexibility are essential. The navigation should adjust its structure, such as the number of items displayed per row or column, based on the available screen space. The use of appropriate media queries in CSS enables this dynamic adjustment.
Screen Size Adjustments
| Screen Size Category | Navigation Adjustments |
|—|—|
| Desktop (≥1024px) | Full navigation bar with all categories visible, potentially with subcategories; potentially horizontal or vertical layout |
| Tablet (768-1023px) | Navigation bar may condense to a single row; subcategories may collapse into a dropdown menu; vertical layout preferred to maintain usability. |
| Mobile (≤767px) | Navigation typically collapses into a hamburger menu or a collapsible list; only essential items are initially visible; vertical layout is preferred for touch-screen interaction.
|
Using Media Queries in CSS
Media queries allow for the targeted application of CSS styles based on different screen characteristics. These queries are essential for controlling the appearance and behavior of the account navigation across various devices. They enable designers to define distinct visual styles for each device type, ensuring a consistent user experience.
Example CSS Media Query
“`CSS
/* Example Media Query for Mobile Devices
-/
@media (max-width: 767px)
#account-navigation ul
display: block; /* Collapse to vertical list
-/
width: 100%; /* Full width
-/
padding: 0; /* Remove padding for cleaner look
-/
margin: 0;
#account-navigation li
border-bottom: 1px solid #ccc; /* Separator between items
-/
padding: 10px;
#account-navigation a
display: block; /* Ensures links take full width
-/
“`
This example targets screens with a maximum width of 767 pixels. It changes the account navigation’s structure by making the list items display vertically, taking up the full width of the container, and adding visual separators for better readability. This demonstrates a basic strategy to adjust the navigation for mobile devices.
Troubleshooting Common Issues
Editing Magento 2 account side navigation, while offering significant customization potential, can sometimes present challenges. Troubleshooting these issues requires a methodical approach, understanding the underlying structure, and leveraging Magento 2’s built-in debugging tools. This section details common problems and their solutions, enabling efficient resolution of navigation-related errors.
Identifying Broken Links
Broken links within the account navigation are a common problem. This often arises from misconfigurations in the navigation settings or changes to the underlying URLs of the related pages. Carefully verifying the target URLs of each navigation item is crucial.
- Verify URL Validity: Double-check that each link points to an existing and correctly configured page within the Magento 2 website. Use the browser’s developer tools to inspect the HTTP status code returned by the target URL. A 404 error indicates a missing or incorrect page.
- Review URL Structure: Ensure the URL paths in the navigation configuration match the actual structure of the website’s content. Slight discrepancies in URLs, such as missing or extra slashes, can lead to broken links.
- Clear Magento Cache: Invalid cache entries can sometimes cause broken links. Clearing the Magento cache, both frontend and backend, can resolve this issue.
Addressing Missing Elements
Missing navigation elements within the account section might result from incorrect configuration, missing data in the database, or problems with the underlying code.
- Verify Configuration Settings: Review the configuration settings related to the navigation menu, checking for missing or incorrect entries. Carefully inspect the associated code, ensuring correct syntax and data types.
- Check Database Integrity: Verify that the necessary data related to the navigation elements exists and is correctly formatted in the Magento 2 database. Use database tools to examine relevant tables and identify missing or erroneous entries.
- Inspect Component Code: Examine the Magento 2 code responsible for rendering the navigation. Missing or incorrect calls to the navigation elements can lead to the missing display of components in the navigation menu.
Resolving Display Errors
Display errors in the account navigation can stem from various factors, including incorrect CSS styles, theme conflicts, or incompatibility issues.
- Review CSS Styles: Carefully inspect the CSS rules affecting the account navigation. Look for conflicting styles or errors in the syntax. Ensure the CSS is appropriately targeted to the navigation elements.
- Identify Theme Conflicts: If a theme conflict is suspected, consider reverting to a previous theme or temporarily disabling custom themes to isolate the issue. Thorough testing is required to confirm the origin of the conflict.
- Examine Browser Compatibility: Test the navigation on different browsers and devices to identify potential compatibility issues. Ensure the navigation displays correctly on various screen sizes and resolutions.
Debugging Navigation Issues with Magento 2 Tools
Magento 2 provides robust debugging tools to aid in isolating the cause of navigation problems.
- Use Magento Debug Mode: Enabling debug mode allows for detailed error messages and helps pinpoint the source of problems in the code.
- Employ Browser Developer Tools: Browser developer tools offer insights into the rendered HTML, CSS, and JavaScript code affecting the navigation elements. Inspecting the network requests and identifying slow or failed requests can help resolve display issues.
- Utilize Magento’s Logging System: The Magento logging system can capture errors and warnings related to the navigation. Review the logs to pinpoint specific problems and their causes.
Table of Common Errors and Solutions
Error | Possible Cause | Solution |
---|---|---|
Broken Links | Incorrect URL paths, missing pages, cache issues | Verify URL validity, review URL structure, clear Magento cache |
Missing Elements | Incorrect configuration, missing database entries, code errors | Verify configuration settings, check database integrity, inspect component code |
Display Errors | Conflicting CSS styles, theme conflicts, compatibility issues | Review CSS styles, identify theme conflicts, examine browser compatibility |
Security Considerations
Modifying the Magento 2 account side navigation presents unique security challenges. Careless customization can introduce vulnerabilities, compromising user data and potentially impacting the store’s reputation. Understanding and addressing these risks is crucial for maintaining a secure e-commerce platform. Implementing robust security measures during the customization process is paramount to preventing potential breaches.
Input Validation Techniques
Proper input validation is a cornerstone of secure application development. When customizing the navigation, validating user input is critical to prevent malicious code injection or manipulation of the navigation structure. This involves scrutinizing all data received from user interactions, ensuring it conforms to expected formats and ranges. Failing to validate input can expose the application to various attacks, including cross-site scripting (XSS) and SQL injection.
- Data Type Validation: Ensure that the input data conforms to the expected data types (e.g., integers, strings, dates). Data that does not match the expected type should be rejected to prevent unexpected behavior or injection attacks. This involves checking for data types, lengths, and formats to prevent unexpected behavior or manipulation.
- Sanitization: Sanitize user-supplied data to remove potentially harmful characters or code. Employ methods that escape special characters to prevent them from being interpreted as executable code. Proper sanitization techniques are essential for mitigating the risk of XSS attacks and other code injection vulnerabilities.
- Input Length Restrictions: Implement input length restrictions to prevent the injection of excessively long strings, which could overwhelm the system or cause unexpected behavior. This can be part of the input validation to prevent issues related to buffer overflow vulnerabilities.
Potential Security Risks
Certain customization methods pose higher security risks than others. The use of third-party extensions or custom code without proper security review can introduce vulnerabilities. Incorrectly configured or poorly maintained custom scripts can leave the store vulnerable to attacks. Inadequate testing of modified components can result in unforeseen behavior or security flaws.
- Third-Party Extensions: Using untrusted or outdated third-party extensions can introduce security vulnerabilities. Thorough security audits of these extensions are crucial to mitigate the risks. Review the extension’s security posture and ensure that it adheres to industry best practices.
- Custom Code: Custom code modifications require careful review and testing to ensure that they do not introduce security flaws. Employ code review processes to identify potential security risks. Use secure coding practices to minimize the introduction of vulnerabilities.
- Inadequate Testing: Incomplete or inadequate testing of modified components can expose the store to security breaches. Thoroughly test the modified components in a controlled environment to identify and address potential issues.
Security Considerations Checklist
Adhering to a structured checklist ensures that all critical security considerations are addressed during the customization process.
- Review and Validate: Thoroughly review all modifications to the navigation for potential security vulnerabilities.
- Input Sanitization: Implement robust input validation and sanitization techniques to mitigate injection attacks.
- Code Review: Conduct regular code reviews to identify and address potential security flaws in custom code.
- Third-Party Verification: Verify the security posture of third-party extensions before integration.
- Regular Updates: Keep Magento core, extensions, and custom code updated to patch known vulnerabilities.
- Security Audits: Schedule periodic security audits to identify and address potential weaknesses.
Advanced Customization Techniques: Magento 2 How To Edit My Account Side Nav

Advanced Magento 2 account navigation customization extends beyond pre-configured options, allowing for dynamic updates, personalized experiences, and integration with third-party tools. This section delves into sophisticated methods for modifying the account navigation, enhancing its functionality and user experience. Tailoring the navigation to specific user roles, incorporating personalized recommendations, and integrating custom JavaScript are key elements of this advanced approach.
Customizing Magento 2’s account navigation involves modifying existing templates and potentially creating new ones, often using PHP and/or JavaScript. This requires a nuanced understanding of Magento 2’s architecture and its underlying codebase. This customization is not trivial and should be performed with care, understanding potential risks and limitations. Thorough testing and code review are critical to avoid introducing bugs or compromising the system’s stability.
Custom JavaScript Integration
Custom JavaScript allows for dynamic updates to the account navigation based on user actions or system events. This dynamic behavior enhances the user interface and improves the overall experience by reacting to real-time changes.
Implementing custom JavaScript involves several steps. First, identify the specific elements within the navigation that require dynamic updates. Next, incorporate JavaScript code to manipulate these elements, employing DOM manipulation techniques. For example, JavaScript can add or remove navigation items based on user roles, or dynamically display personalized recommendations. Careful consideration of JavaScript frameworks and libraries is crucial for maintaining maintainability and scalability.
Dynamic Navigation Updates with JavaScript
JavaScript can be used to dynamically modify the account navigation based on specific criteria. This allows for real-time updates without requiring page reloads. Consider the following example:
- Identifying the target navigation elements using their unique IDs or classes within the HTML structure.
- Using JavaScript to manipulate these elements, such as adding or removing entire sections of the navigation or changing the content within them.
- Implementing event listeners to trigger JavaScript functions in response to user interactions, such as clicking on a specific menu item.
- Employing AJAX calls to retrieve data from a backend API, allowing for asynchronous updates to the navigation, potentially from a separate data source, without disrupting the user experience.
Integration of Third-Party Libraries
Third-party libraries can extend the functionality of the account navigation. Libraries specializing in UI components, such as interactive menus or personalized recommendations, can significantly enhance the user experience. Careful selection and implementation of these libraries are paramount.
Integration procedures typically involve downloading the necessary library files, including JavaScript and CSS, and then incorporating them into the Magento 2 project. Properly referencing these files within the appropriate templates or blocks ensures that the library functions correctly.
Personalization Based on User Roles
Customizing the account navigation based on user roles allows for a tailored experience for different user segments. For example, administrators might have access to more advanced options than standard customers. This personalization enhances usability and efficiency.
Magento 2’s role-based access control (RBAC) system can be leveraged to identify user roles. Conditions within JavaScript or PHP can then be used to display or hide specific navigation items based on the identified user role. This dynamic behavior avoids cluttering the interface for users with limited permissions.
Integrating Personalized Recommendations
Integrating personalized recommendations into the account navigation can enhance user engagement. By leveraging Magento 2’s recommendation engines or external APIs, products relevant to the user’s past behavior can be prominently displayed within the navigation.
Recommendations can be presented in various ways, such as dedicated sections within the navigation, or by highlighting related items within other existing categories. A crucial element is maintaining a balance between relevance and the overall navigation structure. Data privacy considerations and user consent should be addressed in the implementation.
Final Wrap-Up

In conclusion, customizing your Magento 2 account side navigation is a powerful way to elevate the user experience and align your store with specific business objectives. By understanding the various methods and considerations Artikeld in this guide, you’re equipped to make informed decisions about modifying the navigation. From simple adjustments to advanced techniques, this comprehensive resource provides the knowledge needed to optimize your store’s navigation for maximum impact.
Remember, a well-structured and user-friendly navigation is key to driving sales and customer satisfaction.
Question Bank
How do I identify the files responsible for the account navigation?
The files responsible for the account navigation are typically found within the ‘app/design/frontend/VendorName/ThemeName/templates’ directory. The specific files depend on the particular components you want to modify. Consult the Magento 2 documentation or your theme’s documentation for accurate paths.
What are the common pitfalls when editing the navigation?
Common issues include broken links, missing elements, and display errors. Carefully review your code for syntax errors, missing elements, and improper referencing. Thorough testing and validation are essential to avoid these problems.
Can I use JavaScript to dynamically update the navigation?
Yes, you can integrate custom JavaScript to dynamically update the navigation, enabling more interactive and personalized experiences. However, ensure your JavaScript is compatible with Magento 2’s architecture and user interface.
How can I ensure the navigation is responsive across different devices?
Employing media queries in CSS is essential for responsive design. These queries adjust the navigation’s appearance based on the screen size, ensuring a seamless experience across various devices. Refer to the Magento 2 documentation for specific media query guidelines.