# Google Search Console 设置问题

**URL:** https://meta.discourse.org/t/google-search-console-setup-problems/96076
**Category:** Support
**Created:** [2018年八月31日 09:41 UTC](https://meta.discourse.org/t/google-search-console-setup-problems/96076 "2018-08-31T09:41:29Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![anon88550267](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@anon88550267](https://meta.discourse.org/u/anon88550267)
#### Post date: [2018年八月31日 09:41 UTC](https://meta.discourse.org/t/google-search-console-setup-problems/96076/1 "2018-08-31T09:41:30Z")

</div>

I tried to verify my google search console. I followed this guide: [How to set up Google Webmaster Tools validation in Discourse?](https://meta.discourse.org/t/how-to-set-up-google-webmaster-tools-validation-in-discourse/24619):

Unfortunately, it didn’t work for me. Here’s what I tried:

1. Created a new theme component
2. Added the html tag to the theme components   
 ![image](https://global.discourse-cdn.com/meta/original/3X/f/4/f45264a076aba3c7cf97cf1a7db7722181db12ba.png)
3. Then I added the theme component to each available theme  
 ![image](https://global.discourse-cdn.com/meta/original/3X/2/0/20a6be8b1b79f2433cb179c4d251388f6c90a690.png)

Now here’s the problem. When I click “Preview”, then I find the google-site-verification tag.

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/f/9fc5658e2d5e7dabbc2d5573ed6a4e5268b76bbb.png)

But as soon as I leave the preview mode, it’s gone. Also Google Search Console can’t find it 😭  
My forum is here: [https://forum.5upermakers.com](https://forum.5upermakers.com)

To make sure it’s not an issue that’s already fixed, I updated discourse about 10 minutes ago. Still the same problem.

Am I missing something here?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018年八月31日 11:24 UTC](https://meta.discourse.org/t/google-search-console-setup-problems/96076/2 "2018-08-31T11:24:14Z")

</div>

If you can’t figure it out, why don’t you use DNS verification instead?

---

<div class="post-metadata">

### Author: ![anon88550267](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@anon88550267](https://meta.discourse.org/u/anon88550267)
#### Post date: [2018年八月31日 11:45 UTC](https://meta.discourse.org/t/google-search-console-setup-problems/96076/3 "2018-08-31T11:45:35Z")

</div>

I’m not an expert here 😋  
But, I think DNS verification is not available for google search console. Here’s a screen shot of the different options I can choose from:

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/d/dd955fb49c0dc619a4e4bd40470860757c3e61ce.png)  
Seems like DNS is not available yet.

Do you have an idea what could be wrong here? Was my approach correct?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018年八月31日 11:49 UTC](https://meta.discourse.org/t/google-search-console-setup-problems/96076/4 "2018-08-31T11:49:02Z")

</div>

Did you add this to the default theme are you running latest?

---

<div class="post-metadata">

### Author: ![anon88550267](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@anon88550267](https://meta.discourse.org/u/anon88550267)
#### Post date: [2018年八月31日 11:55 UTC](https://meta.discourse.org/t/google-search-console-setup-problems/96076/5 "2018-08-31T11:55:53Z")

</div>

I added the theme component that I called “Google Verification” to all three default themes.

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/d/4d4494550d9a1f931db06ed0050fd1db62fed579.png)

Here is some additional info:

- I haven’t checked the “Theme is enabled by default” for any theme.
- Before I added “GoogleVerificaton” to “Theme Components” there was a little checkbox, I didn’t check that. Now it’s gone. It only reappears if I remove the “GoogleVerification” component
- I already tried a different Theme component to add some menu links back to my homepage with CSS and HTML. Is it possible that I broke something there?

I did perform an update this morning. I didn’t work before and also doesn’t work after the update.

For me it feels like it removes any theme component that I add there. Because the component I created for the custom html and CSS header, worked for a while but then stopped working - so I removed it a couple days ago.

Is it possible that I permanently broke something by adding custom CSS, even if I removed all custom CSS afterwards?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018年八月31日 12:02 UTC](https://meta.discourse.org/t/google-search-console-setup-problems/96076/6 "2018-08-31T12:02:18Z")

</div>

You need to have one of your themes set as enabled by default

---

<div class="post-metadata">

### Author: ![anon88550267](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@anon88550267](https://meta.discourse.org/u/anon88550267)
#### Post date: [2018年八月31日 12:06 UTC](https://meta.discourse.org/t/google-search-console-setup-problems/96076/7 "2018-08-31T12:06:18Z")

</div>

Hey awesome, that solved it 😍. Thank you very much.  
 ![image](https://global.discourse-cdn.com/meta/original/3X/a/8/a84d5e880793da019f7cb0615cd61c392abb2668.png)

Sry if I might have missed that somewhere in the instructions.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2018年九月30日 12:12 UTC](https://meta.discourse.org/t/google-search-console-setup-problems/96076/8 "2018-09-30T12:12:30Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
