RobGielen Posted April 6, 2020 Share Posted April 6, 2020 Hello All, Per Google Guidelines, it is advised to add a small script to your FAQ page. https://developers.google.com/search/docs/guides/intro-structured-data See example: <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": { "@type": "Question", "name": "What is FAQ PAGE", "acceptedAnswer": { "@type": "Answer", "text": "Answer to the FAQ PAGE" } } } </script> Maybe best option to go for module like: https://www.whmcsthemes.com/whmcs-addons/seo-manager/ ? How would I be able to add this script in the background of a knownledgebase article? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted April 6, 2020 Share Posted April 6, 2020 (edited) In my opinion there is no point in implementing this script to WHMCS. Similarly I see no benefit in adding meta tags. Improvements would be laughable or non-existent. You need more than just a snippet and bunch of meta tags to improve your ranking on search engines. Before you can make use of meta tags and snippets, first you'll things like: Sitemap generator Canonical URLs to avoid duplicated-contents Unique titles, meta descriptions A lot of "noindex, follow" meta robots OG Tag support (url, type, title, description, image) SEO-Friendly URLs Protection from black hat SEO Pagination and any tag-based category require further attention All things I listed above must support multi-language otherwise it's like shoot yourself in the foot (WHMCS doesn't support it). It would be great if we could just copy/paste a snippet and write a couple of descriptions to see notable improvements but in reality it's more complicated. Edited April 6, 2020 by Kian 0 Quote Link to comment Share on other sites More sharing options...
Migrateq Posted June 19 Share Posted June 19 You can add something like this to your template header: <script type="application/ld+json"> { "@context": "http://schema.org", "@graph": [ { "@type": "Organization", "name": "Your Organization Name", "logo": "https://example.com/logo.svg", "url": "https://example.com" } {if $kbarticles}, { "@type": "FAQPage", "mainEntity": [ {foreach from=$kbarticles item=kbarticle name=kbarticles} { "@type": "Question", "name": "{$kbarticle.title}", "url": "https://whmcs.example.com/{routePath('knowledgebase-article-view', {$kbarticle.id}, {$kbarticle.urlfriendlytitle})}", "acceptedAnswer": { "@type": "Answer", "text": "{$kbarticle.article|strip_tags|regex_replace:"/[\r\t\n][\r\t\n]/":""|truncate:120}" } }{if !$smarty.foreach.kbarticles.last},{else} {/if} {/foreach} ] } ] }{/if} </script> 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.