- This topic has 9 replies, 2 voices, and was last updated 3 years, 5 months ago by David.
-
AuthorPosts
-
November 19, 2020 at 12:40 am #1537153Paul
Hi how are you?
Anchor links are used in the table of content sections.
When I click any one from the table of content, it will be more space when moving the corresponding heading?may I know what problem there? how to fix that?
please check my link from the private information
thanks in advance
November 19, 2020 at 1:52 am #1537231DavidStaffCustomer SupportHi there,
you can enable the Smooth Scroll option in the Customizer > General – see here for more info about adding classes to your links:
https://docs.generatepress.com/article/smooth-scroll/
This will offset the height of the sticky navigation for the scroll position.
If want you can apply smoothscroll to all links by simply adding the PHP Snippet provided here:
https://docs.generatepress.com/article/generate_smooth_scroll_elements/
November 19, 2020 at 2:27 am #1537263Paulhi david,
thanks for your reply and help.
i tried the first option, and it is useful and solved. but i need to add {class=”smooth-scroll”}one by one manually.
so,
i think the second option is better way. just add PHP Snippet one time, then can solve all.
I’m sorry that i dont know how to add PHP Snippet because i dont know PHP, can you give me the steps or simple guides here?
Thanks in advance.
November 19, 2020 at 2:34 am #1537270DavidStaffCustomer SupportNo problems.
You will need to keep the Customizer > General > Smooth Scroll Enabled.Now you have two options:
1. If you’re using a Child Theme then paste the PHP Snippet into your Child Themes > functions.php.
2. No Child Theme – then install the Code Snippets plugin and create a new snippet to add the code.
More detail provided here:
November 19, 2020 at 3:09 am #1537309Paulhi David
thanks for your quick response and helpsI installed GeneratePress free + Generatepress Premium theme,(https://prnt.sc/vm3gpo) it has the Child Theme?
I don’t find the Child Theme from Generatepress Theme.
If Generatepress has Child Theme, can you show me the link of Child Theme?
Sorry to send you the troubles
best regards
November 19, 2020 at 5:26 am #1537429DavidStaffCustomer SupportThis article explains how to add a child theme, and provides a link to the blank child theme:
November 19, 2020 at 5:41 am #1537439Paulhi david
thanks for your reply.
i think i dont need child theme. because my website is ready based on the GP Premium (https://generatepress.com/premium/)
when i bought the generate theme, dont talk about the child theme.
If possible, please help me to check my website link from private info, it has child theme?
I’m sorry that I’m not good at this theme checking.
so i can directly install the PHP Snippet plugin and add the PHP.
best regards\
November 19, 2020 at 6:07 am #1537470DavidStaffCustomer SupportMaybe just install the Code Snippets plugin ?
Its far simpler than messing with Child Themes.November 19, 2020 at 6:26 am #1537493Paulhi david
thanks for all
good day for youNovember 19, 2020 at 6:30 am #1537497DavidStaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.