Skip Navigation

[Resolved] Conditional view

This support ticket is created 6 years, 9 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 15 replies, has 3 voices.

Last updated by bouchairY 6 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#628894

Hello Minesh

Can you help me to add the code, I dont' know what happened, i don't found the code you added to my website !
Thank you in advance and sorry

#628914
circuit2703.jpg

Hello
I have added code provided and it is hidding and showing items as it must but adding the css below dont remove empty offer item
(please see atatched image)

.projects_holder article .portfolio_description {
    padding: 16px 12px 18px !important;
    margin: 0 2px 0 0;
        margin-bottom: 0px;
    background-color: #fff;
    text-align: center;
    min-height: 90px !important;
    margin-bottom: 12px !important;
}

Thank you

#628922

Hello
Test here :
hidden link

Thank you

#629059

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - what condition not working for you?

Could you please share problem URL and access.

#629103

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - I've corrected the view output.

#629106

Hello
How have you corrected because i have 3 others views, i want to apply them correction
Thank you

#629117

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Remove the div (start and end) from your view output section:

<div class="row no-gutter"> 
......
</div>
#629149

Hello
I try to apply the same code for :

hidden link
hidden link

But not working, what I'm doin wrong ?

Thank you

#629197

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've added following CSS code to your view's loop output editor's CSS box:

.projects_holder .col-sm-4 {
	min-height: 450px;
}

With Bootstrap the columns needs to have the same height otherwise it will create this empty space.

#629218

Hello
And for this one :

hidden link

The last item is not displayed :
hidden link

Thank you

#629258

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - I see it's using infinite scrolling and I see each time I scroll and pagination displays correct results.

More important thing is all issue which you reported is CSS customization issues that you need to take control on as CSS is not added by Toolset. You must know how to customize your loop output using CSS.

#629264

Hello
Another problem is that margin between items are big than original
please see original margin here :
hidden link

How can I reduce this margin ?

When you see in mobile view the images are very small comaparing to the original ones

Thank you

#629272

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Again I've adjusted the CSS as given under:

.projects_holder .col-sm-4 {
	min-height: 450px;
    padding-left:1px !important;
    padding-right:1px !important;
  
}
#629368
WITH_GUTTER.jpg
WITHOUT_GUTTER.jpg

Hello
After you have removed :

<div class="row no-gutter"> 
......
</div>

There are many problems

Examples on :
hidden link
hidden link

The code below not working

.projects_holder .col-sm-4 {
    padding-left:1px !important;
    padding-right:1px !important;
}

Also on mobile, the layout is not correct !

Thank you

#629498

Hello,

Minesh isn't available currently, you will get the answers soon when he is back.