brunods
Forum Replies Created
-
Forum: Plugins
In reply to: [Essential Real Estate] last update issuesHi, same here.
It seems that the eventlisteners were lost or I don’t know how they were managed.
For now you can paste this into the console as a temporary solution, but you must do it every time you reload the page.
For the “+ Add more” button:
document.querySelector('.button-secondary').addEventListener('click', function() {
const tbody = this.closest('div.gsf-field').querySelector('tbody');
const index = tbody.querySelectorAll('tr').length;
const newRow =<br> <tr><br> <td class="sort"><span><i class="dashicons dashicons-menu"></i></span></td><br> <td class="title"><input type="text" name="real_estate_additional_feature_title[${index}]" value=""></td><br> <td class="value"><input type="text" name="real_estate_additional_feature_value[${index}]" value=""></td><br> <td class="remove"><i class="dashicons dashicons-dismiss"></i></td><br> </tr><br>
;
tbody.insertAdjacentHTML('beforeend', newRow);
});For the “X” (delete) button:
document.addEventListener('click', function(e) {
if (e.target.classList.contains('dashicons-dismiss')) {
const row = e.target.closest('tr');
const tbody = row.closest('tbody');
const rows = tbody.querySelectorAll('tr');
if (rows.length > 1) {
// Remove the row if there are more than 1 rows
row.remove();
} else {
// Clear the inputs if it's the only row
row.querySelector('.title input').value = '';
row.querySelector('.value input').value = '';
}
}
});Forum: Plugins
In reply to: [Essential Real Estate] ERE Shortcodes GeneratorIt’s working correctly now, thanks!
Forum: Plugins
In reply to: [Essential Real Estate] Single Property Page not loading properlyEn mi caso era a causa de incopatibilidad con el tema Divi.
Solucionado agregando este CSS:
.tab-pane {
opacity: 1 !important;
}Y con este codigo:
jQuery(document).ready(function($) {
// Asegurarse de desactivar cualquier comportamiento por defecto de Divi o el plugin
$('.nav-link').off('click');
// Asignar el evento click para las pesta?as
$('.nav-link').on('click', function(e) {
e.preventDefault(); // Evitar el comportamiento predeterminado de navegación o scroll
// Obtener el ID del contenido asociado a la pesta?a clicada
var targetTab = $(this).attr('href'); // Esto obtiene el id de la sección que debe mostrarse (ej. #features)
// Desactivar todas las pesta?as y ocultar todo el contenido
$('.nav-link').removeClass('active');
$('.tab-pane').removeClass('active').hide();
// Activar la pesta?a clicada y mostrar su contenido correspondiente
$(this).addClass('active');
$(targetTab).show().addClass('active');
});
// Mostrar la pesta?a activa al cargar la página
$('.tab-pane.active').show();
});Que lo pueden pegar en Divi > Opciones de tema > Integración >
“Agregar código al<head>
de su blog”: Esto ejecuta el código en todas las páginas y es útil para incluir scripts de manera global.
“Agregar código al<body>
de su blog”: Aquí se ejecutará el código en el cuerpo, después de que se cargue el DOM. Puedes probar aquí para evitar conflictos.<script type="text/javascript">
jQuery(document).ready(function($) {
// Asegurarse de desactivar cualquier comportamiento por defecto de Divi o el plugin
$('.nav-link').off('click');
// Asignar el evento click para las pesta?as
$('.nav-link').on('click', function(e) {
e.preventDefault(); // Evitar el comportamiento predeterminado de navegación o scroll
// Obtener el ID del contenido asociado a la pesta?a clicada
var targetTab = $(this).attr('href'); // Esto obtiene el id de la sección que debe mostrarse (ej. #features)
// Desactivar todas las pesta?as y ocultar todo el contenido
$('.nav-link').removeClass('active');
$('.tab-pane').removeClass('active').hide();
// Activar la pesta?a clicada y mostrar su contenido correspondiente
$(this).addClass('active');
$(targetTab).show().addClass('active');
});
// Mostrar la pesta?a activa al cargar la página
$('.tab-pane.active').show();
});
</script>O usar el archivo
functions.php
del tema hijo:function custom_property_tabs_script() {
if (is_singular('property')) {
?>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('.nav-link').off('click');
$('.nav-link').on('click', function(e) {
e.preventDefault();
var targetTab = $(this).attr('href');
$('.nav-link').removeClass('active');
$('.tab-pane').removeClass('active').hide();
$(this).addClass('active');
$(targetTab).show().addClass('active');
});
$('.tab-pane.active').show();
});
</script>
<?php
}
}
add_action('wp_footer', 'custom_property_tabs_script');La segunda opción sería más eficiente si quieres aplicarlo solo en páginas específicas (como
/property/
).Forum: Plugins
In reply to: [Essential Real Estate] Single Property Page not loading properlyI’m also having trouble displaying the features on the individual property pages.
Clicking the “Features” button href=”#features” just sends you to the top of the page and nothing else happens.
None of the selected features are displayed.Forum: Plugins
In reply to: [OneClick Chat to Order] Remove address from messageI got it by modifying the following file:
oneclick-whatsapp-order\includes\buttons\wa-order-cart-page.phpWhere should I put the modified file in my child theme so as not to lose it with updates?
Forum: Plugins
In reply to: [OneClick Chat to Order] Remove address from messageTo be more exact, I want to remove the country, province and postal code from the message (because I only ship within a city and fill in the nonsense message) and add the personal address that I have added as a custom field in the cart shipping calculator.
Thanks for that information!
Whenever possible, it is nice to be able to contribute something to the WordPress community that offers us so much!I used this file .pot~ renamed to wpt_pro.pot to generate the translation with Poedit, it works correctly.
Thank you very much for your reply.
Excellent plugin! Thanks!
And Yui, I have tried translating in GlotPress but the translation process is somewhat cumbersome and it takes endless to get to 90% of the Stable. Ty!
Forum: Plugins
In reply to: [WooCommerce] Import questionsI cannot edit my last post, I wanted to add that I am using these attributes to filter by % discount. So when the discount runs out I need to remove them in bulk.
Forum: Plugins
In reply to: [WooCommerce] Import questionsHi @luminus!
I was able to remove attributes by changing the attributes I wanted to remove to an x value, for example Delete – del.
In .csv it looked:
Attribute 1 name = delete
Attribute 1 value(s) = del
Attribute 1 default = deland then delete the “Delete” attribute in WordPress panel.
Also discount the sale % in excel before exporting in .csv
Thanks for answering!
I don’t know if you have already solved it, but it seems that this answers your question.
404 error – superpwa-sw.jsForum: Networking WordPress
In reply to: Synchronize stores in two different domainsYes, it really helps to know where to go!
I will consult the authors of the eCommerce plugin and when I have progress I will update this query.
Thank you very much!
Thak you for support!
Thanks for reply.
CSS code? Because I have a CSS code for each screen size but I don’t know how to make it appear minimized. Where I can find the code?
Regards,
BrunoI don’t know why but when I installed Max Mega Menu plugin start working.
If anyone has any idea what the problem may be, I would really like to have only one plugin for that function and not 2. Thank you.