Copying a Section from on Theme to another

Copying a Section from on Theme to another

JohnathanC
Excursionist
16 0 3
Hi.
I'm looking at changing my Theme from Broadcast to Modular. In Broadcast it has a Dynamic Section where you can add a Page as a section on the Landing page.
I create published micro-pages in Shogun and then using the Shopify Section to display that page like an inline frame. 
 
Would it be possible to Add a Section in the Theme Code of Modular and copy the code from Broadcast to create this section so I can continue using Shogun pages as sections on the Modular Landing page
 
Many thanks
John

 

Replies 9 (9)

BSalim
Excursionist
10 2 5

Ideally a section is very modular. Adding and removing sections from a theme are equivalent to adding and removing the section files in the theme. What I would suggest is that in your current theme you locate the section that you would like to migrate and then copy the contents of that section file and then edit the code of the new theme and create a new section and paste the contents in there.

It is possible that when you save and preview the section might not function properly because of globals that the section is using like certain theme settings that are present in the old theme but not in the new so in the new theme these settings are undefined.

You can find the code for the section in Admin > Online Store > Themes > Actions > Edit Code, on the left sidebar you will see folders and under the section folder you will be able to locate the section of your choice.

BSalim_0-1631013449183.png

And in the same panel you will also be able to add a new section for your new theme.

 

Besvicky
Tourist
16 0 1

To copy a section from on theme is simple and will not cost you anytime. I can help with this.

JohnathanC
Excursionist
16 0 3

Thanks @Besvicky that would be great – I'll get it set up and drop you a line

Thanks again

sal_deb
Tourist
3 0 1

any chance you could assist me in the same situation?

JohnathanC
Excursionist
16 0 3

Thanks for taking the time to reply, it's really helpful. I wanted to find out if it is possible prior to buying the theme.

Thank you

Tira
Shopify Staff (Retired)
1260 92 223

Hey, John. 

I’m here to help. Thanks @BSalim for your insight and @Besvicky for chiming in to help.

It sounds like you’re using a page-building app from our App Store. That’s really cool what you do with your page-building app. Page building apps are great for customizing your theme on your own.

Are you looking to copy a section from one theme and paste it into another theme? If so, this isn’t recommended as it looks like the themes you’re using are Paid themes from our Theme Store (Modular and Broadcast). Each theme has different coding that is specific to each theme, so it isn’t recommended to copy code from one theme to another. 

I recommend reaching out to the developer of the new theme to chat with them to let them know what kind of section you want to add, and they can provide you with guidance for your request. Here is our help doc with the steps where you can find support for your theme.

You can add a new section as @BSalim mentioned earlier. Here is our help doc with the steps to add a section.

I am curious, why is it important for you to switch themes?

To learn more visit the Shopify Help Center or the Community Blog.

JohnathanC
Excursionist
16 0 3

Hi @Tira 

Thanks for taking the time to help.

I initially reached out to the Theme Developers and they said that I can use their 'Add Custom HTML' section to display pages. I asked Shogun this but they said due to their style sheets the content wouldn't display correctly. I went back to the Theme developers and they said they do not offer any customisation and I should post on this board and speak to a Shopify Developer. It seems like a pretty simple section to create as it just creates an inline frame to display the HTML page, so I just wanted clarification prior to buying the theme.

I want to change Themes because my current theme Broadcast, like the majority of Shopify Themes I've tested has poor customisation and optimisation for Mobile devices – it's all desktop focussed, there's no option for offering alternative images or typography scaling for small portrait screens.

93% of our audience are on mobile which is why I've had to customise every page to create two sites, one for mobile and one for desktop which I can do in the Shogun App

 

Thanks

John

Tira
Shopify Staff (Retired)
1260 92 223

Hey, John. 

I really appreciate you sharing your process with me and the Shopify Community. I also love that you reached out to the theme developers and the app developer prior to posting to discuss your options. While it sounds like they weren’t able to assist directly with this customization, I do agree with them that reaching out to a developer would be the best option here. 

This is also a great observation about the themes, and I appreciate you doing your own research and taking the time to create multiple customization for your theme. 

Have you looked into hiring a Shopify Expert before? Shopify Experts can help with customization to enhance the features on your store. You can find a list of Shopify Experts on our landing page.

I am also curious to see what the Shopify Community has to suggest! Does anyone else have any other thoughts?

To learn more visit the Shopify Help Center or the Community Blog.

theycallmemakka
Shopify Partner
1810 438 473

Hi @JohnathanC 

Yes, great news! Shopify has recently introduced a copy and paste feature in the Theme Customizer, and it’s exactly what you're looking for. 🙌

You can now copy an entire section, including all its blocks, images, and text, and paste it onto another template. This is super helpful for saving time and keeping your design consistent across different pages.

 

Read more at https://mangitmaharjan.com.np/shopifys-new-feature-copy-and-paste-sections-in-theme-customizer/

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com