I redesigned a website as a one-page scrolling site but now the sitelinks that appeared in Google search results are no longer there (ie- "About" "Contact Us")
The site is set up with anchored links with similar sections as before (ie
example.com#about) but these sections not coming up in Google Search Results.
Is there a way to get these sitelinks pointing to the different sections of the one-page scrolling site to come up? I tried creating blank pages with URL's like
example.com/about and redirecting to
example.com#about but these new pages are still not coming up. I definitely do not want to be penalized for double content.
This is a WordPress website utilizing Yoast SEO.
It's likely google won't index sections of one page as separate entries in search results as it could provide a rather poor user experience.
I definitely wouldn't want to use google to search for something, only to find that I'm clicking on the same website over and over again and appearing only in different sections on the same page.
It's more likely that users would search for something then enter a link and read the page from top to bottom while skimming sections they don't want to see. Those users would not like to click on a link with different text that takes them to the same site again after reading it the first time.
If you want your links indexed, you need to make them as separate pages with unique content.
I have used multiple paralax and single paged WordPress themes over the years.
Using anchor text to link to the content from the menu is definitely the way to do it properly.
When it comes to indexing the content separately you would want to have a page created, dedicated and optimized for that specific content. Hopefully the content is elaborate..
On the main page of the website use excerpts of the content from the various pages you would like to highlight, then link to those pages from within the excerpt on the main (home) page.
There are some specific themes that can assist with this: for example, if you're using Genesis framework they have a series of widgets for use on your front page for featured page or featured post(s).
Alternately there are several plugins that will offer you similar functionality within your website: https://wordpress.org/plugins/tags/featured-page
I can confirm that at least as of today, google will indeed add sitelinks for singlepage scrolling sites.
Sitelinks are a google specific thing which are sub-links to individual pages/sections under your website search result.
Google Webmaster tools will allow you to submit a sitemap. This is really only necessary if for some reason you think that google's crawler may have trouble discovering all your pages.
Providing google webmaster tools a sitemap will help their crawler to discover your pages in order to crawl them (ie if for some reason google can't find all your pages via following links from your home page).
If google can't find/crawl your pages without a sitemap.xml...then this will of course prevent google from generating sitelinks. Besides that sitelinks and sitemaps are not related.
...when you have content not readily linked by other pages, such as new pages or obscure information, you can help our system learn about your URLs by providing them in a list, known as a sitemap. (2)
According to google (1) the sitelink generation process is automated based on their proprietary algorithms. This means you can't force sitelinks to show up, you can just try to do the right technical things to enable google to show sitelinks if they decide they want to.
Google may draw the content of sitelinks from page titles, anchor text (or alt text for image links), page meta-data, etc.
I don't know the internals of google's algorithm, but I can tell you my setup and what seems to work.
On google a few (not all) of my linked sections show up as sublinks under my google search result. However there is not any description. Just links. The link text matches the anchor text in my navigation as well as the h1 heading text at the top of each section.
Not all sections showed up. Hard to know how google decides which sections are the most important to show as sitelinks...perhaps inbound links? Other potential factors that may have influenced things in my case.
If anyone knows what kind of markup would help get per-section descriptions for single-page site sitelinks (ie so they are more than just links like on multi-page sites)...let me know.