{"id":14690,"date":"2018-10-09T07:59:38","date_gmt":"2018-10-09T07:59:38","guid":{"rendered":"http:\/\/rnbtheme.com\/documentation\/?p=14690"},"modified":"2018-10-09T08:00:14","modified_gmt":"2018-10-09T08:00:14","slug":"revapi-error","status":"publish","type":"post","link":"https:\/\/rnbtheme.com\/documentation\/knowledge-base\/revapi-error","title":{"rendered":"Revapi error"},"content":{"rendered":"<p>Your page can have issues with the Revolution slider not displaying, animation not working and header not changing while scroll because of the revapi error.<br \/>\nYou can check it in the browser\u2019s Console (press F12 in Chrome &gt; Console). It\u2019ll state that\u00a0<strong>revapi is not defined<\/strong>. It may be caused by duplicated or copied sliders, etc.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-11967\" src=\"http:\/\/rnbtheme.com\/documentation\/wp-content\/uploads\/2018\/10\/api_error.png\" alt=\"api_error\" width=\"572\" height=\"84\" \/><\/p>\n<p>However, there\u2019s an easy fix.<\/p>\n<p>Navigate to Revolution slider (in your admin panel) &gt; Select a slider &gt; API Functions in the right side settings &gt; check the Api methods and the number of the slider (e.g.: revapi7.revpause();).<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-11969\" src=\"http:\/\/rnbtheme.com\/documentation\/wp-content\/uploads\/2018\/10\/api_functions.png\" alt=\"api_functions\" width=\"400\" height=\"577\" \/><\/p>\n<p>Scroll a bit down to Custom CSS\/JavaScript and select Custom JavaScript &gt; look for the wrong number at the revapi and change it to the correct value (from the API functions) in lines 2 and 8.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-11968\" src=\"http:\/\/rnbtheme.com\/documentation\/wp-content\/uploads\/2018\/10\/api_js.png\" alt=\"api_js\" width=\"1024\" height=\"634\" \/><\/p>\n<p>It has to fix your issue and the site will work properly again.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Your page can have issues with the Revolution slider not displaying, animation not working and header not changing while scroll because of the revapi error. You can check it in<\/p>\n","protected":false},"author":30,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[106,104,105],"_links":{"self":[{"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/posts\/14690"}],"collection":[{"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/comments?post=14690"}],"version-history":[{"count":1,"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/posts\/14690\/revisions"}],"predecessor-version":[{"id":14695,"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/posts\/14690\/revisions\/14695"}],"wp:attachment":[{"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/media?parent=14690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/categories?post=14690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/tags?post=14690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}