Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Michael Ti?a

    (@mikes41720)

    Hello,

    The Yoast SEO plugin’s schema.org structured data output doesn’t extend for the jobposting schema as of now.

    However, based on what you’ve provided, that looks like the breadcrumbs from Yoast SEO. You can check out the documentation here on the specific output from our plugin — https://developer.yoast.com/features/schema/plugins/yoast-seo

    Thread Starter thetoolman123

    (@thetoolman123)

    Thanks for the reply.

    I have found this in breadcrumb-hook.php

        <script type="application/ld+json">
            {
                "@context": "https://schema.org",
                "@type": "BreadcrumbList",
                "itemListElement":
                [
                    <?php
                    $i = 1;
                    if(!empty($breadcrumb_items))
                    foreach ($breadcrumb_items as $item):
                        $title = !empty($item['title']) ? $item['title'] : '';
                        $link = isset($item['link']) ? $item['link'] : '';
    
                        if(!empty($title)){
                            ?>
                            {
                                "@type": "ListItem",
                                "position":<?php echo $i; ?>,
                                "item":
                                {
                                    "@id": "<?php echo $link; ?>",
                                    "name": "<?php echo $title; ?>"
                                }
                            }<?php if($i < $breadcrumb_items_count) echo ','; ?>
                            <?php
                        }
    
                        $i++;
                    endforeach;
                    ?>
                ]
            }
        </script>

    Can I override this, or remove it completely? If so, do I need to change this line?:

    "name": "<?php echo $title; ?>"

    Thanks

    Plugin Support devnihil

    (@devnihil)

    @thetoolman123 Unfortunately we can’t offer support on custom code. Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. Maybe someone watching these forums can assist you further, but if your topic is inactive for 7 days, we’ll mark it as resolved to keep the overview.

    Thank you for your understanding.

    Thread Starter thetoolman123

    (@thetoolman123)

    I understand, but are you able to tell me if this is the correct file? I will be making the changes myself, so I will be the only one to blame if it breaks!

    Thread Starter thetoolman123

    (@thetoolman123)

    If you can’t tell me which file it is in or not in a file, is it controlled via admin?

    This is what I have in my Jobs section in

    Search Appearance > Jobs (job_listing)
    https://ibb.co/Gx8Nm5d

    If anyone else can help, it would be great. It’s effecting my search results so need to fix it ASAP

    Thanks

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    We are afraid to say that we are unable to confirm whether breadcrumb-hook.php file would be the right one for the relevant modification. Someone else watching the forum might help you out with this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Where do I change the following line: Yoast-schema-graph’ is closed to new replies.