Skip Navigation

[Resolved] Mobile Display

This support ticket is created 6 years, 7 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
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 9 replies, has 2 voices.

Last updated by Christian Cox 6 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#674722

puppies.co.uk is my new site.

Can you help me on puppies.co.uk/dog-breeds

looking to fix 2 things:

1. the code to crop to a thumbnail size of every image isnt working (this also isnt working on /puppies-for-sale)
2. How can i get it to display on mobile where every item falls underneath eachother- instead of cramming in side by side?

#675018

1. the code to crop to a thumbnail size of every image isnt working (this also isnt working on /puppies-for-sale)
Please copy + paste the code you are using here for me to review.

2. How can i get it to display on mobile where every item falls underneath eachother- instead of cramming in side by side?
It looks like your View is set up with a table or table-based grid loop structure. That structure isn't really ideal for a responsive design where the columns change at different screen sizes. You could use the Bootstrap grid system instead, and apply their responsive grid classes to each item in the loop. We have some more information about these different loop styles here, along with a link to the Bootstrap grid documentation:
https://toolset.com/documentation/user-guides/view-layouts-101/
https://getbootstrap.com/docs/3.3/css/#grid

#675420

I am using code: {!{types field='photo' alt='%%ALT%%' title='%%TITLE%%' size='thumbnail' align='left' resize='crop'}!}{!{/types}!}
It worked when I was in development mode but now doesnt

Okay i will have a go at bootstrap and let you know.

#675441

Please go to Toolset > Settings > Custom Content and try clearing the image caches, then check both boxes, save, and try again. It looks like the images are loading from an IP address and not your regular URL, so this could be part of the issue.

#675753

thanks thats fixed it- Can you take a look at /puppies-for-sale and work out why some thumbnails are odd shapes?

#675813

It's because your theme includes some CSS that uses display: flex on the class "row". I'm attaching a screenshot here. If I disable that style, the columns become fixed widths. You can probably override their style with some more specific CSS. Wrap this View in a div that has a unique CSS class, then target .row as a descendant and apply display:block;

HTML:

<div class="not-flex-row">
  [wpv-view name="your-view-slug"]...the rest of your code...
</div>

CSS:

.not-flex-row .row {
  display: block;
}
#675839

Thanks- where do I wrap it?

On the edit view section??

#675842

I'm not sure, how do you insert this View into the page? Is it a shortcode in a Content Template, or part of a post's content body, or a widget, or something else?

#675874

its a shortcode on a page in a text element

#675989

Wrap the div around the View shortcode, like this:

<div class="not-flex-row">
  [wpv-view name="your-view-slug"]
</div>