By default site tagline will appear in .site-tagline-left div below the site title on inner pages in Genesis child theme, Minimum Pro. If you would like to show the Page or Post title here instead of site tagline for static Pages and single Posts with the tagline appearing everywhere else, follow along.
Screenshot of a Page:
Screenshot of a Post:
In functions.php change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
printf( '<div %s>', genesis_attr( 'site-tagline-left' ) ); | |
printf( '<p %s>%s</p>', genesis_attr( 'site-description' ), esc_html( get_bloginfo( 'description' ) ) ); | |
echo '</div>'; |
to
To view the full content, please sign up for the membership.
Already a member? Log in below or here.
This is an interesting effect for Minimum Pro.
When I tried this I find that the div containing the post/page title shrinks to 110px () versus the size on the home page (130px) or when on a blog post page under the original, unchanged setup (also 130px). I figured that this was due to the H1 title size of the blog title versus the site tagline text size, but am not sure where to adjust for the difference. From measuring your screenshots of the modified post/page tagline areas it looks like you’ve run into the same result. Any recommendations on fixes?
Also, I’m wondering what you did to stop or hide the duplicate output of the post/page title from the Entry Header only on a post or page, but not affect an archive or home page, etc.
Always interesting to see what you devise for Genesis themes.
Hello , Is there any way to fix the duplicate output of the post/page title ?
Your advise appreciates very much.
Thanks
Add this in functions.php: https://gist.githubusercontent.com/srikat/10615790/raw/c3bccfdc63ce431f535086d5f6692f588d218e2a/gistfile2.php
This is close to what I want, but I am wondering how to setup a custom field in the site tagline left area for different pages. Much the same as you posted about the right tagline area, but I don’t think I can do exactly the same thing in changing the code.Thanks
http://www.sridharkatakam.com/how-to-replace-site-tagline-on-pages-in-minimum-pro-with-custom-text-using-advanced-custom-fields/
[…] Brett asked, […]
How do you get this to work on the Portfolio page — because it’s not a PAGE but a page template, this doesn’t work on the portfolio page.
http://pastebin.com/raw.php?i=e47ehrk5
I made the change in your site.
How would I exclude this for the front page and keep active for all other pages?
I have updated the tutorial with slight code changes. Use the updated code.
Also looks like gistfile2.php is not showing the most up-to-date version from github. Use this code for it: https://gist.githubusercontent.com/srikat/18203247826199032c47/raw/ad2bc52dcae510131ca4a909bdf3f20264c18de7/gistfile2.php
Thanks!