Export layout template featured image

Hi!

I have a question regarding the best way to export layout templates. I want to export Layout templates and import them into my client’s websites. Everyone are on separate Wordpress not into MU environment.

When I export the templates using the “Customizer Export/Import” everything is working perfectly but the template screenshot (featured image) is not appearing. Here is what I got when I inspect the element


<div class="fl-template-image">
<img src>
</div>

The only way I found was to export “All content” (including posts and pages). That way the featured images are displaying correctly on the clients sites.

I don’t need to absolutely host the featured images on client site, the image URL can stay on my main site if it’s easier that way…

How can I export only the templates with the featured image associated with template? I’m certainly doing something wrong…

Thanks for your help!!

Hey Jonathan,

That is a problem with the native WP exporter/importer, the Posts’ featured images do not get exported/imported as well unless we export All Contents. And since we’re using the native exporter/importer, the same issue is happening to our Templates CPT. I’ll go ahead and file a bug report and see if we can do something about it. Thanks for the heads up! :slight_smile:

Ben

Thanks for your answer Ben.

What’s the best way to push new templates to my customers sites?

Is there a way to do it with MySQL?

or take the “all content” export and jus keep the necessary parts, Would that be complicated?

Let me know!
Jonathan

Hey Jonathan,

So our lead dev just took a peek at this issue and it seems there’s nothing we can do about it, unfortunately. You could probably report this to core though.

What’s the best way to push new templates to my customers sites?

The export/import process would be the best way it would seem. What I did before, as part of an experiment, was I deleted all pages and posts, except the templates I wanted to export on my local dev, then exported All Content. :slight_smile:

Ben

I’ll do that!!!

Thanks,
Jonathan

No worries at all! Enjoy! :slight_smile:

Ben