Skip to content

Commit 5c5d768

Browse files
committed
fix manually setting app store link not working bug
1 parent 031e225 commit 5c5d768

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

_includes/appstoreimages.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
$($appPrice).html(appInfo.formattedPrice);
4545
}
4646

47-
// Set price using the iOS app ID if it is not set manually in _config.yml
48-
var $appStoreLink = $(".appStoreLink");
49-
if ($.trim($($appStoreLink).text()).length == 0) {
47+
// Set App Store link using the iOS app ID if it is not set manually in _config.yml
48+
var $appStoreLink = $(".appStoreLink").attr('href');
49+
if ($.trim($appStoreLink).length == 0) {
5050
$($appStoreLink).attr("href", appInfo.trackViewUrl);
5151
}
5252

_layouts/default.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ <h2 class="appPrice">
5252
</div>
5353
<div class="downloadButtonsContainer">
5454
{% if site.playstore_link %}
55-
<a class="playStoreLink" href=""><img class="playStore" src="assets/playstore.png"></a>
55+
<a class="playStoreLink" href="{{site.playstore_link}}"><img class="playStore" src="assets/playstore.png"></a>
5656
{% endif %}
57-
<a class="appStoreLink" href=""><img class="appStore" src="assets/appstore.png"></a>
57+
<a class="appStoreLink" href="{{site.appstore_link}}"><img class="appStore" src="assets/appstore.png"></a>
5858
</div>
5959
</div>
6060
{% include features.html %}

0 commit comments

Comments
 (0)