elementor / elementor/hello-theme

⚡ Please remove unnecessary styles that override the behavior of .entry-title

Open
#220 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
612
Forks
239
Avg merge
12h 5m
Merged PRs (30d)
19

Description

After updating to 2.6.1, the theme now has a style that introduces a limit (_max-width_) and a middle alignment ( _margin-right: auto; margin-left: auto;_) for different screen widths for some elements. This is especially problematic with .entry-title, when it should be aligned to the left edge of the container.

These styles are not needed in a clean theme, and override the design created on this theme before, when these styles did not exist.

Such specifics should be defined by the author of the site. These styles should not be there:

```
.page-header .entry-title, .site-footer .footer-inner, .site-footer:not(.dynamic-footer), .site-header .header-inner, .site-header:not(.dynamic-header), body:not([class*=elementor-page-]) .site-main {
margin-right: auto;
margin-left: auto;
width: 100%;
}

@media (min-width: 1200px)
.page-header .entry-title, .site-footer .footer-inner, .site-footer:not(.dynamic-footer), .site-header .header-inner, .site-header:not(.dynamic-header), body:not([class*=elementor-page-]) .site-main {
max-width: 1140px;
}

@media (min-width: 992px)
.page-header .entry-title, .site-footer .footer-inner, .site-footer:not(.dynamic-footer), .site-header .header-inner, .site-header:not(.dynamic-header), body:not([class*=elementor-page-]) .site-main {
max-width: 800px;
}

@media (min-width: 768px)
.page-header .entry-title, .site-footer .footer-inner, .site-footer:not(.dynamic-footer), .site-header .header-inner, .site-header:not(.dynamic-header), body:not([class*=elementor-page-]) .site-main {
max-width: 600px;
}

@media (min-width: 576px)
.page-header .entry-title, .site-footer .footer-inner, .site-footer:not(.dynamic-footer), .site-header .header-inner, .site-header:not(.dynamic-header), body:not([class*=elementor-page-]) .site-main {
max-width: 500px;
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.