`

Magento's IDs and classes

阅读更多
Magento's IDs and classes
When creating themes that you intend to share with other Magento users, it can be helpful to use the same naming conventions used in Magento's default themes for the elements you use in your store. They can also be a useful reference while creating CSS for your Magento theme.

CSS ID/classDescription
.wrapperThis usually contains all of the store's content within the <body> element and can be used to center the design, if necessary.
#logoThis ID refers to the store's logo, usually contained withinan <h1> element.
.headerIt is usual for the store's logo, search feature, and customer links to be contained within the header, though the beauty of theming Magento is that you can change these if you desire!
.shop-accessThe shop access element is used to contain links to Magento's customer features such as customer accounts, carts, and wishlist.
.header-navThe header navigation class is used to contain your store's navigation links. These often consist of categories and sub-categories of your store.
.breadcrumbsThe breadcrumbs class is used to contain the "breadcrumbs" of links that help to orientate your store's customers as to where they are in your store.
.headThis class is used to contain heading elements (for example, the <h1> element) in the main body. Depending on your theme'sdesign, you may find that these are unnecessary.
.contentThe content class is used to wrap content within the store.
.legalityThe legality class is usually applied to the copyright notice in the footer of your Magento store, which can be edited through Magento's CMS.
0
2
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics