• I am having trouble updating the existing code so that the first button SEE OUR WORK goes to the OUR WORK section. I thought I labeled the section #ourwork correctly. TIA.

    (function($){
          
        "use strict"
    
      if( $('body').hasClass('home') ) {
        
        var mainTitle    = 'IMPROVE RESULTS';
        var subTitle     = 'capture attention</br>energize messages</br>build your brand'
        var buttonURL    = '#ourwork';
        var buttonLabel  = 'See Our Work';
        
        var heroContent  = '<div class="slide-inner">';
            heroContent += '<div class="contain text-slider">';
        	heroContent += '<h2 class="maintitle">'+mainTitle+'</h2>';
            heroContent += '<p class="subtitle">'+subTitle+'</p>';
           	heroContent += '</div>';
            heroContent += '<a href="'+buttonURL+'" target="_top" rel="noopener noreferrer">'+buttonLabel+'</a>';
            heroContent += '</div>';
    
        $('.sydney-hero-area').append(heroContent);

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Looking at your site, you are an Elementor Pro user. The author can’t have a conversation with customers here. That’s not permitted for anyone.

    For pro or commercial product support please contact the author directly on their site. This includes any pre-sales topics as well.

    As the author is aware, commercial products are not supported in these forums. I am sure they will have no problem supporting you there.

Viewing 1 replies (of 1 total)
  • The topic ‘JS button code’ is closed to new replies.