Viewing 26 posts - 1 through 26 (of 26 total)
  • Author
    Posts
  • #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;
    }
    }

    #1378040

    Hey 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,
    Rikard

    #1378049

    You 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.

    #1378050

    Here is a screenshot of the element.
    Its a colour section with an array of code blocks and text blocks within 1/4 page block elements

    #1378055

    Basically have 4-6 rows of 4 columns / colour section
    Each row needs to reverse on smaller screens – break point at 990px

    The 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
    9

    #1378058

    Found 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 12

    No 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.
    #1378089

    Hi,

    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,
    Ismael

    #1378107

    Yes – on the smaller option I get 2 blocks but they are flowing normally not reversing.

    #1378108

    I 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?

    #1378117

    Surely 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-mobile

    #1378204

    Hi,

    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,
    Ismael

    #1378234

    Hi
    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 Matt

    #1378235

    Purchase code – created an api key – but its not accepting

    #1378238

    Created a user account

    #1378349

    Hi,

    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,
    Ismael

    #1378368

    Yup 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

    #1378536

    Hi,

    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,
    Ismael

    #1378654

    Hi
    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

    #1378721

    Hi,
    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 1

    this seems to be the way it is:
    Enfold_Support_0076.jpeg
    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,
    Mike

    #1378723

    Correct
    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 M

    #1378724

    See pic attached

    #1378738

    Hi,
    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;
    }
    }

    Enfold_Support_0077.jpeg
    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 1

    Best regards,
    Mike

    #1378748

    That 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 :-)

    #1378755

    Hi,
    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,
    Mike

    #1378758

    Yup.

    There are 2 other small things to sort – but will open new threads

    thanks for the help.

    #1378760

    Hi,
    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

Viewing 26 posts - 1 through 26 (of 26 total)
  • The topic ‘Reversing elements in colour section on mobile’ is closed to new replies.