Forum Replies Created
-
in reply to: How to add custom class to a button?
Thanks, works perfectly!
in reply to: How to add custom class to a button?This reply has been marked as private.in reply to: How to add custom class to a button?I managed to move the custom class form the div to the a. But the problem is that the class autogenerates on each refresh. I cannot use it for tracking.
Can we make it to generate a custom class and keep it like this?
in reply to: How to add custom class to a button?Can I add my custom classes?
For example, I have the same download button that appears on 4 different pages. I have to create 4 different google analytics events for this button as it always has different custom class to it.
I want to add the same class to different buttons on different pages. Is this possible?
Thanks!
in reply to: How to add custom class to a button?I see I have to update this block of code:
<div class="cl-btn-div cl-element <?php echo esc_attr( $button_id ).' '.esc_attr( $this->generateClasses('.cl-btn-div') ) ?>" <?php $this->generateStyle('.cl-btn-div', '', true) ?>> <a href="<?php echo esc_url( $link ) ?>" target="<?php echo esc_attr( $link_target ) ?>" class="<?php echo esc_attr( $this->generateClasses('.cl-btn') ); ?> <?php echo esc_attr( $extra_classes ); ?>" <?php $this->generateStyle('.cl-btn', '', true) ?> > <span><?php echo cl_remove_empty_p( cl_remove_wpautop($btn_title, true) ) ?></span></a> </div>Send me the updated code please.
in reply to: How to add custom class to a button?Hi there,
Explain to me what exactly I have to do, please.
I want exactly that to move the extra CSS class to the A element, not the div.
Thanks!
SKin reply to: I don't see preview in Codeless BuilderThis reply has been marked as private.