Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #292161

    So I am trying to add Local Business Schema to my website. The address is listed in the top header, and I can put some <div> and <span> around text, but it creates large spaces between the text. This makes it look unnatural. Is there a way to remedy that?

    The other option is to place it in the footer.

    Would it be better practice to place the Schema.org code through the Enfold interface or manually edit the footer.php or header.php? I’m not partial to having the Schema.org markup text in the header or footer (preferrably the header).

    My website is http://coastaldentalarts.com.

    #292572

    Hey fidelitas!

    Yes, I recommend to add a custom class to the div or span elements and then use css code to remove any unecessary paddings or margings. If you need help with the css styling please add the code (div tags) to the header.php and we’ll investigate the code with the developer tools to provide the necessary css code.

    I recommend to edit header.php directly because Enfold doesn’t support a Local Business Schema out of the box. You could add it with a filter but it doesn’t make much sense because you must edit header.php anyway.

    Regards,
    Peter

    #836686

    Which header.php file do I insert the JSON-LD script into?

    In cPanel there are a ton of them (see below). So which one do I input into?

    Thanks! It’s so awesome to be learning how to do schema!
    /public_html/wp-blog-header.php

    /public_html/wp-admin/custom-header.php

    /public_html/wp-admin/menu-header.php

    /public_html/wp-admin/admin-header.php

    /public_html/wp-content/plugins/better-wp-security/core/lib/includes/function.login-header.php

    /public_html/wp-content/plugins/wp-hummingbird/core/pro/modules/reporting/templates/header.php

    /public_html/wp-content/plugins/wp-hummingbird/core/pro/admin/views/performance/reporting-meta-box-header.php

    /public_html/wp-content/plugins/wp-hummingbird/admin/views/dashboard/performance/module-meta-box-header.php

    /public_html/wp-content/plugins/wp-hummingbird/admin/views/dashboard/caching/module-meta-box-header.php

    /public_html/wp-content/plugins/wp-hummingbird/admin/views/dashboard/smush/meta-box-header.php

    /public_html/wp-content/plugins/wp-hummingbird/admin/views/dashboard/uptime/module-meta-box-header.php

    /public_html/wp-content/plugins/wp-hummingbird/admin/views/dashboard/gzip/module-meta-box-header.php

    /public_html/wp-content/plugins/wp-hummingbird/admin/views/dashboard/reports/meta-box-header.php

    /public_html/wp-content/plugins/wp-hummingbird/admin/views/dashboard/minification/module-meta-box-header.php

    /public_html/wp-content/plugins/wp-hummingbird/admin/views/performance/summary-meta-box-header.php

    /public_html/wp-content/plugins/wp-hummingbird/admin/views/caching/summary-meta-box-header.php

    /public_html/wp-content/plugins/wp-hummingbird/admin/views/caching/cloudflare-meta-box-header.php

    /public_html/wp-content/plugins/wp-hummingbird/admin/views/caching/enable-meta-box-header.php

    /public_html/wp-content/plugins/wp-hummingbird/admin/views/uptime/meta-box-header.php

    /public_html/wp-content/plugins/wp-hummingbird/admin/views/gzip/summary-meta-box-header.php

    /public_html/wp-content/plugins/wp-hummingbird/admin/views/gzip/code-snippet-meta-box-header.php

    /public_html/wp-content/plugins/wp-hummingbird/admin/views/minification/advanced-settings-header.php

    /public_html/wp-content/plugins/wp-hummingbird/admin/views/minification/enqueued-files-meta-box-header.php

    /public_html/wp-content/themes/enfold/header.php

    /public_html/wp-content/themes/twentysixteen/header.php

    /public_html/wp-content/themes/__MACOSX/enfold/._header.php

    /public_html/wp-content/themes/primer/header.php

    /public_html/wp-content/themes/twentyfifteen/header.php

    /public_html/wp-content/themes/twentyfifteen/inc/custom-header.php

    /public_html/wp-content/themes/twentyseventeen/header.php

    /public_html/wp-content/themes/twentyseventeen/inc/custom-header.php

    /public_html/wp-includes/theme-compat/header.php

    /.opcache/8a0d2f39a84a49ec2f6e6855c699eebe/home/willmfrazier/public_html/wp-blog-header.php.bin

    /.opcache/8a0d2f39a84a49ec2f6e6855c699eebe/home/willmfrazier/public_html/wp-content/themes/enfold/header.php.bin

    #836922

    Hi,

    In this one: /public_html/wp-content/themes/enfold/header.php

    Although I would recommend that you use a child theme, otherwise you will lose the changes you make to that file on updates: http://kriesi.at/documentation/enfold/portfolio-item/create-a-child-theme/

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.