Hi,
I am using the refresh theme. I have a lot of blank space above FAQ on all of my product pages. How do I reduce this space?
Sarah
Main issue: Excessive blank space above the FAQ section on product pages in the Shopify “Refresh” theme.
Suggested approach: Edit theme CSS to reduce padding. Guidance provided to navigate Shopify Admin > Online Store > Themes > Edit code, locate the product page section (product-template.liquid or the FAQ’s section file), and decrease the padding-top value (CSS controls spacing).
Backup concern: The requester asked how to back up the theme before editing; a concrete backup method was not yet provided.
Latest development: The requester found relevant code in collapsible-content.liquid showing Liquid-generated CSS:
.section-{{ section.id }}-padding { padding-top: {{ section.settings.padding_top | times: 0.75 | round: 0 }}px; padding-bottom: {{ section.settings.padding_bottom | times: 0.75 | round: 0 }}px;
They asked how to edit these values. Liquid is Shopify’s templating language; these variables come from theme settings.
Key points:
Status: Unresolved/ongoing. Open questions: How to properly back up the theme; whether to change the Liquid calculation or adjust the corresponding theme settings to reduce padding.
Hi,
I am using the refresh theme. I have a lot of blank space above FAQ on all of my product pages. How do I reduce this space?
Sarah
To reduce the blank space above the FAQ section on your product pages, you’ll need to make some changes to the CSS code of your theme. Here are the steps to do that:
Here’s an example of what the CSS code might look like:
.faq {
padding-top: 40px;
}
To reduce the blank space, you can change the value of “padding-top” to a smaller number. For example:
.faq {
padding-top: 20px;
}
Save your changes and refresh the product page to see the results. If you’re not satisfied with the results, you can adjust the value of “padding-top” again until you get the desired amount of blank space.
Note: It’s always a good idea to make a backup of your theme before making any changes, so you can easily revert back if needed.
Thanks, how do i make a backup of my theme?
This is what I see in file collapsible-content.liquid
{%- style -%}
.section-{{ section.id }}-padding {
padding-top: {{ section.settings.padding_top | times: 0.75 | round: 0 }}px;
padding-bottom: {{ section.settings.padding_bottom | times: 0.75 | round: 0 }}px;
How do I edit that?