What's up guys, I really need u guys help here. I'm using Brooklyn theme btw. So basically what I'm trying to do is that make the 'explore more button' to center of the div. But when I edit .btn from theme css, the 'mail subscription button' was moved to center too. I just want the 'explore more button, and keep the 'subscription button'. I attached photos of two buttons here.
Ryan- Try this and let me know how it works out. Add this code to the bottom of your assets/theme.scss.liquid file.
.feature-row__text { text-align: center; h2, .featured-row__subtext {text-align: left;} }
you can target the button's container with the text-align:center; CSS code
Ex.
<div class="container_of_title_and_button">
<a href="" class="btn">button</a>
</div>
so the CSS would be:
.container_of_title_and_button {
text-align:center;
}
That's a little trickier if you don't know how to read code.
The files are located in Online -> Themes, and then click on "edit code" on your active theme.
But actually Ryan's suggestion looks pretty much the same, only I would switch it around:
.feature-row__text { text-align: center; }
I'm just not sure if h2, .featured-row__subtext {text-align: left;} is important...
After pulling my hair out and trying everything I could find on this forum and Dr. Google, I accidentally fixed it by moving the </div> in the top line of code down to the bottom as the last line of code AFTER the </script>. Like this: </script></div>
Here's the original first and last lines of code:
<div id="product-component-youproductnumergoeshere" style="max-width:300px; margin:0 auto;"></div>
<script type="text/javascript">
</script>
Here's how I moved the </div> to after the last line of </script>:
<div id="product-component-youproductnumergoeshere" style="max-width:300px; margin:0 auto;">
<script type="text/javascript">
</script>
</div>
Here's my site with my centered buttons: https://ebolt.tv
Mind. Blown.
Time. Wasted.
Cheers,
~ Jacqueline
User | Count |
---|---|
501 | |
209 | |
130 | |
80 | |
44 |