This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function loadGoogleAnalytics() { | |
| return new Promise((resolve, reject) => { | |
| // Create the script element for Google Analytics | |
| const script = document.createElement("script"); // change the variable to 'var' if Elementor | |
| script.async = true; | |
| script.src = | |
| "https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID_HERE"; | |
| //script.onload = resolve; | |
| script.onload = () => { | |
| // Remove this function after testing and un-comment the line above this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% for part in (1..paginate.pages) %} | |
| {% if forloop.index == 1 %} | |
| {% if paginate.next.is_link %} | |
| {%- assign next_page = current_page | plus: 1 -%} | |
| {%- assign page_query_param_old = 'page=' | append: next_page -%} | |
| {%- assign page_url_template = paginate.next.url -%} | |
| {% elsif paginate.previous.is_link %} | |
| {%- assign previous_page = current_page | minus: 1 -%} | |
| {%- assign page_query_param_old = 'page=' | append: previous_page -%} | |
| {%- assign page_url_template = paginate.previous.url -%} |