[Support request] Change order in grid using google optimize

Home Forums Support [Support request] Change order in grid using google optimize

Home Forums Support Change order in grid using google optimize

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2372720
    Anders Nielsen

    Hi there

    How can I change the order in the grid – so I can A/B test the order of the containers?

    Video in private section.

    #2372857
    Fernando
    Customer Support

    Hi Anders,

    Can you provide the link to the page in question?

    Moreover, are you able to add CSS in you A/B testing tool or it’s just HTML? If it’s just HTML, we’ll need to add a style attribute to the Container for the order.

    Let us know.

    #2372976
    Anders Nielsen

    Hi there

    Yes I am able to add css, and/or HTML

    Link provided 🙂

    #2372980
    Fernando
    Customer Support

    I see. If you’re able to add CSS for each A/B test, try adding this:

    @media (max-width: 768px) {
        .gb-grid-wrapper.gb-grid-wrapper-d9a49627 > .gb-grid-column:nth-of-type(1) {
            order: -1;
        }
    
        .gb-grid-wrapper.gb-grid-wrapper-d9a49627 > .gb-grid-column:nth-of-type(2) {
            order: 1;
        }
    }

    Just change the order value for the other test so the order is changed.

    #2372996
    Anders Nielsen

    Fantastic – it works.

    What is the tablet max-width?

    #2373018
    Fernando
    Customer Support

    I see. Replace 768 with 1024 so that it applies for Tablet view as well.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.