Hello, I have a small problem with the venture topic, I don’t know if it can be solved, so I’m contacting you here, I haven’t found a similar question.
So, I want to change the margins on only two or three pages of the site, I tried to change the following:
I managed to change the code in theme.scss but change the margins of the whole site, I don’t need that.
-I read somewhere that I could call that page with # page-title .class and then write the code, but I can’t do that, nothing happens.
if anyone has a solution, I would be very grateful.
@yocave - your pages do not have any unique id, therefore if you add margin code then it will change whole site. Will need to edit code to have unique ids.
@yocave - please go to your theme.liquid file and add class=“{{ page.handle }}” to your body tag, this will add unique ids to your pages and you can use them to add any css you like
@yocave - just one thing, sorry I think it will be better to use id instead of class in theme.liquid file, then you can right click on the page, inspect and select the id/class of the page in body tag, foe example, for proizvodi page you can write , this code will change width of the page to 50%, this is just an example you can check it and remove this code, will need to change class as per the page.
Basically it all depends on the theme, if in the theme almost every DIV is done with class, it is better to use a class for page.handle, if it is done with ID then with ID .
And for this second answer, it may be harder but they can do copy / paste and just change the page name.