- This topic has 19 replies, 3 voices, and was last updated 10 months, 3 weeks ago by
David.
-
AuthorPosts
-
August 24, 2019 at 6:04 pm #992608
Anonymous
The theme generates URI with URL fragments or anchors e.g. http://www.domain.com/post-name/#post-id. There doesn’t appear to limit this to only http://www.domain.com/post-name. What options are there to remove the #post-id URL fragment?
August 24, 2019 at 8:52 pm #992642Leo
StaffCustomer SupportHi there,
This should help:
https://docs.generatepress.com/article/generate_more_jump/Let me know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 24, 2019 at 11:17 pm #992670Anonymous
Thanks Leo. Which file does it need to be added to?
August 25, 2019 at 3:56 am #992748David
StaffCustomer SupportHi there,
that PHP snippet should go in your child themes function.php
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 25, 2019 at 11:41 am #993154Anonymous
Thanks David. Can you please confirm the path of the child theme?
August 25, 2019 at 12:11 pm #993175Leo
StaffCustomer SupportNot quite sure if I understand.
When you download and install a child theme from here:
https://docs.generatepress.com/article/using-child-theme/#installing-a-child-themeYou get a folder named
generatepress_child
with 3 tiles in it:
https://www.screencast.com/t/FONtnocsr9Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 25, 2019 at 6:40 pm #993385Anonymous
Thanks Leo.
The theme was installed via GenerePress’ site library option. There isn’t a directory called “generate_child”.
Is the directory path for example /home/user/public_html/wp-content?
August 25, 2019 at 9:09 pm #993426Leo
StaffCustomer SupportThe site library templates aren’t child themes.
You will need to add one using the instruction here first:
https://docs.generatepress.com/article/using-child-theme/#installing-a-child-themeOr just use the Code Snippets option here:
https://docs.generatepress.com/article/adding-php/Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 25, 2019 at 9:33 pm #993437Anonymous
Thanks Leo. Why is there a need to install a child theme?
Can the removal of the URL fragment be achieved without it and the use of a plugin?
August 25, 2019 at 9:34 pm #993438Leo
StaffCustomer SupportYou have to choose either a child theme or a plugin to add PHP.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 25, 2019 at 9:50 pm #993440Anonymous
Thanks Leo. Will uploading the child theme overwrite any of the pages, posts and/or settings?
August 25, 2019 at 9:53 pm #993441Leo
StaffCustomer SupportNo π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 13, 2020 at 8:26 pm #1238068Anonymous
Hi Leo,
The filter add_filter( ‘generate_more_jump’, ‘__return_false’ ); was added to the wp-content/themes/generatepress_child/functions.php file. It does not however remove the URL fragment or anchor from the read me button.
The child theme was uploaded following the instructions at https://docs.generatepress.com/article/using-child-theme/. I assume that the child team does not need to be activated.
April 14, 2020 at 2:17 am #1238298David
StaffCustomer SupportHi there,
the Child Theme has to be activated.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 14, 2020 at 2:24 am #1238302Anonymous
Thanks David. The documentation did not include the requirement to activate it.
It works now although it has distorted the “Split” navigation menu. How can it be reinstated?
There was no custom CSS other than the “Additional CSS” which has now been lost.
-
AuthorPosts
- You must be logged in to reply to this topic.