-
AuthorPosts
-
January 9, 2023 at 2:56 pm #1378026
Hi
I have tried a few solutions to reverse the flow of code block arrays in colour sections. To no avail – suspect done something wrong…
I need to reverse all the pages this element appears – except currently for 1 page which needs to run normally.Thanks.
Site: https://maktabapp.com/
Tried all of these
@media only screen and (max-width: 989px) {
.responsive #top .flip .flex_column_table
.flex-container .entry-content-wrapper {
display: flex !important;
flex-direction: column-reverse !important;
}
}@media only screen and (max-width: 989px) {
.flip-mobile .flex_column_table {
display:flex !important;
flex-direction:column-reverse;
}
.flip-mobile .flex_column_table .flex_column {
flex:0 0 auto;
}
}@media only screen and (max-width:989px) {
.column_flex_reorder .entry-content-wrapper {
display: flex !important;
flex-direction: column-reverse;
flex-wrap: nowrap;
}
}@media only screen and (max-width:989px) {
.column_flex_reorder .entry-content-wrapper {
display: flex !important;
flex-direction: column;
flex-wrap: nowrap;
}
.column_flex_reorder .av_one_fourth:nth-child(1) {
order:4
}
.column_flex_reorder .av_one_fourth:nth-child(2) {
order:3
}
.column_flex_reorder .av_one_fourth:nth-child(3) {
order:2
}
.column_flex_reorder .av_one_fourth:nth-child(4) {
order:1
}
}@media only screen and (max-width: 989px) {
.flip-mobile .flex_column_table {
display:flex !important;
flex-direction:column-reverse;
}
.flip-mobile .flex_column_table .flex_column {
flex:0 0 auto;
}
}January 9, 2023 at 7:35 pm #1378040Hey Matt,
Are you using default columns in your layout? If so, then you can set a reverse order on mobile in the element options. Check under Row Settings->Row Screen Options->Column Behaviour When Fullwidth. If you should need to set the order, then you can do so under Advanced->Responsive->Mobile Breakpoint Position.
The page you linked to is not showing any content, please check that if you should need any further help.
Best regards,
RikardJanuary 9, 2023 at 7:50 pm #1378049You may need to baby me through this :-)
Where can I find Row settings / Row Screen options etc.? Theme file editor / Enfold theme options / Colour blocks themselves…
Here is one of the pages below. As mentioned there is one page currently using the same elements which needs to flow normally on smaller screens.
January 9, 2023 at 7:55 pm #1378050Here is a screenshot of the element.
Its a colour section with an array of code blocks and text blocks within 1/4 page block elementsJanuary 9, 2023 at 8:14 pm #1378055Basically have 4-6 rows of 4 columns / colour section
Each row needs to reverse on smaller screens – break point at 990pxThe current oder:
1 2 3 4
5 6 7 8
9 10 11 12
…
They need to run tablet:
4 3
2 1
8 7
6 5
12 11
10 9
And on mobile:
4
3
2
1
8
7
6
5
12
11
10
9January 9, 2023 at 8:48 pm #1378058Found the row setup – works but jumps from desktop to mobile view – 4 block row to single – bypassing tablet 2 block rows…
1 2 3 4
5 6 7 8
9 10 11 12No table view 2 block rows.
And on mobile:
4
3
2
1
8
7
6
5
12
11
10
9- This reply was modified 1 year, 10 months ago by mattwalt.
January 10, 2023 at 8:51 am #1378089Hi,
Thank you for the update.
Have you tried adjusting the Advanced > Responsive > Mobile Breakpoint Position option to adjust the position of the column on mobile view? You can also create another set of columns with different order and use the Advanced > Responsive > Element Visibility options to toggle the elements’ visibility on different screen sizes.
Best regards,
IsmaelJanuary 10, 2023 at 12:21 pm #1378107Yes – on the smaller option I get 2 blocks but they are flowing normally not reversing.
January 10, 2023 at 12:26 pm #1378108I have about 75 pages of these to do… So to set up multiple screen displays for each page x 7-8 rows could be a real slog to do that way…
Is there no way to do this more aimed at the colour blocks themselves – possibly giving them an ID?
January 10, 2023 at 12:47 pm #1378117Surely something like this would be more elegant solution i approach for my situation? Though struggling to get it to work :-)
@media only screen and (max-width: 989px) {
.flip-mobile .flex_column_table {
display:flex !important;
flex-direction:column-reverse;
}
.flip-mobile .flex_column_table .flex_column {
flex:0 0 auto;
}
}
Using ID .flip-mobileJanuary 11, 2023 at 7:18 am #1378204Hi,
Where can we check the issue again? The link to the test page above requires authentication. Please provide the account details in the private field.
Best regards,
IsmaelJanuary 11, 2023 at 11:19 am #1378234Hi
You can see he issue almost on every page.
Did the reversing only to 1 page (and a test page)
Shouldn’t require authentication to view… Site has a licence key but for some reason isn’t being accepted.
Thanks MattJanuary 11, 2023 at 11:22 am #1378235Purchase code – created an api key – but its not accepting
January 11, 2023 at 11:25 am #1378238Created a user account
January 12, 2023 at 8:08 am #1378349Hi,
The items in the rows are correctly reversed on mobile view. Did you find the Column Behaviour When Fullwidth settings in the Row Settings > Row Screen Options toggle?
Best regards,
IsmaelJanuary 12, 2023 at 11:51 am #1378368Yup found the toggle. It works great for smaller screens…
But as mentioned after – the issue is that for this site on sizes between 990 and 690 either get non reversed 2 block rows or a massive block image…
Need to ideally get a 2 row column which is also reversing.One suggestion was to set different view for different devices – but having to deal with 100’s of rows on the site that its probably an impractical approach.
Is there not a way to use the colour block element to do the column reversal?Thanks
January 13, 2023 at 8:55 am #1378536Hi,
We are not really sure what you meant, but the option to reverse the columns in the row is already available. All you need to do is toggle it. Unfortunately, there is no option to update the elements in bulk, if that is what you’re asking. You might be able to use the css code that you posted above, but you will still have to manually apply the custom css class name to the elements, which means that you will still have to edit the pages one at a time.
Best regards,
IsmaelJanuary 13, 2023 at 11:04 pm #1378654Hi
Yes I see the toggle works – and allows for 2 break points.
There are 2 issues.Firstly the break points – when setting at the narrower I get a brief area where I get a double column (which I need) but that double column is not reversing. When set to the wider break point works – However the image of the code block displays huge on table/mobile landscape (actually cuts off 1/2 – 1/3 of the image which isn’t ideal.
Secondly there are like 173 pages with 7-8 rows each… So doing a more per/page based solution would be the least work.
I tried the CSS approach but for some reason it doesn’t seem to work…
Please help.
Thanks M
January 15, 2023 at 12:46 am #1378721Hi,
Thank you for your patience as I understand you have adjusted your test page /lesson-tester/ so it is correct for mobile and desktop, and the issue now is tablet when it is two columns.
But you wrote above that on tablet it should be:
4 3
2 1this seems to be the way it is:
is this correct?for desktop it is
4321
mobile it is
1
2
3
4
and these are correct?so for your other pages like /lesson-p1_33c/ which I understand you have not done anything to,
desktop is correct with (top row only):
ZIQ YAQ KIN YAK
tablet with two rows is correct with (top row only):
ZIQ YAQ
KIN YAK
and mobile with one row should be
YAK
KIN
YAQ
ZIQ
so for this page mobile is the only one wrong right now, correct?Best regards,
MikeJanuary 15, 2023 at 1:48 am #1378723Correct
Being Arabic text the info needs to run from right to left.
So on Desktop runs correctly
If I reverse the rows then is also works correctly on mobile.
So on Mobile runs correctly.
The issue is I really do need it reversed which seems to be the issue at the moment – this runs to the same order as on desktop.
So the correct order should run:
desktop is correct with (top row only):
ZIQ YAQ KIN YAK
tablet with two rows is correct with (top row only): The 2 left hand columns should display above the right hand.
KIN YAK
ZIQ YAQ
and mobile with one row should be
YAK
KIN
YAQ
ZIQ
As mentioned there are like 135 odd pages each with 7-8 rows to reverse so doing by page/element rather than by row would be ideal – but if it has to be by row – then I have no choice :-)Failing being able to reverse the rows on tablet – I could then go direct to the below 990px wide option – but then would need to set a max size for the blocks so they don’t display massive on tablet view – say max 400px or something… The images are saved out at 700px. Hoping this doesn’t mean adding code to the individual blocks ;-)
Thanks MJanuary 15, 2023 at 1:58 am #1378724See pic attached
January 15, 2023 at 2:43 pm #1378738Hi,
Thank you for the screenshot it helped explain the order, so I tested on the /lesson-tester/ page as you had applied the reverse order on mobile in the element options, this option wraps each row in an extra div making the reversal possible with flex.
I tested this css for tablet and it seems to work:@media only screen and (min-width: 768px) and (max-width: 989px){ .responsive #top #wrap_all .av-mobile-columns-flex { display: flex; flex-direction: row-reverse; flex-wrap: wrap; } .responsive #top #wrap_all .av-mobile-columns-flex .av_one_fourth:not(.column-top-margin) { margin-top: 50px; } }
lets try this on the /lesson-p1_33c/ page, set the reverse order on mobile in the element options, and test this css. If it works correctly then good, if not then remove the css but leave the reverse order on mobile in the element options enabled so I can test.
You will note in the above css I added a top margin for the first row because all of the other rows had a top margin, I’m not sure if this was because you had added a top margin in the backend to all rows but the first one, please check this on the /lesson-p1_33c/ page and make sure all rows have the same margin otherwise there will be no space between the top row 4 3 & 2 1Best regards,
MikeJanuary 15, 2023 at 4:12 pm #1378748That does work :-)
Removed another attempt CSS which seemed to block this at first.
As you’ve mentioned it does add extra space between the div’s
Just tested on a lesson page – works just fine. More space as mentioned but its really not noticeable.
Thanks – will now start changing the 5000 odd individual code blocks to be responsive by position (Seems to work on the by position not be simply reversing) :-/
At least its working :-)January 15, 2023 at 5:07 pm #1378755Hi,
Glad to hear this has helped, unless there is anything else we can help with on this issue, shall we close this then?Best regards,
MikeJanuary 15, 2023 at 5:17 pm #1378758Yup.
There are 2 other small things to sort – but will open new threads
thanks for the help.
January 15, 2023 at 5:20 pm #1378760Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Reversing elements in colour section on mobile’ is closed to new replies.