Home › Forums › Support › Site title AND site description when I "Use Navigation as Header" and Mobile on
- This topic has 12 replies, 4 voices, and was last updated 1 year, 9 months ago by
Ying.
-
AuthorPosts
-
January 20, 2020 at 11:43 am #1138299
Olle
Does not seem possible. Why?
I also want to show it with the sticky navigation and the mobile menu.The menu options are really confusing and cumbersome to get to work. Takes a lot of time even for a simple task like this.
Regards
OlleJanuary 20, 2020 at 6:26 pm #1138542Tom
Lead DeveloperLead DeveloperHi there,
We opted to leave the site tagline out of the navigation branding, as there typically isn’t enough space for it.
However, you can add it back in using a filter:
add_filter( 'generate_site_title_output', function( $output ) { $tagline = '<div class="site-description">Your tagline here</div>'; return $output . $tagline; } );
Let me know if that helps or not ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 21, 2020 at 1:53 am #1138742Olle
Hi
This seem to work if I put the code in the main theme functions.phpIf I put the code in the child themes function.php it does not. It screws up the layout and shows the mobile menu on desktop an not the site tagline.among other things
Regards
OlleJanuary 21, 2020 at 4:33 am #1138918Olle
Sorry. It was a misstake in the code I made.
Regards
OlleJanuary 21, 2020 at 8:06 am #1139308Tom
Lead DeveloperLead DeveloperNo problem – all working now?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 23, 2020 at 5:11 am #1373274Marius
Hey Tom,
Any idea how can I position the site description under the site name? The CSS needed is more than I can handle…
Similar to the normal header. Logo on the left, site title and site description to the right of the logo, with description under title.
But when using the navigation as a header everything changes. Adding the site description with the help of the add_filter in functions.php, it adds the text but the text is to the right of the site title.
July 23, 2020 at 5:29 am #1373297David
StaffCustomer SupportHi there,
if you can raise a new topic and share a link to the site where we can see the alignment issue i can help with the CSS.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/July 23, 2020 at 5:49 am #1373324Marius
Hi David,
I went with the normal header after all so no need anymore for the css solution.
But thank you for your quick reply and your availability to help!July 23, 2020 at 6:26 am #1373365David
StaffCustomer SupportNo problems ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 17, 2021 at 10:52 am #1738278William
Aloha!
The snippet above worked great ๐
Any idea how to best target and roll the Tagline under the Site Title?
Seen here: https://durp.manoa.hawaii.edu/
I tried display:block; on the Taglineสปs div … with no luck
Thanks ๐
April 17, 2021 at 5:29 pm #1738443Ying
StaffCustomer SupportHi William,
Give this CSS a try:
.navigation-branding { display: flex; flex-direction: column; }
If you want it to align left, add this as well:
.site-description { margin-right: auto; }
April 17, 2021 at 7:18 pm #1738470William
Thank you Ying! You the best.
๐
April 17, 2021 at 8:10 pm #1738481Ying
StaffCustomer SupportNo problem ๐
-
AuthorPosts
- You must be logged in to reply to this topic.