- This topic has 5 replies, 2 voices, and was last updated 7 months, 1 week ago by David.
July 22, 2020 at 10:04 pm #1372918Eric
Hey GPress Team, hope you guys are all staying safe wherever you are…
I just wanted to request for some help, I have purchased a plugin AJAX Load More and I am trying to install it but it’s a bit advanced for me. The plugin will load my posts dynamically via AJAX after a visitor clicks the READ MORE button, but to make it work I need to replace the_content() in my GPress child theme. I don’t know where to find the_content() to replace I’ve looked in the Theme Editor for both my Child Theme and main GPress installations but I don’t really know where to replace it. Here is the actual plugin installation that I’m trying to complete:
I hope you guys can point me in the right direction so I don’t break my site! Just to clarify, I’m trying to use this shortcode on single posts and not blogroll/index/archive pages.
Thank you for your time and I hope to hear from you soon.July 23, 2020 at 1:36 am #1373072DavidStaffCustomer Support
you will need to create a copy of the content-single.php template in your Child Theme.
Here is the template, and i have marked the line where
the_content()function is found.July 23, 2020 at 3:28 am #1373177Eric
OK great I’ll give this a shot… do you have any documentation for creating a copy for my Child Theme? Sorry I just want to make sure I don’t screw it up!July 23, 2020 at 5:01 am #1373266DavidStaffCustomer Support
I assume you have FTP / File access to your server.
Go to the wp-content/themes/generatepress folder.
And copy the content-single.php and paste it into your child theme folder.
Of if you create an empty file for the content-single.php in your child theme you can copy and paste the template from here:July 23, 2020 at 11:07 pm #1374332Eric
OK I think I figured it worked… thank you again! Stay safe GPress team 🙂July 24, 2020 at 2:15 am #1374476
- You must be logged in to reply to this topic.