Home>Support>Possible issue with “Layout Builder” and LocalBusiness Schema

Possible issue with “Layout Builder” and LocalBusiness Schema

So I figured I would ask here before I lost my mind and see if you guys (who are much much smarter than I) have any clue what is happening here.. I recently wanted to adjust the footer of my girlfriends page to include local business schema information like addresses, phone numbers and hours just so I can make the Google Gods happy.. hahaha

Anyway.. I ran into something along the way that I can not figure out for the life of me. I built the footer to include 4 columns using content builder and in one of them I have this code (within visual editor):

<p style="text-align: center;"><strong>Business Hours</strong>



<div itemscope itemtype="http://schema.org/LocalBusiness">
<time itemprop="openingHours" datetime="Mo 07:30-20:00”>Monday 7:30am - 8:00pm</time>
<time itemprop=“openingHours" datetime=“Tu 07:30-20:00”>Tuesday 7:30am - 8:00pm</time><br>
<time itemprop="openingHours" datetime=“We 07:30-20:00”>Wednesday 7:30am - 8:00pm</time><br>
<time itemprop="openingHours" datetime=“Th 07:30-20:00”>Thursday 7:30am - 8:00pm</time><br>
<time itemprop="openingHours" datetime=“Fr 08:00-18:00”>Friday 8:00am - 6:00pm</time><br>
<time itemprop="openingHours" datetime=“Sa 08:00-14:00”>Saturday 8:00am - 2:00pm</time><br>
<time itemprop="openingHours" datetime=“Su”>Sunday Closed</time><br>
</div>
By Appointment Only

and the first thing that I noticed is that “Monday” is not even showing up.. The second thing I checked is with google’s structured code validator located:

https://developers.google.com/webmasters/structured-data/testing-tool/

You will see yourself that something is messed up and I have no idea what I am doing wrong. I have reached out to friends of mine (again that are smarter than me.. haha) and they can not make any sense of it. He suggested that it MIGHT be related to the layout tool but I did not find much of a chance of that.

Can you please see if there is something related to either the theme, content builder or some other odd thing with this please.. If required, I would be more than happy to create a user id for any of you to look for yourself..

Many thanks..

Bill Hochsprung

URL: http://www.bodyfocusct.com

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    Hey Bill

    Thanks for running Vantage.

    In the Monday tag, the closing inverted comma in the datetime tag isn’t plain text, if you replace that with the correct character Monday will display. Perhaps re-check the validator after fixing that and see if things are different.

    This is how it should look:

    <time itemprop="openingHours" datetime="Mo 07:30-20:00">Monday 7:30am - 8:00pm</time>
    
  2. 9 years, 8 months ago bill.hochsprung

    Andrew.. That is great that you figured that out but I am curious as to how that could happen.. I had copied a piece of text from a site to set this up.. But I copied it to the “text” tab of the widget which I thought would convert everything to text. In addition to that I had copied this to a text only text editor and then copied it back. I figured that something was wrong but everything looked identical so it eluded us.. I appreciate how you figured it out but I am confused as to how it actually happened.. Any thoughts..?

    Thanks as always.. You guys are good people..

  3. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    Glad that helped. I should know more here but I’m not quite sure. I have TexEdit in OS X setup to work in plain text, yet it does the same thing to inverted commas. The text tab should ideally convert everything to plain text. So yeah…sorry, wish I knew more. If you inspect source code in instances like this, it’ll usually jump out at you if a character isn’t plain text.

    Thanks for your support.

  4. 9 years, 8 months ago bill.hochsprung

    OK Andrew… So the weirdest thing is happening now.. I figured out the quotation marks and I am up and running with that.. Now I was going through and adding some additional scripts that google asks for for local business schema. I placed the code listed below in the header section in the widget and then I want to do the same thing in the widgets within the footer because it seems that google wants that code ever instance where you use localbusiness schema.. So in doing so, I opened the “content builder” widget and inserted the code in one of the sections and now the “content builder” widget is not working right and is giving me some crazy things on my screen that I would be happy to provide a screen print of. Thoughts?

    <script type="application/ld+json">
        {
          "@context": "http://schema.org",
          "@type": "Organization",
          "url": "http://www.bodyfocusct.com",
          "logo": "http://www.bodyfocusct.com/wp/wp-content/uploads/2014/11/bf_logo_stack_276w.png"
        }
        </script>
    
  5. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    Ideally those scripts need to be inserted in the theme not via Page Builder. Here is a plugin you can use:

    https://wordpress.org/plugins/header-and-footer-scripts/

    Hopefully you can recover by deleting the widget you inserted the script into or using the Page Builder history function.

  6. 9 years, 8 months ago bill.hochsprung

    Thanks for this Andrew.. That will be helpful to have moving forward.. Can you please tell me how I can use the “Page Builder” history function.. That would be very helpful right now because when I open it now, it shows no widgets eventhough the page still shows my footer as intact.. Just can not get in there to edit it out and remove the script I inserted.. I suppose it was a lesson learned.. Let me know if you have an insight.. As always, I would happily provide you an ID to access the site if required..

    Bill

  7. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    Here we go: https://siteorigin.com/page-builder/documentation/history/, hope that helps.

  8. 9 years, 8 months ago bill.hochsprung

    Thanks Andrew but that seems like it would work for changes made to a page but not changes made within a widget.. Looks like I will have to recreate the footer.. :-(

    Thanks for your help..

  9. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    Ahh my bad. Yeah, sorry, only applies in Page Builder. If you can’t edit the widget to remove the script you would unfortunately need to remove it. Sorry I don’t have better news here.

  10. 9 years, 8 months ago bill.hochsprung

    Andrew.. Let me ask you this.. Is there a way for me to manually remove the script out of the code using a text editor without using WordPress.. Theoretically I could remove the script context, save it and then the widget should open correctly no?

  11. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    Not as far as I know, no. You’d need to jump in a database level. Unfortunately not something I’ve done before. Are you not able to delete this widget?

  12. 9 years, 8 months ago bill.hochsprung

    OK.. Well nothing I really want to do I suppose.. I guess I could but that would be a pain in the ass.. The problem seems to be the fact that I inserted “Layout Builder” into the footer section.. From there I have 4 columns and each column has the “Visual Editor” widget in it.. Within one of those widgets I inserted the script code and that is what caused the issue because now when I open the footer section (where I normally would see “Layout Builder”) I see that button and a whole bunch of code.. When I push the “Layout Builder” widget, it brings me in but there are no widgets present.. Its all messed up.. I will paste in some of the code incase it helps you with any future problems down the road with other customers..

    \",\"filter\":\"0\",\"panels_info\":{\"class\":\"WP_Widget_Black_Studio_TinyMCE\",\"raw\":true,\"grid\":0,\"cell\":2,\"id\":2,\"style\":{\"class\":\"\",\"widget_css\":\"\",\"padding\":\"\",\"background\":\"\",\"background_image_attachment\":\"0\",\"background_display\":\"tile\",\"border_color\":\"\",\"font_color\":\"\"}}},{\"type\":\"html\",\"title\":\"\",\"text\":\"
    Locations

    \\n[ready_google_map id=\'3\']\",\"filter\":\"1\",\"panels_info\":{\"class\":\"WP_Widget_Black_Studio_TinyMCE\",\"raw\":false,\"grid\":0,\"cell\":3,\"id\":3,\"style\":{\"class\":\"\",\"widget_css\":\"\",\"padding\":\"\",\"background\":\"\",\"background_image_attachment\":\"0\",\"background_display\":\"tile\",\"border_color\":\"\",\"font_color\":\"\"}}},{\"type\":\"visual\",\"title\":\"\",\"text\":\"
    \\\"Developed

    \",\"filter\":\"1\",\"panels_info\":{\"class\":\"WP_Widget_Black_Studio_TinyMCE\",\"raw\":false,\"grid\":1,\"cell\":0,\"id\":4,\"style\":{\"class\":\"\",\"widget_css\":\"\",\"padding\":\"\",\"background\":\"\",\"background_image_attachment\":\"0\",\"background_display\":\"tile\",\"border_color\":\"\",\"font_color\":\"\"}}}],\"grids\":[{\"cells\":4,\"style\":{\"class\":\"\",\"cell_class\":\"\",\"row_css\":\"\",\"background_image\":\"\",\"bottom_border\":\"\",\"background\":\"\",\"top_border\":\"\",\"bottom_margin\":\"\",\"gutter\":\"\",\"padding\":\"\",\"row_stretch\":\"\",\"background_image_attachment\":\"0\",\"background_display\":\"tile\",\"border_color\":\"\"}},{\"cells\":1,\"style\":{\"class\":\"\",\"cell_class\":\"\",\"row_css\":\"\",\"background_image\":\"\",\"bottom_border\":\"\",\"background\":\"\",\"top_border\":\"\",\"bottom_margin\":\"\",\"gutter\":\"\",\"padding\":\"\",\"row_stretch\":\"\",\"background_image_attachment\":\"0\",\"background_display\":\"tile\",\"border_color\":\"\"}}],\"grid_cells\":[{\"grid\":0,\"weight\":0.20011674565225843},{\"grid\":0,\"weight\":0.2593946366846896},{\"grid\":0,\"weight\":0.26027068064518366},{\"grid\":0,\"weight\":0.28021793701786846},{\"grid\":1,\"weight\":1}]}";

  13. 9 years, 8 months ago bill.hochsprung

    BTW.. just an idea for you guys.. You might want to build in a way for people to post or attach an image to help document things like this where I can’t send you to a URL to look at something or code I can attach.. Just an idea.. :-)

    Bill

  14. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    Affirm on both. Ideally the widgets should be hardened against this and we do need image upload functionality. Apologies for the hassle.

  15. 9 years, 8 months ago bill.hochsprung

    So Andrew.. Let me bring a related widget issue to your attention.. Not sure if it is your issue or the folks that make Visual Editor.. Either way.. Here is the scenario.. If I place that widget in to a column and in this example say I am building a 4 column footer like I was.. Someone might type “Hours” in the visual tab and click over to the “Text” tab and copy code in like I did today.. So say I have that google local business schema code in there and then I realize I want the heading bold.. If I go back to the visual tab and highlight that word and bold it instead of inserting “strong” into the line within the “text” tab, all of the code tags will be gone.. Messed me up more than once.. Let me know if you can duplicate that on your side.. Below is the code I was working with in one instance..

    Hours

    Monday 7:30am - 8:00pm
    Tuesday 7:30am - 8:00pm
    Wednesday 7:30am - 8:00pm
    Thursday 7:30am - 8:00pm
    Friday 8:00am - 6:00pm
    Saturday 8:00am - 2:00pm
    Sunday Closed

    ~ By Appointment Only ~

  16. 9 years, 8 months ago bill.hochsprung

    ooops.. sorry.. didn’t paste the code correctly..

    <p style="text-align: center;"><strong>Hours</strong>
    
    
    <div align="center" itemscope itemtype="http://schema.org/LocalBusiness">
    <time itemprop="openingHours" content="Mo 07:30-20:00”>Monday 7:30am - 8:00pm</time><br>
    <time itemprop=“openingHours" content=“Tu 07:30-20:00”>Tuesday 7:30am - 8:00pm</time><br>
    <time itemprop="openingHours" content=“We 07:30-20:00”>Wednesday 7:30am - 8:00pm</time><br>
    <time itemprop="openingHours" content=“Th 07:30-20:00”>Thursday 7:30am - 8:00pm</time><br>
    <time itemprop="openingHours" content=“Fr 08:00-18:00”>Friday 8:00am - 6:00pm</time><br>
    <time itemprop="openingHours" content=“Sa 08:00-14:00”>Saturday 8:00am - 2:00pm</time><br>
    <time itemprop="openingHours" content=“Su”>Sunday Closed</time><br>
    </div>
    <p style="text-align: center;">~ By Appointment Only ~
    

    sorry

  17. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    This is unfortunately an issue we’ve seen logged in the past few weeks. I’m sure Marco, the developer will be able to attend soon. For now, the save thing might be to use the Text widget and manage formatting using HTML.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More