paginate links - How to focus to a specific div when page reloads by pagination?

I´d like to focus on a div (#main.first), after clicking in wordpress pagination in my homepage.I need that because my

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

I 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>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745540716a4632116.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信