Use taxonomy as css class in View Loop
Started by: rubenM-3
in: Toolset Professional Support
Quick solution available
2
5
3 years, 6 months ago
rubenM-3
Hide/ remove ‘dynamic sources’ for core blocks in the block settings
Started by: Paul Marconi
in: Toolset Professional Support
Quick solution available
Problem:
How to hide the Dynamic Sources button in the sidebar and inside the block editor?
Solution:
Add the code below to function.php file of your theme to hide the dynamic sources button inside the editor via CSS:
add_action('admin_head', 'chr_admin_css');
function chr_admin_css() {
echo '<style>
.components-toolbar .toolset-inline-field-button {
display: none !important;
}
</style>';
}
You can hide the sidebar option from the normal Gutenberg options (The three dot menu at the top right)
3
5
3 years, 6 months ago
Paul Marconi
display a phone in a directory website
Started by: marcM-3
in: Toolset Professional Support
Quick solution available
Problem:
How to add dynamic phone number form the phone custom field type to an Elementor button?
Solution:
Elementor button does not allow the Phone custom field type. But you can follow the steps below:
- Add a button in Elementor with static content.
- Copy the HTML code that is generated in the front end for that button.
- Add an HTML widget in Elementor and paste HTML code and use the shortcode below to retrieve the dynamic content and replace it with the static content:
[types field="cellphone"]
Replace "cellphone" with the slug of your field.
A sample final HTML code:
<div class="elementor-button-wrapper elementor-align-center">
<a href="tel:[types field='telefono']"
class="elementor-button-link elementor-button elementor-size-lg elementor-animation-grow" role="button">
<span class="elementor-button-content-wrapper">
<span class="elementor-button-icon elementor-align-icon-left">
<i aria-hidden="true" class="fas fa-phone-alt"> </i></span>
<span class="elementor-button-text">Llamar</span>
</span>
</a>
</div>
2
5
3 years, 6 months ago
marcM-3