{"id":95,"date":"2018-07-19T20:31:04","date_gmt":"2018-07-19T20:31:04","guid":{"rendered":"http:\/\/www.projectimmerse.com\/?p=95"},"modified":"2020-06-17T01:09:58","modified_gmt":"2020-06-17T01:09:58","slug":"big-commerce-adding-rel-attributes-to-pagination","status":"publish","type":"post","link":"https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/","title":{"rendered":"Big Commerce &#8211; Adding rel attributes to pagination"},"content":{"rendered":"<p>I was working on a <a href=\"https:\/\/www.bigcommerce.com\/\" title=\"Big Commerce\">BigCommerce<\/a> site that needed rel attributes added to its pagination links. I&#8217;ve worked with BigCommerce sites in the past and I was curious if their backend had changed since then. <\/p>\n<p>The rel=&#8221;next&#8221; and rel=&#8221;prev&#8221; link attributes are used to tell Google that each page in the series are unique &#8211; this eliminates duplicate content. This is similar to the rel=&#8221;canonical&#8221; attribute. <\/p>\n<p>I dove right in &#8211; everything looked pretty much the same which was good, I needed that extra time to get familiarized again with where their template files were. I&#8217;m a big fan of BigCommerce &#8211; their backend is super slick. They&#8217;re working hard over there at BigCommerce.<\/p>\n<p><!--more--><\/p>\n<p>When you&#8217;re in the backend, BigCommerce is loaded with modules and for the general administrator of the site &#8211; it does a pretty good job of providing call to action links to navigate around with ease. <\/p>\n<p>If I had one feature request though &#8211; it would be to add call to action link to their template files and a huge title somewhere indicating which theme is installed. If you&#8217;re curious where they are, here is the navigation flow:<\/p>\n<h2>To access theme files<\/h2>\n<p><strong>Store Front > My Themes > Edit HTML \/ CSS<\/strong><\/p>\n<h2>To access snippets<\/h2>\n<p><strong>Store Front > Snippets (expand with +)<\/strong><\/p>\n<p>Ok, moving on the adding the attributes. I was able to find the pagination file, it seemed to be a pretty standard file based on my research around forums unless you have a very specific theme file. <\/p>\n<h2>The Pagination File<\/h2>\n<p>Panels\/Pagination.html<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n\r\n&lt;div class=&quot;js-pagination {{ paginationClass }}&quot;&gt;\r\n    {{#paginate pagination type=&quot;previous&quot;}}\r\n        {{^if disabled}}&lt;a href=&quot;#&quot; class=&quot;nav-prev icon-angle-left js-paginate&quot; data-page=&quot;{{n}}&quot; rel=&quot;prev&quot;&gt;&lt;\/a&gt;{{\/if}}\r\n    {{\/paginate}}\r\n    &lt;ul class=&quot;js-paging-list {{ pagingListClass }}&quot;&gt;\r\n        {{#paginate pagination type=&quot;middle&quot; limit=&quot;7&quot;}}\r\n        {{#if active}}\r\n        &lt;li class=&quot;ActivePage&quot;&gt;{{n}}&lt;\/li&gt;\r\n        {{else}}\r\n        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;js-paginate&quot; data-page=&quot;{{n}}&quot;&gt;{{n}}&lt;\/a&gt;&lt;\/li&gt;\r\n        {{\/if}}\r\n        {{\/paginate}}\r\n    &lt;\/ul&gt;\r\n    {{#paginate pagination type=&quot;next&quot;}}\r\n        {{^if disabled}}&lt;a href=&quot;#&quot; class=&quot;nav-next icon-angle-right js-paginate&quot; data-page=&quot;{{n}}&quot; rel=&quot;next&quot;&gt;&lt;\/a&gt;{{\/if}}\r\n    {{\/paginate}}\r\n&lt;\/div&gt;\u200b\r\n\r\n<\/pre>\n<p>Here you pretty much have all you need to implement those rel=&#8221;next&#8221; and rel=&#8221;prev&#8221; links. Keep in mind your pagination file may look slightly different based on your theme but you get the general idea. I went ahead and added them above. Pretty sweet.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was working on a BigCommerce site that needed rel attributes added to its pagination links. I&#8217;ve worked with BigCommerce sites in the past and I was curious if their backend had changed since then. The rel=&#8221;next&#8221; and rel=&#8221;prev&#8221; link attributes are used to tell Google that each page in the series are unique &#8211; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Big Commerce &#8211; Adding rel attributes to pagination&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1123,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-95","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Big Commerce - Adding rel attributes to pagination - Project Immerse<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Big Commerce - Adding rel attributes to pagination - Project Immerse\" \/>\n<meta property=\"og:description\" content=\"I was working on a BigCommerce site that needed rel attributes added to its pagination links. I&#8217;ve worked with BigCommerce sites in the past and I was curious if their backend had changed since then. The rel=&#8221;next&#8221; and rel=&#8221;prev&#8221; link attributes are used to tell Google that each page in the series are unique &#8211; &hellip; Continue reading &quot;Big Commerce &#8211; Adding rel attributes to pagination&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/\" \/>\n<meta property=\"og:site_name\" content=\"Project Immerse\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-19T20:31:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-17T01:09:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/07\/bigcommerce-adding-rel-attributres-to-pagination.png\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"750\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"projectimmerse\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"projectimmerse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/big-commerce-adding-rel-attributes-to-pagination\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/big-commerce-adding-rel-attributes-to-pagination\\\/\"},\"author\":{\"name\":\"projectimmerse\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#\\\/schema\\\/person\\\/c53f2864be524ee6fa08a7e4800dd1e5\"},\"headline\":\"Big Commerce &#8211; Adding rel attributes to pagination\",\"datePublished\":\"2018-07-19T20:31:04+00:00\",\"dateModified\":\"2020-06-17T01:09:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/big-commerce-adding-rel-attributes-to-pagination\\\/\"},\"wordCount\":455,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/big-commerce-adding-rel-attributes-to-pagination\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/bigcommerce-adding-rel-attributres-to-pagination.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/big-commerce-adding-rel-attributes-to-pagination\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/big-commerce-adding-rel-attributes-to-pagination\\\/\",\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/big-commerce-adding-rel-attributes-to-pagination\\\/\",\"name\":\"Big Commerce - Adding rel attributes to pagination - Project Immerse\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/big-commerce-adding-rel-attributes-to-pagination\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/big-commerce-adding-rel-attributes-to-pagination\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/bigcommerce-adding-rel-attributres-to-pagination.png\",\"datePublished\":\"2018-07-19T20:31:04+00:00\",\"dateModified\":\"2020-06-17T01:09:58+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#\\\/schema\\\/person\\\/c53f2864be524ee6fa08a7e4800dd1e5\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/big-commerce-adding-rel-attributes-to-pagination\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/big-commerce-adding-rel-attributes-to-pagination\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/big-commerce-adding-rel-attributes-to-pagination\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/bigcommerce-adding-rel-attributres-to-pagination.png\",\"contentUrl\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/bigcommerce-adding-rel-attributres-to-pagination.png\",\"width\":750,\"height\":750,\"caption\":\"BigCommerce Adding Rel Attributes to Pagination\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/big-commerce-adding-rel-attributes-to-pagination\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Big Commerce &#8211; Adding rel attributes to pagination\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/\",\"name\":\"Project Immerse\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#\\\/schema\\\/person\\\/c53f2864be524ee6fa08a7e4800dd1e5\",\"name\":\"projectimmerse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g\",\"caption\":\"projectimmerse\"},\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/author\\\/projectimmerse\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Big Commerce - Adding rel attributes to pagination - Project Immerse","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/","og_locale":"en_US","og_type":"article","og_title":"Big Commerce - Adding rel attributes to pagination - Project Immerse","og_description":"I was working on a BigCommerce site that needed rel attributes added to its pagination links. I&#8217;ve worked with BigCommerce sites in the past and I was curious if their backend had changed since then. The rel=&#8221;next&#8221; and rel=&#8221;prev&#8221; link attributes are used to tell Google that each page in the series are unique &#8211; &hellip; Continue reading \"Big Commerce &#8211; Adding rel attributes to pagination\"","og_url":"https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/","og_site_name":"Project Immerse","article_published_time":"2018-07-19T20:31:04+00:00","article_modified_time":"2020-06-17T01:09:58+00:00","og_image":[{"width":750,"height":750,"url":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/07\/bigcommerce-adding-rel-attributres-to-pagination.png","type":"image\/png"}],"author":"projectimmerse","twitter_card":"summary_large_image","twitter_misc":{"Written by":"projectimmerse","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/#article","isPartOf":{"@id":"https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/"},"author":{"name":"projectimmerse","@id":"https:\/\/www.projectimmerse.com\/blog\/#\/schema\/person\/c53f2864be524ee6fa08a7e4800dd1e5"},"headline":"Big Commerce &#8211; Adding rel attributes to pagination","datePublished":"2018-07-19T20:31:04+00:00","dateModified":"2020-06-17T01:09:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/"},"wordCount":455,"commentCount":0,"image":{"@id":"https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/#primaryimage"},"thumbnailUrl":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/07\/bigcommerce-adding-rel-attributres-to-pagination.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/","url":"https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/","name":"Big Commerce - Adding rel attributes to pagination - Project Immerse","isPartOf":{"@id":"https:\/\/www.projectimmerse.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/#primaryimage"},"image":{"@id":"https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/#primaryimage"},"thumbnailUrl":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/07\/bigcommerce-adding-rel-attributres-to-pagination.png","datePublished":"2018-07-19T20:31:04+00:00","dateModified":"2020-06-17T01:09:58+00:00","author":{"@id":"https:\/\/www.projectimmerse.com\/blog\/#\/schema\/person\/c53f2864be524ee6fa08a7e4800dd1e5"},"breadcrumb":{"@id":"https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/#primaryimage","url":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/07\/bigcommerce-adding-rel-attributres-to-pagination.png","contentUrl":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/07\/bigcommerce-adding-rel-attributres-to-pagination.png","width":750,"height":750,"caption":"BigCommerce Adding Rel Attributes to Pagination"},{"@type":"BreadcrumbList","@id":"https:\/\/www.projectimmerse.com\/blog\/big-commerce-adding-rel-attributes-to-pagination\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.projectimmerse.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Big Commerce &#8211; Adding rel attributes to pagination"}]},{"@type":"WebSite","@id":"https:\/\/www.projectimmerse.com\/blog\/#website","url":"https:\/\/www.projectimmerse.com\/blog\/","name":"Project Immerse","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.projectimmerse.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.projectimmerse.com\/blog\/#\/schema\/person\/c53f2864be524ee6fa08a7e4800dd1e5","name":"projectimmerse","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g","caption":"projectimmerse"},"url":"https:\/\/www.projectimmerse.com\/blog\/author\/projectimmerse\/"}]}},"_links":{"self":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/comments?post=95"}],"version-history":[{"count":4,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts\/95\/revisions"}],"predecessor-version":[{"id":468,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts\/95\/revisions\/468"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/media\/1123"}],"wp:attachment":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/media?parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/categories?post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/tags?post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}