- Posts: 7
- Thank you received: 0
Comments links do not work, no pagination etc...
-
stetze
Inactive member - Topic Author
- New Member
Less
More
11 years 7 months ago #29326
by stetze
Replied by stetze on topic Comments links do not work, no pagination etc...
i mean the comment link on the top at the page... at the moment call "DISQUS_COMMENT".... when i click that link, it must normaly scroll down to the comments...
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 7 months ago #29333
by ivan.milic
Replied by ivan.milic on topic Comments links do not work, no pagination etc...
Open templates/hot_responsive/js/dynlayout.js
At bottom you will find this:
change it:
At bottom you will find this:
Code:
jQuery(document).ready(function(){
if(String(window.location).indexOf('#') > 0){
window.location = String(window.location).split('#')[0];
}
});
change it:
Code:
jQuery(document).ready(function(){
if(String(window.location).indexOf('#') > 0){
if(String(window.location).split('#')[1] != 'disqus_thread')
window.location = String(window.location).split('#')[0];
}
});
Please Log in to join the conversation.
-
stetze
Inactive member - Topic Author
- New Member
Less
More
- Posts: 7
- Thank you received: 0
11 years 7 months ago #29337
by stetze
Replied by stetze on topic Comments links do not work, no pagination etc...
thanks for the fast response...
i changed it, but it didn't help...
when i try to receive the comments over the link, i see in the source text... a blank site opened, with a ajax load screen? but nothing happens...
for testing i've enabled the comments in category list too...
thanks for help...
best regards
i changed it, but it didn't help...
when i try to receive the comments over the link, i see in the source text... a blank site opened, with a ajax load screen? but nothing happens...
for testing i've enabled the comments in category list too...
thanks for help...
best regards
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 7 months ago #29347
by ivan.milic
Replied by ivan.milic on topic Comments links do not work, no pagination etc...
Try this code instead:
Code:
jQuery(document).ready(function(){
if(String(window.location).indexOf('#') > 0){
window.location = String(window.location).split('#')[0];
}
jQuery('a').each(function(i){
if(jQuery(this).attr('href').indexOf('#') > 0){
jQuery(this).click(function(event){
if(jQuery(this.hash)[0]){
event.preventDefault();
try{
jQuery('html,body').animate({scrollTop:jQuery(this.hash).offset().top}, 500);
}catch(e){
//
}
}
});
}
});
});
Please Log in to join the conversation.
-
stetze
Inactive member - Topic Author
- New Member
Less
More
- Posts: 7
- Thank you received: 0
11 years 7 months ago - 11 years 7 months ago #29357
by stetze
Replied by stetze on topic Comments links do not work, no pagination etc...
no, it don't work... now the designs have design mistakes
if i disable javascript in my browser, the design looks nearly self (design mistakes), but the link gone.
Maybe javascript errors?
if i disable javascript in my browser, the design looks nearly self (design mistakes), but the link gone.
Maybe javascript errors?
Last edit: 11 years 7 months ago by stetze.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 7 months ago #29364
by ivan.milic
Replied by ivan.milic on topic Comments links do not work, no pagination etc...
Now you have multiple jquery references creating conflict. It's from something you enabled recently.
Please Log in to join the conversation.
Time to create page: 0.084 seconds