This will need JavaScript.
ok, but do not know how you do it, anyone can help me?
Try finding your <body>
tag in header.php then add an onload event attribute like this:
<body onload=' location.href="#anchor" '>
Then in your template:
<div id='anchor'>whatever</div>
When the page loads ‘whatever’ will be at the top of your screen.
thank you very much, but it definitely works because I entered the code incorrectly.
I use RTpanel theme then /wp-content/themes/rtpanel/header.php post at bottom:
<body onload=’ location.href=”#anchor” ‘>
while <div id=’anchor’>whatever</div> in wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.php
the page to jump below the header is that of the user profile BuddyPress, where there is activity, friends, groups, messages, etc …
then I did not understand the ‘whatever’
sorry but it is my first website, I have already learned a lot and I would also fix this thing
thanks again
‘whatever’ can be anything. I was using it as an example. In your case, it will be an image, or some text or anything. The key bit to understand is whichever page element you put id='anchor'
on is the page element that will appear at the top of your page, on page load.
I got it!
thank you very much!
it works!
however, appears in the permalink / # anchor, is this normal? can be removed?