Комментарии:
This isn't working for me for some reason, anyone have any ideas on how to fix?
ОтветитьHi,
I'm looking for the most efficient way to create sections that I can use on static pages, without having to make a new section file for every single section and render that separately.
Right now, say I want to make an about page... I take the code from a section I want multiple times (for example image with text) and copy it into separate section files called about-feature-row-1, about-feature-row-2 etc. I then make a page.about template and render those sections after each other. If I would just render about-feature-row-1 multiple times, it loads the exact same thing as it has the same section id.
Is there a better way to do this?
Could I not just make a custom-feature-row and have something like a forloop on the section id, so I could render it on any static page and have unique content in it?
Thanks!
Worked perfectly - thank you!!
ОтветитьThank me later.
{% section 'feature-row' %}
{% section 'image-bar' %}
{% section 'rich-text' %}
{% section 'custom-content' %}
{%section 'hero'%}
{%section 'article'%}
{%section 'blog'%}
{%section 'cart'%}
{%section 'collection'%}
{%section ' customers/account'%}
{%section 'customers/account_activate'%}
{%section 'customers/addresses'%}
{%section 'customers/login'%}
{%section 'customers/order'%}
{%section 'customers/register'%}
{%section 'customers/reset_password'%}
{%section 'gift_card'%}
{%section 'index'%}
{%section 'list-collections'%}
{%section 'page.contact'%}
{%section 'password'%}
{%section 'product'%}
{%section 'search'%}
Why would they make this so insanely stupid
ОтветитьI added a slideshow to one of my pages but it is a giant square - completely wrong aspect ratio. How can I change this? Thanks
ОтветитьOnce you edit the sections, it will copy it to all of the pages. How can this be avoided?
ОтветитьOMG I FINALLY UNDERSTOOD HOW TO HAVE MULTIPLE SECTIONS IN ONE PAGE:
1. Follow all the steps on the template "ABOUT" from the video
2. Open your code - templates - page.about.liquid - and type in the code {% section 'featured-row' %}
3. Now go to "Sections" folder - Find file named: FEATURED-ROW.LIQUID
4. Click on it - Select all the code that it contains.
5. Now go back to "Sections" - ADD A NEW SECTION and name it: FEATURED-ROW2
6. Paste everything inside of it - SAVE IT
7. LAST STEP: Go back to page.about.liquid tab (LOOK AT STEP 2 (if confused)) and
type in: {% section 'featured-row2' %} - RIGHT BELOW THE FIRST CODE LIKE THIS:
{% section 'featured-row' %}
{% section 'featured-row2' %}
8. HIT SAVE and THAT'S IT :)
Thank you so much, this was helpful
ОтветитьThank you! this helped so much! I was able to personalize my pages took a little time but if you watch the video and proceed to do at the same time it should help guys !
ОтветитьGood Job!....
ОтветитьI added the section that I wanted, but it is a copy of the section from my home page. So if change the page section, the home page section changes as well. I see that others have the issue as well. Anyone solved it?
ОтветитьJust making sure this is a soundless video. I'm not sure. If so, brilliant. If not, it might be time to get a new laptop.
ОтветитьSurely you don't have to play with code to add sections? I added pages without code but now it looks like I have to delete those pages and add them as per this video so I can add sections. Is Shopify that awful or have I missed something?
ОтветитьYesssirrr that’s Nice thanks a lot it work perfectly
ОтветитьThank you for this! Where can I find the list of all of the sections?
ОтветитьHi! I also have a problem. When I change content on about, it changes automatically on a home page. Does anyone know why? And how to change that? Thanks
ОтветитьHi, thank you for the video. do you know the code for Image with Text Overlay. I can't seem to find it anywhere. Thanks in advance
ОтветитьMore videos on editing/coding Deput theme, please!
Ответитьno sound??
Ответить