Remove CSS Class from Frontpage 1 Widget

Homepage Community Forums Aspire Theme Support Remove CSS Class from Frontpage 1 Widget

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22046
    webauthor
    Customer

      Wes could you tell me how to remove the CSS class called “fadeup-effect” from the Frontpage 1 widget?

      I’m using a plugin called WP Rocket and deferring CSS and JS. When I do that, the Frontpage 1 widget doesn’t load until you start to scroll down. I was told this:

      “There is fade effect created with CSS which works when visitor scrolls. There’s a CSS class “fadeup-effect” and if you remove this class the heading and button shows up. You just need to remove that CSS class from this widget and this issue will be fixed.”

      Thanks

      #22049
      Wes
      Moderator

        You can remove the fadeup-effect class from the front-page.php file. The widget should look like this –

        	genesis_widget_area( 'front-page-1', array(
        		'before' => '<div id="front-page-1" class="front-page-1"><div class="fp1 image-section"><div class="flexible-widgets widget-area fadeup-effect"><div class="wrap">',
        		'after'  => '</div></div></div></div>',
        	) );

        Here’s the part to remove – fadeup-effect

        Let me know if that helps.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.