-
AuthorPosts
-
January 21, 2015 at 3:59 pm #188425
Hello,
First I would like to apologize if any of this does not make much sense, I am new to WordPress in general so please excuse any ignorance on my part.I am attempting to add schema markup to my homepage. In the future, I would like to have everything in place so that I can freely add markup where I see fit, but I am struggling to find the right files to edit. My main goal right now though is simply to setup the homepage for the LocalBusiness schema to markup the name, address, phone number, url and company logo to aid with my local SEO efforts.
For one, I don’t fully understand what http://puu.sh/eQ9Jz/c204ccfae1.png means and therefore don’t know which header.php file to edit.
Basically, I am running my homepage through Google’s structured data helper tool but I cannot find the right places to add the code. When I do that, it shows me a bunch of code to add to various parts of the source code. Obviously, though, it is not as simple as that as the page is generated dynamically by many different php files etc in the backend.
Even if I was able to find exactly which php files to edit to place those lines of code(which is one thing I really need help with, guys), why is it that a tutorial like this one describe having to edit the functions.php file, something the google tool makes no mention of?
So, let’s see if I can summarize my questions to make it easier to help me:
- Where would I place this line of code?I realize it may not even really be necessary but I would still like to know.
- How can I find via FTP the correct files to edit?Looking in the frameworks folder for the right files is quite confusing to me
- Is editing the functions.php file necessary or can I just copy and paste Google’s suggestions from their Structured Data tool and be done with it?
I will probably have more questions, but lets see how this goes. Thanks in advance for any attempts to help!
the url is sedanz.com
it is running on WP version 4.1
it is running X theme version 3.1.1 ( i know there have been some recent updates)January 22, 2015 at 2:31 am #188830Hi,
Thanks for writing in!
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Then copy the file wp-content/themes/x/framework/views/global/_header.php
to your child theme wp-content/themes/x-child-integrity-dark/framework/views/global/_header.phpYou can then add your marked up to this file wp-content/themes/x-child-integrity-dark/framework/views/global/_header.php
Hope that helps.
September 8, 2015 at 12:52 am #381647Having the option to add schema.org structured data to the site and/or pages would be a valuable future feature.
September 8, 2015 at 1:03 am #381656Hello Rosevita,
We certainly appreciate the feedback! This was already added to our list of feature requests. All of these items are discussed with our team internally and prioritized based on the amount of interest a particular feature might receive. Thanks!
-
AuthorPosts