• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Academy Pro Top Banner

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Academy Pro Top Banner

This topic is: not resolved

Tagged: academy pro, top banner

  • This topic has 2 replies, 2 voices, and was last updated 4 years, 8 months ago by malton.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 28, 2018 at 4:08 pm #220313
    malton
    Member

    How do I make the Academy Pro theme "dismissible banner" not dismissable? I need to to remain up all the time.

    I have found the javascript for it (top-banner.js) but I'm not sure how to edit it to make the dismiss button disappear, and then there is no point for the cookie.

    Suggestions?

    Thank you

    May 28, 2018 at 4:23 pm #220314
    Brad Dalton
    Participant

    Link to your site please.

    You can find this PHP code in your functions file and modify it to remove the link:

    add_action( 'genesis_before', 'academy_do_top_banner' );
    
    function academy_do_top_banner() {
    
    	if ( get_theme_mod( 'academy-top-banner-visibility', true ) ) {
    
    		$button = sprintf( '<button id="academy-top-banner-close"><span class="sp-icon-x"></span><span class="screen-reader-text">%s</span></button>', __( 'Close Top Banner', 'academy-pro' ) );
    		printf(
    			'<div class="academy-top-banner">%s%s</div>',
    			get_theme_mod( 'academy-top-banner-text', academy_get_default_top_banner_text() ),
    			$button
    		);
    
    	}
    
    }
    

    I suggest you setup a live or local ( Flywheel is good ) test site to do this.

    You can also modify the jQuery however the close link will remain unless you remove it.


    Get Help – Book Consultation.

    May 28, 2018 at 5:05 pm #220315
    malton
    Member

    Thank you Brad, the site under development and password protected, thus complicated to send a link. But I will DM if you need it.

    I'll try out your suggestion, it looks good thank you!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble