admin管理员组文章数量:1022982
I´d like to focus on a div (#main.first), after clicking in wordpress pagination in my homepage. I need that because my header (with image slider) is too big, and it steals focus from my posts list. Could nor find nothing that helps. Any thoughts? Thanks!
I´d like to focus on a div (#main.first), after clicking in wordpress pagination in my homepage. I need that because my header (with image slider) is too big, and it steals focus from my posts list. Could nor find nothing that helps. Any thoughts? Thanks!
Share Improve this question asked Apr 29, 2019 at 17:14 OmniatomOmniatom 596 bronze badges1 Answer
Reset to default 0I got it with this script! from: https://stackoverflow/questions/13362026/wordpress-pagination-adding-an-anchor-link
<script type="text/javascript">
$(document).ready(function() {
$('.pagenavi a').each(function(i,a){$(a).attr('href',$(a).attr('href')+'#blog')});
});
</script>
I´d like to focus on a div (#main.first), after clicking in wordpress pagination in my homepage. I need that because my header (with image slider) is too big, and it steals focus from my posts list. Could nor find nothing that helps. Any thoughts? Thanks!
I´d like to focus on a div (#main.first), after clicking in wordpress pagination in my homepage. I need that because my header (with image slider) is too big, and it steals focus from my posts list. Could nor find nothing that helps. Any thoughts? Thanks!
Share Improve this question asked Apr 29, 2019 at 17:14 OmniatomOmniatom 596 bronze badges1 Answer
Reset to default 0I got it with this script! from: https://stackoverflow/questions/13362026/wordpress-pagination-adding-an-anchor-link
<script type="text/javascript">
$(document).ready(function() {
$('.pagenavi a').each(function(i,a){$(a).attr('href',$(a).attr('href')+'#blog')});
});
</script>
本文标签: paginate linksHow to focus to a specific div when page reloads by pagination
版权声明:本文标题:paginate links - How to focus to a specific div when page reloads by pagination? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745540715a2155171.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论