• I’m trying to verify ownership with google and bing webmasters by adding the meta tag to my ‘head’ section of my page. However, I assume if I add it to the theme file directly, it will be lost when I update my theme. I am running a child theme, but I don’t know where or how to paste the code into it so that the verification works. Aybody know where to add it, and what extra code (if any) I need to add to it?

    Here is my site https://www.shizlist.com
    I am running the Flatsome Theme 3.2.5 by UX themes (not sure if that matters).

    Thanks in advance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator t-p

    (@t-p)

    Moderator bcworkz

    (@bcworkz)

    Is your child theme your own or does it belong to Flatsome? If it’s your own, copy the header.php template from the parent to the child and edit accordingly.

    If the child belongs to a distributed theme that may be updated, you need to create a custom plugin that hooks “wp_head” action and outputs the required HTML. You can use this plugin to contain any other customizations you may want to implement as well.

    You might instead consider a different verification method such as a verification file in public root.

    Thread Starter shizlist

    (@dnacannon)

    t-p – thank you for that highly generic and highly irrelevant link. If I wanted to sift through paragraphs and paragraphs of useless information, I would have read the bible.

    bcworkz– Thanks for the reply. I’m using a Child Theme that came packaged with the parent theme. Creating a plugin sounds pretty complex, so I’ll look into the public root option. Thanks!

    Is there really no way to just insert the verification meta tag into the child theme somehow?

    Cheers

    • This reply was modified 8 years, 1 month ago by shizlist.
    • This reply was modified 8 years, 1 month ago by shizlist.
    Moderator bcworkz

    (@bcworkz)

    I understand your frustration with irrelevant replies, but please, let’s avoid snarky comebacks directed at people who are genuinely trying to help. We want this community to as inviting as possible and attacking people who are giving up their personal time to help others is detrimental to this goal. Continuing with that kind of response will significantly stymie your own efforts at getting help.

    Making a basic plugin is actually quite simple. See Writing a Plugin. What goes into the plugin can also be simple, or very complex.

    I believe there are plugins available that simplify inserting meta tags. I’m unfamiliar with them, but they should work for your need.

    You can simply insert the meta tag into the header template of the child theme, but you run the risk of losing your tag when the theme is updated.

    IMO, the verification file is the easiest option, it does not involve WP at all. I know Google offers this option, I forget if Bing does or not.

    Moderator t-p

    (@t-p)

    paragraphs and paragraphs of useless information

    FYI, WordPress codex guides are not “useless information”!

    They are informative, point you in a write direction, well written by very dedicated volunteers.

    If you can’t do the work yourself, you have the option of engaging a professional to assist you. If you want to follow that option and hire someone for this, then please try one of these sites:
    https://jobs.wordpress.net/
    or
    https://directory.codepoet.com/

    Thread Starter shizlist

    (@dnacannon)

    t-p – You’re right. The Guide is not useless. It’s just useless for what I’m trying to accomplish. I asked a very specific question and you simply posted a link that is entirely unrelated to said specific question, aside from containing the word “meta tag.” You may as well have posted a link about Ferrari “Ownership.” I’m not upset, nor do I think I’m entitled to anyone’s time. I’m simply pointing out your poor effort so you can improve in the future, and avoid wasting people’s time by sending them on scavenger hunts on pages that don’t contain the answers they’re seeking.

    bcworkz – I can appreciate everything you’ve said, and I agree with all of it. I don’t mean to be blatantly ungrateful, but let’s give credit where credit is due. I requested a how-to explanation for verifying site ownership, and t-p simply posted a link to a page explaining the definition of “meta-tag.” Not sure if we chalk this up to laziness, disinterest, or a genuine misunderstanding. In any case, I feel like wordpress support is not t-p’s calling.

    In regards to your relevant and helpful suggestions, I’ll look into the plugin option, though I have essentially no programming skills whatsoever, so I see that going poorly lol.

    Also, I have a couple questions about this statement: “You can simply insert the meta tag into the header template of the child theme, but you run the risk of losing your tag when the theme is updated.

    1) I don’t see a header template in the child theme. Should there be one? I only see functions.php, woocommerce/category-title.php, and style.css.

    2) If I add the tag to my child theme, how would I run the risk of losing my tag when the theme is updated? Doesn’t utilizing a child theme prevent this?

    Did you mean to say “parent theme” instead of “child theme”?

    These questions may be irrelevant, since you’ve recommended the html upload. I’ll give that a whirl! Thanks for the help.

    Cheers

    • This reply was modified 8 years, 1 month ago by shizlist.
    • This reply was modified 8 years, 1 month ago by shizlist.
    • This reply was modified 8 years, 1 month ago by shizlist.
    Moderator bcworkz

    (@bcworkz)

    In this sort of forum format, irrelevant replies are going to happen for various reasons. I’ve made my share myself. If that’s enough to cause you to lash out at other members who are trying to help, this forum format is not for you. If that sort of response can be expected every time you get an irrelevant reply, then frankly, you are not welcome here. A simple, polite “Thank you for your effort but that link was not helpful because…” is more of what’s reasonable. Or simply ignore the reply.

    If your child has no header template, then you should copy the parent’s template over to the child, then edit the child’s version.

    While the normal practice is to create a child theme in order to protect one’s customizations from theme updates, when the theme vendor distributes their themes as children, this option is taken away from you. There is no accommodation for grandchild themes. We’ve no idea if the theme author will need to update their child theme or not. Because it is not your child theme, any changes you make could be lost if the child theme needs to be updated.

    Then why copy the parent header to the child if customizations in either place can be lost? Because it’s more likely the core framework parent will need updates than the child. By editing child versions, the risk of loss is reduced, but not eliminated.

    There are ways to make alterations to templates through a custom plugin. While this does serve to protect your changes, it can be far from ideal and can become an advanced coding project.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Verifying Ownership With Child Theme’ is closed to new replies.