Skip Navigation

[Resolved] Cannot get content template and view responsive

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

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Shane 4 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#1785531
Skärmavbild 2020-09-22 kl. 11.39.39.png

Hi,
I have problem to get one of my pages to look good in smaller screens. The listning doesn't behave responsive no matter what I do and I really don't know what to do. I use Toolset and Oxygen Builder and the tutorials don't seem to solve my problem.

I have created 2 custom post types which are related 1-to-N. In this case I want to list all shops that are related to the a shoppingarea. But the shops are not listed in a responsive way.

If I create a grid in the view each shop will have a grid instead of getting all shops into one grid.

Can you help me?

#1786403

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alice,

Thank you for getting in touch.

I suspect the issue here is that Bootstrap isn't being loaded. However I will need to confirm this by looking at the site on the frontend.

Can you send me a link to the page in your screenshot so that I can have a look ?

Thanks,
Shane

#1787105

Hi,
here is the adress to the site: hidden link

#1787783

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alice,

Thank you for the link.

From what I see you are using a table layout to do this grid. Tables are not responsive elements.

You will need to re-make this layout in views using a Grid style column layout in order for it to become responsive.

Thanks,
Shane

#1788467

I tried that but then it repeats the grid layout (3-columns) for each custom post in the view. I have not added a table, just the name, image etc.

#1789459

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alice,

Can you allow me to have admin access to the site so that I can check this for you.

Based on what I see in the HTML for the page, it is using a table layout rather than the bootstrap grid layout.

I've enabled the private fields for your next response.

Thanks,
Shane

#1793239

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alice,

I can confirm that this view is actually made using a Table.

[wpv-items-found]
	<!-- wpv-loop-start -->
	<table width="100%" class="wpv-loop js-wpv-loop">
	<wpv-loop wrap="3" pad="true">
		[wpv-item index=1]
		<tr>
			<td>
				[wpv-post-body view_template="loop-item-in-lista-aktorer-pa-handelsomrade"]
			</td>
		[wpv-item index=other]
			<td>
				[wpv-post-body view_template="loop-item-in-lista-aktorer-pa-handelsomrade"]
			</td>
		[wpv-item index=3]
			<td>
				[wpv-post-body view_template="loop-item-in-lista-aktorer-pa-handelsomrade"]
			</td>
		</tr>
		[wpv-item index=pad]
			<td></td>
		[wpv-item index=pad-last]
			<td></td>
		</tr>
	</wpv-loop>
	</table>
	<!-- wpv-loop-end -->
	[/wpv-items-found]

In order for this to be responsive, you will need remake this view using the loop editor and select Bootstrap, then setup your 3 column grid.

Thanks,
Shane