Community Forums › Forums › Archived Forums › General Discussion › Customize Minimum pro
- This topic has 13 replies, 3 voices, and was last updated 10 years, 2 months ago by
Jairba.
-
AuthorPosts
-
March 30, 2015 at 10:35 am #146128
Jairba
MemberHello,
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 #146131PatrickODacre
MemberCan'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 #146138Jairba
MemberIt 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 #146141brock
MemberTry 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 #146152Jairba
MemberI brock!
Do you know in which line I have tu add the code??
Thanks
March 30, 2015 at 12:03 pm #146154brock
MemberLook 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 #146159Jairba
MemberI 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 #146160brock
MemberSorry, 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=50How 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 #146173Jairba
MemberYes, 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 #146184brock
MemberSorry 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 #146191Jairba
MemberHi 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 #146222Jairba
MemberHi 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 #146238brock
MemberSo 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 #146241Jairba
MemberPerfect Brock!!!
Thank you very much!!
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.