Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #545247

    Hey!

    I would like to add structured data to some of our pages. We use the visual interface to edit the pages. – http://microformats.org/wiki/Main_Page

    I can seem to find a way to add the Microdata Markup to the html pages.

    Can you suggest a solution on how I can do this? Or is there a plugin that can help me with this?

    #545408

    Hey heinrichvk!

    You can add them inside a codeblock element if your using the layout builder. If your using the default editor then just switch to the “Text” editor instead of the “Visual” editor and paste the code there.

    Regards,
    Elliott

    #545795

    Thanks for your response.

    How can I control what itemtype is assigned to my post, because it seems to automatically assign my pages the “CreativeWork” itemtype and thats not what I need and I cant seems to be able to redefine it:

    This is what is assigned now: <section class=”avia_codeblock_section avia_code_block_0″ itemscope=”itemscope” itemtype=”https://schema.org/CreativeWork&#8221; >

    This is what I need: itemtype=”http://schema.org/SoftwareApplication&#8221;

    Using code blocks does not seem to do the trick.

    Here is a structured data test of our website: https://developers.google.com/structured-data/testing-tool/?url=http%253A%252F%252Faxibase.com%252Fproducts%252Faxibase-time-series-database%252F

    You can look at the errors to see the issues I am having.

    #546580

    Hey!

    Perhaps your looking for line 88 in the /enfold/includes/helper-markup.php file.

    $attributes['itemtype']  = 'https://schema.org/CreativeWork';
    

    Regards,
    Elliott

    #546862

    Can you suggest a way to make just a single page have a different type of structured content?

    Can you suggest the correct edits to the helper-markup.php file so that a single page has the SoftwareApplication itemtype instead of CreativeWork itemtype.

    And how can we best set the attributes for that specific page?

    At the moment the setting that you have suggested is Global and changing it causes errors on all other pages of the website.

    • This reply was modified 8 years, 11 months ago by heinrichvk.
    #547225

    Hey!

    Change it to this.

    $attributes['itemtype']  = 'https://schema.org/CreativeWork';
    if ( is_page( 42 ) ) { $attributes['itemtype']  = 'https://schema.org/SoftwareApplication'; }
    

    Where 42 is the ID of your page.

    Regards,
    Elliott

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