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

Solved

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

MS-Ecom2024
Excursionist
33 1 9

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:

MSEcom2024_0-1704710336328.png

 

 

The reference:

MSEcom2024_1-1704710336258.png

 

 

Accepted Solutions (2)
Moeed
Shopify Partner
5426 1468 1753

This is an accepted solution.

Hey @MS-Ecom2024 

 

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

<style>
button.collapsible-toggle.text--strong {
    border: solid 1px black;
    border-bottom: 0;
}
.faq__item .collapsible__content {
    border: solid 1px black;
    border-bottom: 0;
    border-top: 0;
}
</style>

RESULT:

Moeed_0-1704714136489.png

 

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

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Made4uo-Ribe
Shopify Partner
8272 1982 2432

This is an accepted solution.

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:

Made4uoRibe_0-1704720552684.pngMade4uoRibe_1-1704720560703.png

 

 

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

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Replies 6 (6)

Moeed
Shopify Partner
5426 1468 1753

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 </body> tag

<style>
button.collapsible-toggle.text--strong {
    border: solid 1px black;
    border-bottom: none;
}
</style>

RESULT:

Moeed_0-1704711244329.png

 

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

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


MS-Ecom2024
Excursionist
33 1 9

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: 
Bildschirmfoto 2024-01-08 um 12.04.49.png

 

Reference: 

MSEcom2024_0-1704712032246.png

 

Moeed
Shopify Partner
5426 1468 1753

Hey @MS-Ecom2024 

 

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

<style>
button.collapsible-toggle.text--strong {
    border: solid 1px black;
    border-bottom: 0;
}
.faq__item .collapsible__content {
    border: solid 1px black;
    border-bottom: 0;
}
</style>

RESULT:

Moeed_0-1704712620124.png

 

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

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


MS-Ecom2024
Excursionist
33 1 9

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! 

Moeed
Shopify Partner
5426 1468 1753

This is an accepted solution.

Hey @MS-Ecom2024 

 

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

<style>
button.collapsible-toggle.text--strong {
    border: solid 1px black;
    border-bottom: 0;
}
.faq__item .collapsible__content {
    border: solid 1px black;
    border-bottom: 0;
    border-top: 0;
}
</style>

RESULT:

Moeed_0-1704714136489.png

 

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

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


Made4uo-Ribe
Shopify Partner
8272 1982 2432

This is an accepted solution.

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:

Made4uoRibe_0-1704720552684.pngMade4uoRibe_1-1704720560703.png

 

 

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

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.