Skip Navigation

[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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 6 years, 8 months ago.

Assisted by: Nigel.

Author
Posts
#627901
Capture.PNG

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"?

#628225

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

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.

If you try that and have problems let me know.