Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #685448

    I want to add this:
    data-sumome-listbuilder-id=”8bdd1b1c-76d0-461a-8f75-27bd490a01c9″

    when someone clicks on my caption link/image

    • This topic was modified 8 years, 2 months ago by M|C.
    #686054

    Hello!

    #686720

    Hi!

    Could you post a link to the site in question so that we can take a closer look please?

    Best regards,
    Rikard

    #687814

    Link in private content.

    #689195

    Hi,

    Please enable the custom css class field: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and then edit your element and give it a custom class and then add following code to functions.php file in Appearance > Editor

    function avia_img_custom_attr(){
    ?>
     <script>
    jQuery(window).load(function(){
    jQuery('.custom-image img').attr('data-sumome-listbuilder-id','bdd1b1c-76d0-461a-8f75-27bd490a01c9');
    });
     </script>
    <?php
    }
    add_action('wp_footer', 'avia_img_custom_attr');

    Best regards,
    Yigit

    #700004

    @Yigit I tried, but it doesn’t work.

    #700014

    Hi,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.
    • permission to deactivate plugins if necessary.

    Also, please point out the image you would like to target.

    Best regards,
    Yigit

    #700017

    Sent!

    #700024

    Hi,

    I am getting “ERROR: Invalid username. Lost your password?” error when i try to login. Can you please check the logins once again?

    Best regards,
    Yigit

    #700025

    Ok, try again!

    #700027

    Hi!

    It does work fine on my end. Please check out the screenshot in private content field.

    Regards,
    Yigit

    #700131

    @yigit When I click the caption overlay/background image it doesn’t pop up anything. It only works when I click the text URL I placed manually.If I click around the text, the caption overlay that is, it doesn’t work.

    #700342
    #701022

    Hi,

    We modified the code a bit. Please remove browser or hard refresh before checking the page.

    Best regards,
    Ismael

    #701310

    @Ismael

    Thank you so much! How about the CTA button?

    #701809

    @ismael It stopped working. Clicking on the caption background doesn’t work. But clicking the text, I wrapped around span did.

    What is the modified code you used?

    #702685

    Hi,

    This is working before. Did you change anything? What did you do in your functions.php file? Why are there multiple empty lines after each line of code?

    Best regards,
    Ismael

    #703466

    @ismael It was a plugin causing it not to work. It’s all good now.

    Thank you so much! How about the CTA button on the homepage?

    #704561

    @ismael @Yigit how about the cta button?

    • This reply was modified 8 years ago by M|C.
    #704584

    Hi!

    Can you please elaborate on the changes you would like to make on the cta button? If you would like to target it, you can do so by using following selector

    .home #signup a

    Cheers!
    Yigit

    #705694

    @ismael @yigit Yes, I’m trying to target the CTA on the homepage. do you know the full code block for that?

    I would like to add the same atrr data-sumome-listbuilder-id’,’bdd1b1c-76d0-461a-8f75-27bd490a01c9 to the CTA.

    So when i click on it, triggers the pop up from the attr.

    #707115

    Hi,

    Please add following code to functions.php file as well

    function cta_button_home(){
    ?>
     <script>
    jQuery(window).load(function(){
    jQuery('#whitetogray a.avia-button').attr('data-sumome-listbuilder-id','bdd1b1c-76d0-461a-8f75-27bd490a01c9');
    });
     </script>
    <?php
    }
    add_action('wp_footer', 'cta_button_home');

    Best regards,
    Yigit

    • This reply was modified 8 years ago by Yigit.
Viewing 22 posts - 1 through 22 (of 22 total)
  • You must be logged in to reply to this topic.