• Hello.
    I’ve tried to add text on video header on Astrid theme according to tips on this side

    https://forums.athemes.com/t/adding-text-on-video-header/17148/8

    After adding TC Java Script plugin and trying to implement quoted code I’ve not seen any result, and what more Additional CSS in Customize panel stopped working. After all I removed Java plugin, cleaned datebase with Wp Sweep, but problem with adding CSS codes remained.

    Do you have any suggestion how can I try to solve the problem?

    markuc87

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

Viewing 1 replies (of 1 total)
  • Hello there,

    This code works fine to me.

    
    (function($){
    
      "use strict"
    
      if( $('body').hasClass('home') ) {
    
        $('.wp-custom-header').wrapAll('<div class="header-image js-div"></div>');
    
        var title       = 'Welcome to Astrid';
        var subtitle    = '5 minute setup';
        var buttonLabel = 'Explore';
        var buttonURL   = '#primary';
    
        var heroContent  = '<div class="header-info"><div class="container">';
            heroContent += '<h4 class="header-subtext">'+title+'</h4>';
            heroContent += '<h3 class="header-text">'+subtitle+'</h3>';
            heroContent += '<a class="button header-button" href="'+buttonURL+'">'+buttonLabel+'</a>';
            heroContent += '</div></div>';
    
        $('.header-image.js-div').append(heroContent);
    
      }
    
    })(jQuery);
    

    Please note that it’s only displayed in homepage as .home class check defined.

    
    if( $('body').hasClass('home') ) {
    

    Maybe you should clear your web browser’s cache/history?

    Regards,
    Kharis

Viewing 1 replies (of 1 total)

The topic ‘Custom CSS stopped working’ is closed to new replies.