Skip Navigation

[Resolved] Adding padding round grid text content only

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

Problem:

How have they added padding round the lower text area of each grid item and made just the background of the content white.

Solution:

You setup a HTML div tag to wrap all the lower text area, for example:

https://toolset.com/forums/topic/adding-padding-round-grid-text-content-only/#post-1293347

Relevant Documentation:

This support ticket is created 5 years, 5 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 9 replies, has 2 voices.

Last updated by Pete 5 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1292993
See this grid.png

Hi there,

See this site in your showcase: hidden link

How have they added padding round the lower text area of each grid item and made just the background of the content white.

We can add a class however nothing we do makes this work.

This a test page on our site with a similar grid: hidden link

Thank you in advance.

#1293251

Hello,

Please elaborate the question with more details:
Which one is the the lower text area? How do you setup the lower text area?
Where and how do you want to add the padding round and background of the content white?

And it seems to be a custom CSS problem, I suggest you follow CSS documents to setup your custom CSS codes:
hidden link
hidden link

#1293315
see padding.jpg

Hi,

Well as shown in the image (with red), they have somehow put padding round the whole area and made this background white.

We know about CSS however can't find just 'one' element to do this on our girds here:
hidden link

#1293335
contenedor-info.JPG

Thanks for the details, I have tried the showcase URL you mentioned above, those CSS codes(padding and background color) are defined in your website CSS file:
hidden link

They are applied to CSS class name ".contenedor-info", see screenshot contenedor-info.JPG

You can setup CSS codes to override them, for example:

.contenedor-info {
    padding: 0px !important; 
    background: red !important;
}
#1293347

In your website:
hidden link

I suggest you setup a HTML div tag to wrap all the lower text area, for example:

<div class="my-class"> ... </div>

Then apply your custom CSS codes to above div tag, like this:

.my-class{
    padding: 15px; 
    background: #fff;
}
#1293351

I tried this yesterday. I added a class to the section the 'view' is located in Elementor.
I have added the CSS to our Child Theme.

This did work hence I thought I'd reach out to support.

This the test page: hidden link

#1293361

Please provide a test site with the same problem, fill below private detail box with login details, I can setup a demo for you, thanks

#1293431

Hi Luo,

I saw your second message after I sent my reply. Yep got it 🙂

I didn't release you could add HTML div tags round text areas within Toolset, done that and got the result, many thanks.

Lastly, is there a way of making the featured image, link to its post? This I guess would start of looking like the below?

<div class="feat-image-link">
[wpv-post-featured-image size="large"]
</div>

#1293443

Yes, it is possible, you can setup the HTML link like this:

<div class="feat-image-link">
<a href="[wpv-post-url]">[wpv-post-featured-image size="large"]</a>
</div>

More help:
hidden link
Outputs the URL to the current post.

#1293449

Thank you Luo,

This all worked great. Appreciate your help and patience with this 🙂

Regards, Pete