简体   繁体   English

使网站小部件符合 SEO 标准 - 有可能吗?

[英]Making a website widget SEO compliant - is it possible?

I've recently been briefed to add a widget to a client's site which will allow a user to interact with different parts of an image, and drill down to more detailed information about what they are clicking on.我最近接到了向客户站点添加一个小部件的简报,该小部件将允许用户与图像的不同部分进行交互,并深入了解有关他们单击的内容的更多详细信息。 This is all fine, and is something I've done many more times before.这一切都很好,这是我以前做过很多次的事情。 And if this was part of a site I was in control of, I'd know how to make it SEO compliant.如果这是我控制的网站的一部分,我会知道如何使其符合 SEO。

However, it must be hosted on the client's company website, and there are some technical restrictions on how anything I build must work on there.但是,它必须托管在客户的公司网站上,并且对于我构建的任何内容必须在那里工作的方式存在一些技术限制。 Notably that we can add a single custom HTML page as part of the site for our widget, but this page must load everything.值得注意的是,我们可以添加单个自定义 HTML 页面作为小部件站点的一部分,但该页面必须加载所有内容。 So whilst we can upload as many other HTML files as we like, only this single file will ever be part of the site structure, with the header, legft navigation, etc.因此,虽然我们可以上传尽可能多的其他 HTML 文件,但只有这个文件将成为站点结构的一部分,包括标题、legft 导航等。

And this approach usually works fine.这种方法通常工作正常。 We place some JavaScript in the skeleton HTML page, and this does all the heavy lifting - loading any additional HTML pages via Ajax as required.我们在框架 HTML 页面中放置了一些 JavaScript,这完成了所有繁重的工作 - 根据需要通过 Ajax 加载任何其他 HTML 页面。

However, the client has insisted that each section of the widget be optimised for SEO, and be crawl-able by Google.但是,客户坚持要求小部件的每个部分都针对 SEO 进行优化,并且可以被 Google 抓取。 Now if this was on a site I had control over, I would create each section of the widget as a separate HTML page - with it's own title, description, URL, etc - and then load them via Ajax.现在,如果这是在我可以控制的站点上,我会将小部件的每个部分创建为一个单独的 HTML 页面 - 具有自己的标题、描述、URL 等 - 然后通过 Ajax 加载它们。

But as the client is only allowing one page which is part of the site, this won't work in this case.但是由于客户端只允许作为站点一部分的一个页面,这在这种情况下不起作用。 I can obviously add other HTML pages with their own SEO meta tags - but if there were viewed in the browser, they'd just have the widget's content - no left navigation, header, etc.我显然可以添加其他带有自己的 SEO 元标记的 HTML 页面 - 但如果在浏览器中查看,它们只会有小部件的内容 - 没有左侧导航、标题等。

So what is the solution here?那么这里的解决方案是什么? The SEO obviously breaks as Google (or other search engine) will return the URL to these standalone pages, which just breaks the site experience entirely. SEO 显然会中断,因为 Google(或其他搜索引擎)会将 URL 返回到这些独立页面,这完全破坏了站点体验。

Am I right in thinking there isn't any way of doing it unless the client allows us to create every single like for like page on their website?我是否认为没有任何方法可以做到这一点,除非客户允许我们在他们的网站上创建每一个喜欢的页面?

consider the Widget are a part of website page content only.考虑 Widget 只是网站页面内容的一部分。 There is no any separate tags for widget you can specify title,description, etc.,小部件没有任何单独的标签,您可以指定标题、描述等,

Only you can do is that the content which you displaying should be well formatted and well display with properly...只有你能做的是你显示的内容应该格式正确,并且正确显示......

Let say you use hyperlinks use title tag, if image then use alt tags, add bulleted points, add number points, add keyword hyperlink to another article, etc.,假设您使用超链接使用标题标签,如果图像则使用 alt 标签,添加项目符号,添加数字点,将关键字超链接添加到另一篇文章等,

this will help you to get links crawled and get link juice for your internal and the content can make seo friendly.这将帮助您抓取链接并为您的内部获取链接汁,并且内容可以使 seo 友好。

  1. Use Title Tags.使用标题标签。
  2. Meta Description Tags.元描述标签。
  3. Header Tags.标题标签。
  4. Add Alt Tags in Images.在图像中添加 Alt 标签。
  5. Building Links.建立链接。
  6. Add Open Graph Tags.添加开放图谱标签。
  7. Social Linking Pages Card社交链接页面卡
  8. Tags.标签。
  9. The Robots Tag.机器人标签。
  10. Mobile Friendly CSS optimization移动友好的 CSS 优化

SEO Optimization can be done for each HTML Page that you can follow some rules and tips to optimize the page content SEO friendly, you can analyze your website main page here this tool provide all SEO optimization tips that you can fix to rank in google search.可以对每个 HTML 页面进行 SEO 优化,您可以遵循一些规则和技巧来优化 SEO 友好的页面内容,您可以在此处分析您的网站主页此工具提供了所有 SEO 优化技巧,您可以修复这些技巧以在 google 搜索中排名。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM