#tribe-events #legend li.teccc-reset, .tribe-events #legend li.teccc-reset {background-color:red;color:white !important;line-height:.5rem;}
function custom_js_for_title_button() {
?>
<script type=”text/javascript”>
jQuery(document).ready(function(){
jQuery(‘#wplc-chat-button’).attr(‘title’,’Go to Chat with Casur’);
});
</script>
<?php
}
add_action( ‘wp_footer’, ‘custom_js_for_title_button’, 5000 );
I tried adding a script to wp_hook thinking that the chat was added a little later, but it doesn’t seem to work either, I guess the chat is added after absolutely all the scripts are executed.
I don’t know what to do, I need to achieve it but it doesn’t seem to be possible.
]]>I have a table of 10 students name (as column) and 5 book (as row). each student have a number for each book (assume that is his grade from that book).
I create a bar chart based on this table. Now there is a legend under the chart that assign a color to any student. I want this legend convert to label under each column (Name of each student, put under his column instead of in the legend).
Is there a way to show only certain categories or sub-categories based on the page template?
Basically I have events that are seminars, courses, and networking.
Courses might have multiple sub-categories.
If I wanted to show a mini calendar on the Courses page that only shows the courses with a legend of the sub-categories of the courses, is there a way to do that?
]]>I want to edit the “no products found” message on a specific tag page only for guests, in this case ‘pulseras’. i.e. if the guest types a wrong reference on the search bar at the shop page, the default “no products found” mesage should show up.
I found that the hook below is actually working as expected BUT rather than the tag page, it works in the shop page:
shop page
// Customise the message when no products found.
add_action('wp_head', 'change_no_products_found_text');
function change_no_products_found_text() {
if (is_product_tag && !is_user_logged_in()) {
// Remove the original code that uses the no-products-found.php template.
remove_action('woocommerce_no_products_found', 'wc_no_products_found');
// and add in my own code.
add_action('woocommerce_no_products_found', 'no_products_found_new');
}
}
function no_products_found_new() {
?>
<div class="row products-loop products-grid with-ajax row-count-4" data-row-count="4">
<h2><?php esc_html_e('No hemos encontrado productos', 'xstore-child'); ?></h2>
<p><?php esc_html_e('Algunos productos son exclusivos para nuestros clientes', 'xstore-child'); ?></p>
<p><a class="btn black medium" href="https://jaibor.com/registrarse/">
<span><?php esc_html_e('Solicita acceso para ver más', 'xstore-child'); ?></span>
</a>
</p>
<?php echo do_shortcode('[products limit="4" tag="pulseras" orderby="date" ]'); ?>
</div>
<?php
}
I hope it makes sense.
Thank you in advance
Jacobo
Thank you for the plugin, really helpful. I am trying to confirm how it works in the following scenario.
We have parent and child categories/sub-categories. I would like to only display the parent categories in the legend, which I’ve done by hiding the sub-categories. Both parent and child categories have been given the exact same color scheme. In our month view calendar, the legend displays as desired, but it seems only the parent categories are colorized in the calendar, the sub-category items are not.
I am curious, when you select “hide” on a category, does it not only hide it from the legend but also hides the color from the calendar as well? Would be possible to enhance the hide function so that it can hide in legend only or hide in legend and on calendar?
Kind regards,
-Scott