Changing CSS through XPath
I'm trying to create a splittest on a webshop, but they are using a gridbased website template, which is causing some trouble.
I'm trying to change the color of the shopping cart (tried this through UI and in variation code window), but when I change it, the changes are made on several elements on the page, where it's not supposed to be changed.
So now my question is:
Can I change the styling on a particular object using XPath or CSS Path in the variation code?
If yes... How?
I've tried this, but with no luck.
I know this probably is a bad syntax, but I'm kinda new to this kind of approach.
I retrieved the XPath from the developer tools in Chrome, so I'm guessing that is correct.
So I hope you guys can help me.
Technical Product Manager - Conversion @ Secret Escapes
Using the CSS path is definitely preferable to XPath, as XPath was designed for XML documents. What happened when you tried using the CSS Path from Chrome's developer tools?
In my experience, the value of the XPATH varies by browser.
If you share a link to the page and let us know specifically which element you want to change, someone can hook you up with a good jQuery selector for it.