Hi Team,
I am having a bit of a problem trying to hide and show columns. I need to place 4 1/2 columns into one section/row. However I want to hide 2 of them, then show them after 767px media query, and hide the other 2. I noticed on an old post that Joshu had identified the .first class which is helpful if there are only 2 columns, but I have 4. I tried the following but it has not worked.
Desktop —
Play: div#topgreenzone .flex_column:nth-child(1) { display: none; } hide
Win: div#topgreenzone .flex_column:nth-child(2) { display: block; } show
Play: div#topgreenzone .flex_column:nth-child(3) { display: none; } show
767 media query —-
Play: div#topgreenzone .flex_column:nth-child(1) { display: none; } show
Win: div#topgreenzone .flex_column:nth-child(2) { display: block; } show
Play: div#topgreenzone .flex_column:nth-child(3) { display: none; } hide
How can I achieve this?
Hi Vicken!
at first check out this: kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
and then you can hide/show it using media queries: css-tricks.com/snippets/css/media-queries-for-standard-devices/
Regards,
Andy
Andy,
Does this link article refer to functions in enfold theme, enfold child, or wordpress includes?
Nevermind I placed it in the enfold theme and worked