Sorry for all the spam help requests, but I apprec...
# replo-help
c
Sorry for all the spam help requests, but I appreciate the rapid support! Any ideas why 1rem doesn't appear the same size as 16px? Is there away I can adjust what 1rem is equal to?
šŸ‘ 1
p
Hey Andres here! rem is relative to the font size of the root element which is usually as you mention 16px (default value from the browser). The detail here is that you are building under a Shopify store that could have a different default value. Also, you can always start a live chat via the editor if you need any help!
šŸ™Œ 1
t
Yes the root default value of the Shopify store html font size may be at a particular percentage. It's really advisable that the :root font size is in percentage for stability without breaking on the users browsers.
p
Should behave the same on theme pages too if is a theme styling.
c
So I checked the code and this is what I'm seeing. The font-size has a weird calc on it... If I change that to 16px, it messes up the whole sites padding and font sites. Is there no way around this?
p
You can either edit with liquid the theme code so it affects only Replo pages or use custom CSS on the Replo page https://support.replo.app/articles/2239004683-custom-css-styling You can override any theme property with CSS from Replo.
c
Ah so if I set the font size in here this will only effect Replo sections?
Once I've published the sections, this won't conflict will it?
p
If is in a section, you'll be targeting the root element. In that case it will affect the entire page (not recommended).
šŸ™Œ 1
c
Thanks Andres! That's super helpful! On another note, what would you recommend here... I am doing optimisations to the existing homepage for my client. Should I create a page and build the optimisations there, or should I build as sections and publish to the theme and simply replace the old sections with the new ones. The sections include: • Header. • Hero Banner. • Logo Carousel.
p
Depends on the needs of your client. Pages are ideal if you want to build an entire page. Shopify sections are recommended only if you want to add new sections to an existing Shopify theme page https://support.replo.app/articles/1716492430-shopify-sections If your client needs an entirely new page build a page, if your client needs to update only certain sections build Shopify sections in Replo.
c
Gotcha! What's the benefit to building a page over using sections? Apologise for all the questions
p
If you want to create a new page the most efficient is creating an entire template. Sections are mostly used when you want to add more content to an existing Shopify page (since you don't want to replace it).
c
Correct me if I'm wrong here. If my client wanted a completely new product page, I should built a template using a page in replo. But if they just wanted to improve the buy box section, or image gallery and maybe add some USP text sections further down the page. I'd use sections?
p
Correct. There are certain cases where you may build an entire page using a section instead. But that depends on the users' preferences. In your case is what you described. Oh and is important to check the type of page now that you mention a Product Page https://support.replo.app/articles/18587646791565-What-types-of-pages-can-Replo-create
c
Thanks Andres!
šŸ‘ 1