|
|
How to manage nested quotes when adding shortcodes in alt text attribute
Started by: dominiqueM-3
in: Toolset Professional Support
Quick solution available
|
|
2 |
8 |
3 years, 11 months ago
dominiqueM-3
|
|
|
Blank number field is outputting a 0
Started by: nateW
in: Toolset Professional Support
Quick solution available
Problem:
The code to add commas to the numbers to separate the thousands shows 0 when the result of the custom field is empty.
Solution:
Change the code to this:
add_shortcode( 'ts_format_number', 'ts_format_number_func');
function ts_format_number_func( $atts, $content ) {
$int = (int) do_shortcode($content);
if ($int == null) {
return "";
} else {
return number_format($int, 0);
}
}
|
|
2 |
3 |
3 years, 11 months ago
nateW
|
|
|
Grid elements equal height
Started by: jillT
in: Toolset Professional Support
Quick solution available
Problem:
How to make the Grid element the same height.
Solution:
Customer had border inside the inner wrapper and that is why the way to make the items same height was to add the CSS code below:
.tb-grid .tb-grid-column,
.tb-grid .tb-grid-column .wpv-block-loop-item,
.wp-block-toolset-blocks-grid{
height: 100%;
}
|
|
2 |
3 |
3 years, 11 months ago
jillT
|