Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Media Query Format?

Home / Forums / Ascend Theme / Media Query Format?

This topic is: Resolved
[Resolved]
Posted in: Ascend Theme
July 12, 2017 at 7:39 am

I’m having a hard time using min-max media queries with the theme? I linted my child theme style.css. No errors. Couple of warnings, thats it.

Example. At the bottom of my child themes style.css. I have some test CSS. Its as follows


@media
only screen and (min-width: 544px) and (max-width: 1200px){
.portfolio-loop-image-container .portfolio-hover-item .portfolio-hover-item-inner .portfolio-loop-title {font-size: 30px;color:red;}
}/* End 544px */

It changes the portfolio title on my home page to 30px and colors it red. It should work between 544px all the way to 1200px. Right.

The issue is the media query gets over ridden at 1074px instead of the max-width of 1200px?

See the portfolio grid on my dev home page @

I looked in grid.less and came out with these break points.


@media
(min-width: 544px) {}

@media
(min-width: 768px) {}

@media
(min-width: 992px) {}

@media
(min-width: 1200px) {}

@media
(min-width: 1500px) {}

Do I need to follow this format for media queries to work not be over written? I’m working against the WordPress theme settings, the main ascend.css (in my case cwd.css) seems to be over riding my child theme style.css. Shouldnt the child theme style.css override any default theme styling?

Are the grid.less break points the correct format to follow? Seems like there would be a better way as it will require styling even simple things from the ground up.

I’m obviously missing break points or something? Any idea?

  • The forum ‘Ascend Theme’ is closed to new topics and replies.