Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

  • Profile
  • Topics Started
  • Replies Created
  • Favorites

Forum Replies Created

  • 5 years, 11 months ago simeonkartov
    Participant
    in reply to: How to add custom class to a button?

    Thanks, works perfectly!

    5 years, 11 months ago simeonkartov
    Participant
    in reply to: How to add custom class to a button?
    This reply has been marked as private.
    5 years, 11 months ago simeonkartov
    Participant
    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?

    5 years, 11 months ago simeonkartov
    Participant
    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!

    5 years, 11 months ago simeonkartov
    Participant
    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.

    5 years, 11 months ago simeonkartov
    Participant
    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!
    SK

    6 years ago simeonkartov
    Participant
    in reply to: I don't see preview in Codeless Builder
    This reply has been marked as private.
Viewing 7 posts - 1 through 7 (of 7 total)

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password