Create a Frame around collection on Spoke/Athens theme

Hi, You had helped me a few weeks ago put a frame around “featured product” and I would like to do it on the “simple collection” and “featured collection”.

https://mb9plr5a0nkyx5bd-20889773.shopifypreview.com/pages/genuine-mikuni-carburetor-rebuild-kits-and-parts

hey @offroadjim if you share the Screen shoot so then i can help you

I would like to add the border like this

To This

They are located on the same page

Got it
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
.collection {
    border: 1px solid black !important;
    border-radius: 10px !important;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

if this code work please do not forget to like and mark it solution

Is there a way to make it around the heading and description as well?

Got it
try this

#shopify-section-template--26095365325079__featured_collection_EDtPAb .section-content {
    border: 1px solid black !important;
    border-radius: 15px !important;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

For some reason that one is not working?

plz don’t paste the code in custom css

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

Is this correct?

It did not do anything when I previewed the page

I see that you’re pasting the css without Style tag, which leads to the css not working.

In this case, you need to wrap the style within the css tag and then you’ve to check.

Like replace the current css with this one.

<style>
#shopify-section-template--26095365325079__featured_collection_EDtPAb .section-content {
  border: 1px solid black !important;
  border-radius: 15px !important;
  padding-right: 1rem !important;
  padding-left: 1rem !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
</style>

The above solution will 100% work.

I must be doing something wrong….

Here is where I put it but still nothing

It’s better if you put css code in the “custom css” instead of theme.liquid with a style tag…

And get rid of the style tags.

Then stop using the section ID and whatever else that is, and use the class name instead. Replace this:

With this:

.section-featured-collection

Ends up being:

.section-featured-collection {
  border: 1px solid black !important;
  border-radius: 15px !important;
  padding-right: 1rem !important;
  padding-left: 1rem !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

And you may want to play around with the padding amount, depending on what your other sections look like. Refer to your other solution: Create a Frame around featured product on Spoke/Athens theme - #3 by tim_1 It could be as simple as doing the same thing you did there.

That did it! Thank you!!!

Good morning,
Would you happen to know how I make the width of the frame collection the same size as the one you did for featured products?

Got it… Thank you….

It was

.section-featured-collection {
padding: 2rem 1rem;
}
.section-content {
border: 2px solid;
border-radius: 2rem;
padding: 1rem 1rem;
}