- This topic has 57 replies, 7 voices, and was last updated 7 years, 7 months ago by
Michael.
-
AuthorPosts
-
April 29, 2016 at 11:56 pm #190513
xyz
<p style="position: relative;"></p>Hi Tom,
The above works beautifully. I found it here – http://stackoverflow.com/questions/17534661/make-anchor-link-go-some-pixels-above-where-its-linked-to
after completely not being able to work out where to put the
a.anchor {
display: block;
position: relative;
top: -250px;
visibility: hidden;
}Happy.
April 29, 2016 at 11:59 pm #190514xyz
<p style="position: relative;"><a id="economics" style="position: absolute; top: -100px;" name="economics"></a></p>Happier now I finally figured that bit out as well.
April 30, 2016 at 12:02 am #190516Tom
Lead DeveloperLead DeveloperAwesome 🙂
April 30, 2016 at 12:13 am #190522xyz
Thanks for your perseverance Tom, I appreciate it. I’m enjoying playing in GeneratePress.
Cheers.
April 30, 2016 at 9:53 am #190617Tom
Lead DeveloperLead DeveloperNo problem! Glad you’re enjoying it 🙂
July 13, 2016 at 2:51 pm #209388Bin
Hi. Wouldn’t this plugin the easier way to solve the problem (until Tom integrates his own solution! ;))
https://wordpress.org/plugins/hash-link-scroll-offset/
Cheers, Bin
July 13, 2016 at 5:29 pm #209412Tom
Lead DeveloperLead DeveloperCool plugin, thanks for sharing! 🙂
July 14, 2016 at 7:41 am #209591Bin
Yes, but unfortunately NOT perfect as i found out last night. If you click an anchor link (absolute link!) from the actual/same page (e.g. a top menu button) it does not work properly. It’s really a pity! The very best option would be: YOU (Dear Tom) integrate a plugin that fits perfectly into GP!!! Maybe there is one on the way already???
Bye, Bin
July 14, 2016 at 9:08 am #209635Tom
Lead DeveloperLead DeveloperI’ll try to get this integrated into the next version, but it might not be until 1.2.89.
July 14, 2016 at 9:33 am #209642Bin
OK, sounds good.
By the way, you solved the problem by using the section-ID for the INSTALL-Button on your page:
https://generatepress.com/install-generatepress/But the url “…/#generate-section-2” is not soooo good for SEO! 😉
Is there a way to rename/customize the Section-Name?
July 14, 2016 at 6:00 pm #209821Tom
Lead DeveloperLead DeveloperI’m afraid not, but you can add an anchor into your section content and link to it:
<a name="my-seo-friendly-id"><!-- anchor --></a>July 15, 2016 at 8:52 am #210009Bin
July 15, 2016 at 12:07 pm #210083Tom
Lead DeveloperLead DeveloperSections is currently being re-written so I’ll see if I can add a new field in there for users to specify a custom ID 🙂
July 15, 2016 at 3:41 pm #210152Bin
Wow, that would be great! Thanks, Bin
July 16, 2016 at 8:58 am #210324Bin
AND a Section-CTA-Button-Field would even be greater! ;))
-
AuthorPosts
- You must be logged in to reply to this topic.