How To Add A Frame To Every Question On The Q&A On Focal Theme

Topic summary

A user seeks help adding frames (borders) around individual questions in their Shopify store’s Q&A section using the Focal theme.

Initial Solution Attempt:

  • First approach involved adding CSS code to theme.liquid file above the </body> tag
  • This created borders but had issues: bottom border disappeared on the last question, and borders appeared around answers when questions were expanded

Iterative Refinements:

  • Code was updated to fix the missing bottom border on the last question
  • Further revision removed borders from answers, applying them only to questions as requested
  • Final solution successfully frames each question without affecting answers

Alternative Approach:
Another contributor suggested adding CSS directly to the theme’s stylesheet (base.css, style.css, or theme.css) in the Assets folder, targeting the .faq__item class with border and margin properties.

Technical Details:
All solutions use CSS to add 1px solid borders with specific RGBA colors and margin adjustments. The discussion includes multiple code snippets and reference images showing the progression from problem to solution.

Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

Hey guys, I want to add a frame to every question on the Q&A. I would be happy if someone could solve this problem for me.

Thats the state right now:

The reference:

1 Like

Hey @MS-Ecom2024

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Hey Moeed, there is a little issue occuring with this code. As you can see the bottom line of the last question disappears. Furthermore if you open the question the line doesn’t apply to the answer. Thanks for your help!

The last questions:

Reference:

Hey @MS-Ecom2024

Remove the previous code and add this updated code with the same steps.


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Thanks my man but between the question and the answer shoudn’t be a line. Just for the questions and after opening one, a border to “everything” regarding this question with the answer.

Thanks!

Hey @MS-Ecom2024

Apologies for the confusion, update the code like this and it should be all good then!


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

1 Like

Hi @MS-Ecom2024

Check this one.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”.

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

.faq__item {
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    margin: 5px 0 !important;
}

Result:

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like