# Problem with WP PHP Code

**URL:** https://forum.pinegrow.com/t/problem-with-wp-php-code/766
**Category:** Pinegrow WP
**Created:** [March 9, 2017, 6:08pm UTC](https://forum.pinegrow.com/t/problem-with-wp-php-code/766 "2017-03-09T18:08:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![breakdown27](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/breakdown27/32/478_2.png) [@breakdown27](https://forum.pinegrow.com/u/breakdown27)
#### Post date: [March 9, 2017, 6:08pm UTC](https://forum.pinegrow.com/t/problem-with-wp-php-code/766/1 "2017-03-09T18:08:14Z")

</div>

Hi,

I bought Pinegrow PRO a few hours ago and im going to design WP themes.

The problem that i am having is that when i add Home URL to my logo and then i press CTRL+P to preview the PHP code that it should generate. It is just a blank window and no PHP code what so ever.

If i open the index.html with notepad++ i can see that the program add this code:  
\<a class=“navbar-brand” href="#" **wp-site-name wp-home-url wp-home-url-set** =“href”\>Brand

That for sure aint going to work. 😛

The Plugins i have activated is:  
**Bootstrap 3.3.7**  
**Plain HTML**  
**Server-side Scripts**  
**WordPress**

I have searched the web and the forum but could not find anyone with the same problem as me…

Best Regards,  
Breakdown27

---

<div class="post-metadata">

### Author: ![Rob](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/rob/32/9_2.png) [@Rob](https://forum.pinegrow.com/u/Rob)
#### Post date: [March 9, 2017, 11:42pm UTC](https://forum.pinegrow.com/t/problem-with-wp-php-code/766/2 "2017-03-09T23:42:35Z")

</div>

@breakdown27 hi. Are you on Linux windows or mac? Have you tried uninstalling and reinstalling Pinegrow?

---

<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 10, 2017, 11:49am UTC](https://forum.pinegrow.com/t/problem-with-wp-php-code/766/3 "2017-03-10T11:49:24Z")

</div>

I need to check, but it is possible that in some specific situations, code view is not active.  
Whatever the case, the PHP code view is not a view of the “actual” code but a preview of what will be exported.

Then, what you see in the index. **HTML** are the tags added by Pinegrow to the HTML template so it can proceed to the magic. during the WordPress theme export.

So the question is more, can you see the code when you **Export** the theme ? (please, check the php file in your theme folder)

---

<div class="post-metadata">

### Author: ![itsmeleo](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/itsmeleo/32/19_2.png) [@itsmeleo](https://forum.pinegrow.com/u/itsmeleo)
#### Post date: [March 12, 2017, 10:15am UTC](https://forum.pinegrow.com/t/problem-with-wp-php-code/766/4 "2017-03-12T10:15:01Z")

</div>

Untill you don’t export your theme you can’t preview the PHP code using Pinegrow, so frst must save and export default theme then you can view the PHP code of certain tags where you have added wordpress related or normal php code

---

<div class="post-metadata">

### Author: ![breakdown27](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/breakdown27/32/478_2.png) [@breakdown27](https://forum.pinegrow.com/u/breakdown27)
#### Post date: [March 13, 2017, 10:11am UTC](https://forum.pinegrow.com/t/problem-with-wp-php-code/766/5 "2017-03-13T10:11:53Z")

</div>

I fixed it when i first opened a template before i open a blank html file! But thanks anyways! 🙂
