• 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

Customize Minimum pro

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 › General Discussion › Customize Minimum pro

This topic is: resolved
  • This topic has 13 replies, 3 voices, and was last updated 10 years, 2 months ago by Jairba.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • March 30, 2015 at 10:35 am #146128
    Jairba
    Member

    Hello,

    I would like to remove that grey stripe with the site tagline, but only in a pair of pages.

    The theme is minimum pro and I am working in my website:

    http://jairbarragan.es.mialias.net/

    Thanks

    http://jairbarragan.es.mialias.net/
    March 30, 2015 at 10:59 am #146131
    PatrickODacre
    Member

    Can't view the site, I'm afraid =\

    In the post editor, Genesis allows you to add a custom body class. You can create a class that hides that portion of the css that outputs the grey stripe you don't want.

    Step 1: Open the page from which you want to remove the tagline. > Scroll down to Layout Settings and put the name of the class you want to use in the Custom Body Class field (ie: remove-tagline) > Save the page.
    Step 2: Edit your style.css file:

    .remove-tagline .site-tagline {
    display:none;
    }

    Just make sure you add it where it will affect all screen widths (ie: not in a media query)

    SAVE the stylesheet.

    This is untested. Let us know if it worked.

    March 30, 2015 at 11:10 am #146138
    Jairba
    Member

    It is possible to create a new template page without this site-tagline??

    I put de code but it doesn't work... I am not sure if I put it in the correct place, I used CODA 2 and put at the end of all code...

    Thanks

    March 30, 2015 at 11:17 am #146141
    brock
    Member

    Try adding this if statement inside the 'minimum_site_tagline' function in your functions.php file:

    
    //* Add the site tagline section
    add_action( 'genesis_after_header', 'minimum_site_tagline' );
    function minimum_site_tagline() {
     
            if ( !is_page('whateverpage') )
    	printf( '<div %s>', genesis_attr( 'site-tagline' ) );
    	genesis_structural_wrap( 'site-tagline' );
    
    		printf( '<div %s>', genesis_attr( 'site-tagline-left' ) );
    		printf( '<p %s>%s</p>', genesis_attr( 'site-description' ), esc_html( get_bloginfo( 'description' ) ) );
    		echo '</div>';
    	
    		printf( '<div %s>', genesis_attr( 'site-tagline-right' ) );
    		genesis_widget_area( 'site-tagline-right' );
    		echo '</div>';
    
    	genesis_structural_wrap( 'site-tagline', 'close' );
    	echo '</div>';
    }
    
    March 30, 2015 at 11:58 am #146152
    Jairba
    Member

    I brock!

    Do you know in which line I have tu add the code??

    Thanks

    March 30, 2015 at 12:03 pm #146154
    brock
    Member

    Look in your functions.php file for the code that exactly matches what I have posted. There is only a small difference in what I have posted - one line. Just copy and paste what I have posted in place of what is already there.

    But wait! One more thing. Look where I have written 'whateverpage' in the if condition. You need to change that to the name or id of the page that you don't want to gray strip to show up on.

    Since you have two pages it will look like this

    
    if ( !is_page('whateverpage' or 'anotherpage')
    
    March 30, 2015 at 12:17 pm #146159
    Jairba
    Member

    I am very sorry brock,

    I have found the difference line you add and I put them in php code, but I don't understand where I have to change the id page for whateverpage...

    March 30, 2015 at 12:18 pm #146160
    brock
    Member

    Sorry, correction. It should be this way:

    
    if ( !is_page( array( 'whateverpage', 'anotherpage' ) ) )
    

    The ID is in the URL of the WordPress post or page. Depending on how you have your permalinks set up to look in WordPress. It is that last number. For example:

    http://localhost/My_site/wordpress/?page_id=2
    http://localhost/My_site/wordpress/?page_id=50

    How do you have your permalinks set up in settings > permalinks?

    In this case I have two pages, one with an id of 2 and the other 50. So, in this case my if statement will look like this:

    
    if ( ! is_page(  array( 2, 50 )  ) )
    
    March 30, 2015 at 12:43 pm #146173
    Jairba
    Member

    Yes, now I Know what you would to say but when I done disappear all content of all pages. Only is Menu and logo at the top of each page.

    March 30, 2015 at 2:09 pm #146184
    brock
    Member

    Sorry Jairba, I don't quite understand your last message. The tiniest detail missing can sabatoge the whole code, so double check that everything is exactly as I have laid out. It would be helpful if I knew what kind of permalink structure you are using.

    Could you give me this information as well as the name or id of the pages you want to exclude the site tagline on? This way I could just write out the code for you and you could copy and paste it in your functions.php file to be sure everything is correct.

    I have tested this out on my own localhost version of Minimum pro and it works.

    March 30, 2015 at 2:32 pm #146191
    Jairba
    Member

    Hi Brock,

    Is possible to add images directly ? My website is under construction in a private platform and I can't url the images

    March 31, 2015 at 12:38 am #146222
    Jairba
    Member

    Hi Brock,

    I put the images in my dropbox

    https://www.dropbox.com/sh/2ga91vp4drjn093/AAAtfbF069WWhVZCsBb4ol7va?dl=0

    Thanks!

    March 31, 2015 at 4:29 am #146238
    brock
    Member

    So here are you errors:

    if ( !is_49( array( 'whateverpage', 'anotherpage' ) ) )

    Since your page id is 49, it should be this.

    
    if ( !is_page( 49 ) )
    

    Lets say you don't want it to show up on another page as well. Let's say this page's id is 50.

    
    if ( !is_page( array( 49, 50 ) ) )
    
    March 31, 2015 at 4:37 am #146241
    Jairba
    Member

    Perfect Brock!!!

    Thank you very much!!

  • Author
    Posts
Viewing 14 posts - 1 through 14 (of 14 total)
  • The forum ‘General Discussion’ 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

© 2025 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