• Resolved tombie

    (@tombie)


    Hi! I love Slim SEO free version but having a hard time getting google results to show my sitename on search results. (I assumed at first it was just a matter of time, but Google haven’t changed anything for a year.) I’m not a skilled coder or anything, but the only thing I haven’t tried according to this guide, is to add a alternateName schema. Is that something I can do without breaking the output of SlimSEO?

    If this is not possible I figure I could look into using something lightweight schema plugin that work in tandem with Slim SEO? (Sadly I can’t spend money on the schema addon currently in my life. Otherwise that would have been the obvious solution.) Thanks in advance for any type of support!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Hi @tombie ,

    Yes, you can change the output of the “WebSite” schema to add “alternativeName” property. Please use this snippet (you can use the Code Snippets plugin, or add the snippet into your theme’s functions.php file):

    add_filter( 'slim_seo_schema_website', function( $schema ) {
    $schema['alternateName'] = 'Your Organization alternative name';
    return $schema;
    } );
    Thread Starter tombie

    (@tombie)

    That worked! Incredible support! Thank you @rilwis ! I used the code snippet plugin you recommended to add the code. Used the default 10 priority. I hope that was the correct choice.

    Sidenote: Maybe a dumb question, but if I create a page that is a article or a about page. Do the plugin magically know it should use the article schema? Or do I need to tell it somehow with another snippet? My site do not use posts only pages.

    Plugin Author Anh Tran

    (@rilwis)

    Glad that the snippet resolved the problem! The priority 10 is fine ??

    Regarding the about page, the plugin automatically assigns the Article schema for blog posts only. So it doesn’t assign Article schema for the page. If you want to set schemas for those pages, please consider using the Slim SEO Schema plugin.

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