{"id":3842,"date":"2020-03-04T03:43:24","date_gmt":"2020-03-04T03:43:24","guid":{"rendered":"https:\/\/docs.contentviewspro.com\/?p=3842"},"modified":"2023-12-27T10:22:27","modified_gmt":"2023-12-27T10:22:27","password":"","slug":"how-to-disable-scroll-to-top-on-click-ajax-pages","status":"publish","type":"docs","link":"https:\/\/contentviewspro.com\/documentation\/article\/how-to-disable-scroll-to-top-on-click-ajax-pages\/","title":{"rendered":"Disable scroll to top on click Ajax pagination pages"},"content":{"rendered":"<p>If you are using Pro version, please add this code to <strong>Custom JS<\/strong> field (the right textarea) in <a href=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/03\/Content-Views-_-Settings.png\">Content Views >> Settings<\/a> page:<\/p>\n<pre style=\"font-size:13px\">\n\/* Disable scroll to top on changing ajax page *\/\nwindow.cvp_pagination_no_scroll = true;\n<\/pre>\n<p>If you are using Free version, please add above code in this way (<a href=\"https:\/\/contentviewspro.com\/documentation\/article\/add-custom-javascript-content-views-free-version\/\" rel=\"noopener noreferrer\" target=\"_blank\">click here<\/a>).<\/p>\n<p>Best regards,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are using Pro version, please add this code to Custom JS field (the right textarea) in Content Views >> Settings page: \/* Disable scroll to top on changing ajax page *\/ window.cvp_pagination_no_scroll = true; If you are using Free version, please add above code in this way (click here). Best regards,<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"doc_category":[25],"doc_tag":[],"class_list":["post-3842","docs","type-docs","status-publish","hentry","doc_category-adjustment"],"year_month":"2026-09","word_count":53,"total_views":"2","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin1","author_nicename":"admin1","author_url":"https:\/\/contentviewspro.com\/documentation\/author\/admin1\/"},"doc_category_info":[{"term_name":"Adjustment","term_url":"https:\/\/contentviewspro.com\/documentation\/cats\/adjustment\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/3842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/comments?post=3842"}],"version-history":[{"count":1,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/3842\/revisions"}],"predecessor-version":[{"id":5406,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/3842\/revisions\/5406"}],"wp:attachment":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/media?parent=3842"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=3842"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=3842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}