Correct way of doing navigation [closed] - seo

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am creating a wordpress website with multi-level of navigation.
When i say multi-level the parent link also has <a href="#">. I have this link for nothing. And this is creating issues when I check for Link quality in chrome extention "SEO Site Tools" It gave me I have over 200 links in my homepage and this is bad seo.
Is there anyway I can replace parent item link <a href="#"> to <span>? If I do will search engine make my website as scam? This is the structure I am trying to implement.
<ul>
<li>
<span>Products</span>
<ul>
<li>Product 1</li>
<li>Product 2</li>
</ul>
</ul>

I wrote seo site tools. The 200 links per page is really more of a rule of thumb... Im sure you will be fine. if you send the domain along ill take a look but I dont understand why you are listing all your products in the menu. the other thing you could do is for the deepest pages write the nav code out with javascript and then google wouldnt see all the links to every page on every other page. If you choose to go that way make sure google will still have a way to navigate to those pages (this is usually done with category listing pages)

Related

Learning Selenium and I have some questions about locating a specific xpath [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I'm trying to play around with elements on Reddit but after searching I am unable to select the 'View More' element. I don't have much experience working with the framework and I thought I understood Xpaths but I am unable to figure out where I'm going wrong
I am revising Xpaths right now and will post if I find a solution myself.
Here's an image to hopefully make things clearer:
Here are the paths I have tried:
driver.FindElement(By.XPath(".//class='s13lw6dy-6 cOyQoR']//*[text()='View more']")).Click();
I am using the following imports:
using OpenQA.Selenium;
using OpenQA.Selenium.Support;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Interactions;
If you right-click the HTML element and click 'Inspect,' you can get an Xpath for that element in the page. You should be able use that in your selenium code, if it isn't dynamic (doesn't change from one page load to another).
xpath = "//*[#id="SHORTCUT_FOCUSABLE_DIV"]/div[2]/div/div/div/div[2]/div[3]/div[1]/div[2]/div/a"
button = find_element_by_xpath(xpath)
# another possible xpath:
# button = find_element_by_xpath("//a[contains(text(),'View more')]")
button.click()

How can I use a Shopify app proxy within a product page? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 10 months ago.
Improve this question
Essentially we want on our Shopify product pages to show a button to a logged-in customer. That button would use our app to then call an external API.
I'd like to use an app proxy, but it appears we cannot do an app proxy on a product page, but we could technically call an app proxy on a product page via an Ajax call. We could inject the button into the page, but we need that button to still make a call to the app.
Guess we could load the button in an iframe?
Would anyone know of a best practice on how to do this? Thanks!
Here is the recipe I use, which works perfect and seems to answer your use case.
On a product page, you know if a customer is logged in or not, using Liquid. Therefore you can render a button where you want, and ensure there is Javascript to handle button clicks. Since you are rendering a button and Javascript, it makes sense that you can also do callbacks to your App Proxy. Perhaps a button click sends the Proxy the customer ID, your API calls look up the customer, and you birth a Unicorn for them. Your App Proxy returns Liquid or just JSON, so the callback can render HTML for you or turn the JSON into something for the customer.
Works great for me. Try it. You might like it.

How to migrate data from one Shopify store to another? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am the only developer on my small start up team. I got tasked with building an entirely new Shopify store platform from scratch (no Shopify starter theme) and I want to make sure I am not going to get fired for messing up. I have never built anything in a production environment.
I followed some online resources suggesting I start with the Timber framework to get started. After completely building out mobile, I was then told it was obsolete. I have been pretty much feeling around in the dark and implementing what knowledge I do have.
My team's current website theme is on store.myshopify.com. I have been building the new, highly-customized theme on dev-store.myshopify.com. How do I transfer product reviews, store locator information, and other data from the old store over to the new store?
Start with a base theme, even if they say from scratch a base theme gives you most of the pages already coded and you can build on top of that.
You can start with the theme that comes with every shopify store or use the skeleton theme https://github.com/Shopify/skeleton-theme ( even though there is no sections implemented in the skeleton theme )
Once you install the theme on you can start modifying the important templates:
index.liquid
collection.liquid
product.liquid
cart.liquid
page.liquid
The above templates are the most important ( if you have account registration than the account templates will be important as well )
If this is your first Shopify theme, don't go too crazy with the theme settings, stick only to the important bits. For example there is no need to allow the user to change how many products will be shown on the collection page or how many on the same row. You can hardcode a lot of the items and if the client want to change anything afterwards you can create an option in the theme settings panel.
Good resources to look into are:
http://cheat.markdunkley.com/
https://help.shopify.com/themes/liquid/objects
And don't use a framework like timber, you will complicated and loose yourself in the code.
Code the site as a simple HTML and convert it to a Shopify theme.
For example, the shop page in HTML will be:
<div class="products">
<div class="product">
....
</div>
<div class="product">
....
</div>
<div class="product">
....
</div>
</div>
When you convert it to a liquid logic it will become:
<div class="products">
{% for product in collection.products %}
<div class="product">
....
</div>
{% endfor %}
</div>
So my recommendation is to start with the HTML phase, get an approval on that and then continue with the Shopify integration. You can use the Skeleton theme for reference or the launch theme that comes with each Shopify site.
If you have a complex Homepage with sliders and more than 1 section, I highly recommend to look into sections ( https://www.shopify.com/partners/blog/introducing-sections-for-shopify-themes ) it will make your life a lot easier, rather than spamming multiply fields for each slide in the theme setting panel.
Hope that this information will be of use to you.

SEO Friendly Tabs [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
How to add Meta Data explicitly for tabs ?
I have some pages which have tabs in it which opens URLs of type www.blahblah.com/page#tab1
How to add meta data related to tab1 tab2 etc. I do not want to add it in parent page.
EDIT : Reference
<div itemscope itemtype="http://data-vocabulary.org/Person">
My name is <span itemprop="name">Bob Smith</span>,
but people call me <span itemprop="nickname">Smithy</span>.
Here is my homepage:
// Does this URL Come up in Search as primary Link ? If so I can set it to
mysite.com/page#tab1
##www.example.com.##
I live in
<span itemprop="address" itemscope
itemtype="http://data-vocabulary.org/Address">
<span itemprop="locality">Albuquerque</span>,
<span itemprop="region">NM</span>
</span>
and work as an <span itemprop="title">engineer</span>
at <span itemprop="affiliation">ACME Corp</span>.
</div>
As specified by W3C the <meta>tag can only be located in the <head> part of your HTML so you can't use these tags for your tabs. However, you could use Sitemaps
could be a good solution for you. According to the site,
Sitemap 0.90 is offered under the terms of the Attribution-ShareAlike Creative Commons License and has wide adoption, including support from Google, Yahoo!, and Microsoft.
You can generate the sitemap of your site with this site in XML, add the tabs manually, and then submit it to the different search engines directly or add it in your robots.txt file as follows:
Sitemap: http://example.com/sitemap_location.xml
You could also use microdata, as specified in this W3C Specification. According to the spec:
When a string value is a URLs, it is expressed using the a element and
its href attribute, the img element and its src attribute, or other
elements that link to or embed external resources.
So even if your URL contains a fragment (the # part), the different search engines should point to the correct tab. For example, Google adds a "jump to" link. See this old blog post.
EDIT : https://developers.google.com/webmasters/ajax-crawling/docs/specification
This explains it all.
Summarizing the article. for all Ajax callbacks server side pages should also be implemented
Request
The crawler agrees to request from the server ugly URLs of the format:
domain[:port]/path?_escaped_fragment_=hashfragment
domain[:port]/path?queryparams&_escaped_fragment_=hashfragment
domain[:port]/path?_escaped_fragment_=
domain[:port]/path?queryparams&_escaped_fragment_=
Search result
The search engine agrees to display in the search results the corresponding pretty URLs:
domain[:port]/path#!hashfragment
domain[:port]/path?queryparams#!hashfragment
domain[:port]/path
domain[:port]/path?queryparams

Is there an API that can take a div from a webpage and turn it into an image? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Is there an API that can take the content from a div from a webpage and convert it into an image?
Checkout thumbalizr. It also has an API.
Here's a 1280px screenshot of this page.
To get just the div that you are interested in, find the div's offsets and dimensions, then use any image manipulation library to carve out those coordinates from the entire image starting at (offsetX, offsetY) and having dimensions (width, height).
If the site which includes the div is in your control. Add a border in a unique color to the div.
Then use extrenal service like thumbalizr to get the image and clip it in according to the unique color frame.
This setup can run via server side php/gd imagemagick. or similar (javascript/ . Net)
In javascript you could do this with jquery:
$("div").replaceWith('<img />');