# Exported blocks not visible in WordPress (solved)

**URL:** <https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750>\
**Category:** Bug Reports\
**Tags:** bug, blocks\
**Created:** [August 2, 2022, 6:33pm UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750 "2022-08-02T18:33:14Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Wolfgang.Hartl](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/wolfgang.hartl/32/4621_2.png) [@Wolfgang.Hartl](https://forum.pinegrow.com/u/Wolfgang.Hartl)\
**Post date:** [August 3, 2022, 6:01pm UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/21 "2022-08-03T18:01:25Z")

</div>

Do not export seems for me the approach which fits more in the current workflow.

But that would mean, that PG has to generate all files which normally get auto exported whenever you turn your project into a WP-Theme into your project-folder (for flagging them later). So that you can manually pick then which files not to export, default could still remain then to export everything and as you do it with other files you would need to add the “do not export” to files you don’t want to be auto-generated!

Written in a few lines, but I guess could be not that easy to implement, as always with feature requests! 😉

---

<div class="post-metadata">

**Author:** ![iHuman](https://avatars.discourse-cdn.com/v4/letter/i/b38774/32.png) [@iHuman](https://forum.pinegrow.com/u/iHuman)\
**Post date:** [August 3, 2022, 11:08pm UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/22 "2022-08-03T23:08:48Z")

</div>

Got the light theme working in PG Live. Temporary mind lapse. Age happens!

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [August 4, 2022, 11:19am UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/23 "2022-08-04T11:19:33Z")

</div>

> [@iHuman](#):
>
> I used custom headers quite often. For example, I do an include header-meta - where I can add the specific metadata, twitter card, og, etc for a client.

@iHuman why not use Function action or PHP code blocks directly in the header on the source page, so that any custom code is defined there and will be exported into the header.php? In this way, everything would defined be in the same place (in index.html for example).

---

<div class="post-metadata">

**Author:** ![iHuman](https://avatars.discourse-cdn.com/v4/letter/i/b38774/32.png) [@iHuman](https://forum.pinegrow.com/u/iHuman)\
**Post date:** [August 8, 2022, 12:34am UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/24 "2022-08-08T00:34:05Z")

</div>

@matjaz when I insert anything into Pinegrows header.php (includes, etc) it get’s overwritten. I guess I could add custom functions for meta-data etc in the functions.php file (wait…can’t edit that one either)…the custom.php file, but it’s not ideal. Any reason you overwrite header.php and functions.php? How about an option to disable overwrites selectively?

Most of the sites I was building prior to Pinegrow were all hand coded. (Also all Tailwind with Gulp) So I have a system of includes that works really well for me. It’s not necessary for me to have a visual editor like Pinegrow…but I do enjoy it! Pinegrow has convenient features. Can you explain why you overwrite certain files?

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [August 10, 2022, 4:16pm UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/25 "2022-08-10T16:16:49Z")

</div>

@iHuman to add custom code in functions.php, do it in the source project (not in the exported theme) and add your code outside of PG generated sections:

```auto
/* Pinegrow generated Load Text Domain Begin */

//This will be overwritten
    
/* Pinegrow generated Load Text Domain End */

//This will be kept

```

That said, if you regenerate function.php, any custom edits will be lost.

Therefore it is best to add custom code into `inc/custom.php` file in the source project.

PG overwrites files that it generates, including headers and function.php.

We could add the following simple logic:

1. PG generates file A
2. If file A exists in the source project, do not export the file A and instead use the A from the source project

There would have to be some kind of visible warning in order to let users know what is happening, and to avoid confusion as to why some changes done to HTML are not reflected in the exported theme.

This would not work for functions.php because PG needs to control many things in there. The above mentioned would have to be used for that.

---

<div class="post-metadata">

**Author:** ![iHuman](https://avatars.discourse-cdn.com/v4/letter/i/b38774/32.png) [@iHuman](https://forum.pinegrow.com/u/iHuman)\
**Post date:** [August 10, 2022, 5:03pm UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/26 "2022-08-10T17:03:04Z")

</div>

Great info @matjaz! Adding the logic for the header.php would be wonderful. Thank you. The more I use Pinegrow…the more I love it! I’ve coded sites without a visual editor, moved to Elementor for a while, then Oxygen. I came across Bricks and Pinegrow about the same time…and have been loving it! I’ve been spreading the word on an Oxygen group I’m part of. Pinegrow is a great app, with excellent support. Kudos!

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [August 17, 2022, 4:42pm UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/27 "2022-08-17T16:42:56Z")

</div>

The latest PG Live 6.7.2 addresses the issues mentioned in this topic. See details below and please report any issues into their respective forum topics. Note, these features are considered Beta for now.

> **[Pinegrow Live update log | Pinegrow Web Editor](https://pinegrow.com/download/pinegrow-live/pinegrow-live-update-log/#6-7-2-august-17-2022)**
>
> The exciting story of Pinegrow Live updates.

---

<div class="post-metadata">

**Author:** ![madjedo](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@madjedo](https://forum.pinegrow.com/u/madjedo)\
**Post date:** [August 19, 2022, 7:54am UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/28 "2022-08-19T07:54:45Z")

</div>

This is affecting WooCommerce themes/sites aswell.

Basically for anyone who is new to the builder and learning it for the first time (like me), will be doing alot of deleting/redoing/copy/paste/moving elements/changing attributes/changing wordpress actions etc…

So we are destined to reproduce these bugs.

At the moment for me, I cant edit the header & footer for my product archive pages. No matter what I do, they stay the same, hardcoded. I tried deleting the WP export folder, then the header and footer got deleted completely (or replaced by default WP header&footer) but didn’t get replaced with my own custom header and footer when I re-exported the theme.

Are you sure you cant release the bug fixes you mention in a sub-release so we can try and hope it works, so we can continue working on our sites and be happy Pinegrow users 🙂

I sent a ticket to your support aswell regarding this.

Regards,

Majd

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [August 19, 2022, 11:03am UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/29 "2022-08-19T11:03:31Z")

</div>

@madjedo Although they are related to a header concern, there is no immediate indication that your issues are similar. As you indicate, a support procedure is underway with you.

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [August 19, 2022, 6:36pm UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/30 "2022-08-19T18:36:51Z")

</div>

So the issue is now fixed and was not related. 🙂

---

<div class="post-metadata">

**Author:** ![MageHD](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/magehd/32/6060_2.png) [@MageHD](https://forum.pinegrow.com/u/MageHD)\
**Post date:** [March 21, 2024, 10:27pm UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/31 "2024-03-21T22:27:28Z")

</div>

I’m not sure if the issue resurfaced for me. I’m actually following @adamslowe YouTube tutorials to get the hang of Pinegrow. I’ve created the block and added the action yet Wordpress doesn’t show the block.

---

<div class="post-metadata">

**Author:** ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)\
**Post date:** [March 21, 2024, 11:01pm UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/32 "2024-03-21T23:01:05Z")

</div>

Sorry to ask such an obvious question, but have you activated the block plugin inside WordPress?

(At least once per week I try to add a block only to realize that I never activated the plugin for it)

---

<div class="post-metadata">

**Author:** ![MageHD](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/magehd/32/6060_2.png) [@MageHD](https://forum.pinegrow.com/u/MageHD)\
**Post date:** [March 21, 2024, 11:38pm UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/33 "2024-03-21T23:38:30Z")

</div>

Interesting enough there isn’t one on the list. And no worries, I know troubleshooting starts with the obvious. lol

---

<div class="post-metadata">

**Author:** ![MageHD](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/magehd/32/6060_2.png) [@MageHD](https://forum.pinegrow.com/u/MageHD)\
**Post date:** [March 22, 2024, 12:56am UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/34 "2024-03-22T00:56:06Z")

</div>

Just for the sake of argument I followed the Pinegrow tutorial here [Creating Your First Block | Pinegrow Web Editor](https://docs.pinegrow.com/docs/wordpress/creating-custom-wordpress-blocks/creating-a-new-block-type/)

It resulted in the same issue.

---

<div class="post-metadata">

**Author:** ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)\
**Post date:** [March 22, 2024, 2:18am UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/35 "2024-03-22T02:18:50Z")

</div>

a few more questions:

1. Are you using the desktop version of Pinegrow or the WP plugin?
2. If you are using the desktop version, is the plugin path in your WordPress settings (in Pinegrow) set to a subdirectory in your WordPress plugin directory?
3. Can you see the exported files in the plugin path?

---

<div class="post-metadata">

**Author:** ![MageHD](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/magehd/32/6060_2.png) [@MageHD](https://forum.pinegrow.com/u/MageHD)\
**Post date:** [March 23, 2024, 3:26am UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/36 "2024-03-23T03:26:22Z")

</div>

I’m using the desktop version which is 7.72 with Wordpress Version 6.4.3. Well, it’s a theme not a plugin. The short answer is yes. I’ve made it pretty far in your YouTube tutorial so I would think I would be having other issues if it didn’t. Please do correct me if i’m wrong.

It seems to have added code in functions.php, and seems to have created the employee-grid\_register.php file, and employee-grid.js files.

I have Blocks tye set to Regular Javascript/React blocks (if no PHP WP actions). Nothing else is changed from default.

Sorry I couldn’t get screenshots sooner. Since I’m a Pinegrow newbert, the forum wouldn’t let me upload. lol

 ![2024-03-22_23-43](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/b/bf01a76edda378786d2ffee23fd368c05ac5ca3e.jpeg)  
 ![2024-03-22_23-45](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/a/a9b8a224aab4914e8a578dcbcb8df5ede1e34349.jpeg)  
 ![2024-03-22_23-45_1](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/f/fe1681d6268e02efdd20319e9cc96d905ff49772.png)

---

<div class="post-metadata">

**Author:** ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)\
**Post date:** [March 23, 2024, 3:53am UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/37 "2024-03-23T03:53:27Z")

</div>

Everything looks okay from the screenshots you posted, but it’s odd that you are having this same issue with one of my tutorials and one of Pinegrow’s tutorials.

Is there any chance you can zip up your project directory and post a link? It might also be worth opening a support ticket since they probably have certain things they instinctively know can trip people up.

---

<div class="post-metadata">

**Author:** ![MageHD](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/magehd/32/6060_2.png) [@MageHD](https://forum.pinegrow.com/u/MageHD)\
**Post date:** [March 23, 2024, 6:12am UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/38 "2024-03-23T06:12:37Z")

</div>

Sure. Here’s a link. [https://drive.google.com/file/d/1U6o1uDuNScVAr0fWk\_AnER5CmCrAFTgp/view?usp=sharing](https://drive.google.com/file/d/1U6o1uDuNScVAr0fWk_AnER5CmCrAFTgp/view?usp=sharing)

Your training is spot besides a slight hiccup with me not reading a PG dialog box properly. I was surprised myself.

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [March 23, 2024, 10:53am UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/39 "2024-03-23T10:53:19Z")

</div>

Hello Gary,

I just loaded your theme into Pinegrow (7.93 in my case), exported it to a local WordPress session, activated the theme, and I can see the block you defined.

 ![SCR-20240323-kqwn](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/2/26d97ec0948963f27ef2b2005a8704a4bd04e514.jpeg)

note: Later during the week-end, I will try with 7.72.

Update: Same project loaded with 7.72 does not load/show the block.  
**Investigations in progress** to determine what is causing the issue.

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [March 23, 2024, 11:45am UTC](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750/40 "2024-03-23T11:45:23Z")

</div>

@MageHD

**FOUND!**  
Gosh, I almost forgot about this one 🤖:

You can read all about the issue here \> [How to prevent WordPress 6.4 breaking the editing of all Pinegrow blocks | Pinegrow Web Editor](https://pinegrow.com/blog/how-to-prevent-wordpress-6-4-breaking-the-editing-of-all-pinegrow-blocks/)

**SHORT** : This is a known “specific situation” where you will have to use the dedicated plugin (that [we provide for free](https://pinegrow.com/blog/how-to-prevent-wordpress-6-4-breaking-the-editing-of-all-pinegrow-blocks/#download-and-install-the-plugin)) on your WordPress site to make your **blocks created with Pinegrow \< 7.8** visible and usable on **WordPress setups \>= 6.4**.

Alternatively, you can renew/upgrade Pinegrow to the latest version that no longer requires the use of any plugins.

[Previous page](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750.md?page=1)

[Next page](https://forum.pinegrow.com/t/exported-blocks-not-visible-in-wordpress-solved/6750.md?page=3)
