Skip Navigation

[Resolved] Page layout changes when archive has pagination

This thread is resolved. Here is a description of the problem and solution.

Problem: I have a WordPress Archive that looks okay unless the number of results requires pagination. Then the page looks broken.

Solution: Check the Loop Output editor and make sure you have div tags closed correctly. Usually this indicates a missing closing tag somewhere.

Relevant Documentation: https://toolset.com/documentation/user-guides/digging-into-view-outputs/

This support ticket is created 6 years, 4 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.

Our next available supporter will start replying to tickets in about 3.02 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by thomasB-2 6 years, 4 months ago.

Assisted by: Christian Cox.

Author
Posts
#917563
Pagination-setting.jpg
Correctarchive.jpg
wrong-archive.jpg

I am trying to:
Actual Toolset and Divi Theme.
Create a Archive and set setting to No Pagination. The archive page has a sidebar with some widgets.
The Archive looks good till a higher count of items was assigned to the taxonomy.
If the count was to high (i don't know exactly the correct value) a pagination was created (but not shown because i have no pagination controls) and as result the pagestructur was in that way crashed, that the sidebar content was now under the content area, but not longer in Sidebar. As you remind the Paginations settings was set to no paginations???

The correct view:
hidden link
The wrong view:
hidden link

#917684
Screen Shot 2018-06-25 at 5.08.40 PM.png
Screen Shot 2018-06-25 at 5.09.33 PM.png

Hi, something strange is going on in the markup because you can see that #sidebar is a sibling of #left-area in the correct example, but it is nested inside #left-area in the incorrect example. This type of DOM organization difference indicates an extra closing tag, or a missing closing tag, or something like that which is breaking the markup structure. Can you copy and paste all the code from this WordPress Archive for me to review? Please copy the Loop editor, the Search and Pagination editor, the Output editor, and any loop template editor code.

#917791

Here the sourcecode:

Search & Pagination:

[wpv-filter-controls][/wpv-filter-controls]
[wpv-filter-end]  

Loop Editor:

[wpv-layout-start]
[wpml-string context="arch-maschcat"]<h1>Machine Offers [wpv-taxonomy-archive info="name"]</h1>[/wpml-string]
[wpml-string context="arch-maschcat"]<p>A List of all machines currently in category [wpv-taxonomy-archive info="name"]<br/>&nbsp;<br/></p>[/wpml-string]
<p>[wpml-string context="arch-maschcat"]Here you can find <a href="<em><u>hidden link</u></em>">all our machine offers</a>[/wpml-string]<br/>&nbsp;<br/></p>
	[wpv-items-found]
	<!-- wpv-loop-start -->
<div id="catview">
  <div id="fz100" class="et_pb_row et_pb_row_1"> 
	<wpv-loop wrap="3" pad="true">
		[wpv-item index=1] 
  	<div class="et_pb_column et_pb_column_1_3 et_pb_column_1">[wpv-post-body view_template="machines GridView"]</div> 
	<!-- .et_pb_column -->
		[wpv-item index=other]
	<div class="et_pb_column et_pb_column_1_3 et_pb_column_2">[wpv-post-body view_template="machines GridView"]</div> 
		[wpv-item index=3]
	<!-- .et_pb_column -->
	<div class="et_pb_column et_pb_column_1_3 et_pb_column_3 ">[wpv-post-body view_template="machines GridView"]</div> 			
	<!-- .et_pb_column -->
    [wpv-item index=pad]
	[wpv-item index=pad-last]
</div> 	
<!-- .et_pb_row -->	
</wpv-loop>
	<!-- wpv-loop-end -->
	[/wpv-items-found]<ul class="pagination">
	<li class="page-item">[wpv-pager-archive-prev-page][wpml-string context="wpv-views"]Previous[/wpml-string][/wpv-pager-archive-prev-page]</li>
	<li class="page-item">[wpv-pager-archive-next-page][wpml-string context="wpv-views"]Next[/wpml-string][/wpv-pager-archive-next-page]</li>
</ul>

	[wpv-no-items-found]
		<strong>[wpml-string context="arch-maschcat"]<p>Actual we have no offers in these specific category for you. 
          </p></strong><br/>&nbsp;<p>If you search for a specific printing machine - please <a href="<em><u>hidden link</u></em>">contact us directly!</a></p><hr>
[/wpml-string]
	[/wpv-no-items-found]
[wpv-layout-end]

<span class="catfo">[wpml-string context="arch-maschcat"]<p style="text-align:center;">Here you can find <a href="<em><u>hidden link</u></em>">all our machine offers</a></p>[/wpml-string]</span>

Output Editor:

[wpv-layout-meta-html]
[wpv-filter-meta-html]
#918015

I see two open div tags before wpv-loop, but no closing div tags after wpv-loop:

[wpv-layout-start]
    [wpv-items-found]
    <!-- wpv-loop-start -->
<div id="catview">
  <div id="fz100" class="et_pb_row et_pb_row_1"> 
    <wpv-loop wrap="3" pad="true">
        [wpv-item index=1] 
            <div class="et_pb_column et_pb_column_1_3 et_pb_column_1">[wpv-post-body view_template="machines GridView"]</div> 
            <!-- .et_pb_column -->
        [wpv-item index=other]
            <div class="et_pb_column et_pb_column_1_3 et_pb_column_2">[wpv-post-body view_template="machines GridView"]</div> 
        [wpv-item index=3]
            <!-- .et_pb_column -->
            <div class="et_pb_column et_pb_column_1_3 et_pb_column_3 ">[wpv-post-body view_template="machines GridView"]</div>          
            <!-- .et_pb_column -->
        [wpv-item index=pad]
        [wpv-item index=pad-last]
            </div>    
    <!-- .et_pb_row -->   
    </wpv-loop>
    <!-- wpv-loop-end -->
    [/wpv-items-found]

I see a closing div tag in the wpv-item index=pad-last, but it only gets applied when there is less than one page of results. This is why there is a difference.

I suggest you change the loop to:

[wpv-layout-start]
    [wpv-items-found]
    <!-- wpv-loop-start -->
<div id="catview">
  <div id="fz100" class="et_pb_row et_pb_row_1"> 
    <wpv-loop wrap="3" pad="true">
        [wpv-item index=1] 
            <div class="et_pb_column et_pb_column_1_3 et_pb_column_1">[wpv-post-body view_template="machines GridView"]</div> 
            <!-- .et_pb_column -->
        [wpv-item index=other]
            <div class="et_pb_column et_pb_column_1_3 et_pb_column_2">[wpv-post-body view_template="machines GridView"]</div> 
        [wpv-item index=3]
            <!-- .et_pb_column -->
            <div class="et_pb_column et_pb_column_1_3 et_pb_column_3 ">[wpv-post-body view_template="machines GridView"]</div>          
            <!-- .et_pb_column -->
        [wpv-item index=pad]
        [wpv-item index=pad-last]
    <!-- .et_pb_row -->   
    </wpv-loop>
    <!-- wpv-loop-end -->
    [/wpv-items-found]
            </div>    
            </div>    

In the Search & Pagination editor, make sure you have a wpv-filter-start tag:

[wpv-filter-start hide="false"]
[wpv-filter-controls][/wpv-filter-controls]
[wpv-filter-end]
#918453

as usual, a little detail I overlooked.
tnx
Thomas