[Resolved] Creating search archive layout for Avada
This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Hello, I am a bit confused. I have created a layout to replace the default template that Avada has for the search archive.
For the most part, the replacement took place. However, from the screen capture attached, you can see there are two pagination controls (One from Layout/View and one from Avada's own search archive template).
When I look into the source code, Layout is inserting itself into the div with the class "fusion-posts-container" of Avada's template. Shouldn't the Layout template replace the content of the div with the class "posts-container"?
A custom archive created with Toolset replaces the part of the content generated by the theme in the standard loop section.
So if you open up the theme's archive.php (which may other template parts) the part which will be replaced is specifically what appears here:
while ( have_posts() ) : the_post();
/* this will be replaced */
endwhile;
If you dig down into the Avada files you will see the pagination is added outside of that block, i.e. is not replaced by Toolset.
For pagination use either/or.
You can omit the Toolset pagination and use the Avada pagination controls.
I haven't tested it (the queue is very busy so I'll leave it for you to test) but if you create a custom WordPress archive which has a Content Template designed with Fusion Builder then you should see under the theme options section an option for pagination where you can turn it off.