• 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

Place a line break in site title in gallery 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 › Place a line break in site title in gallery pro

This topic is: not resolved

Tagged: Gallery Pro, site tilte line break

  • This topic has 1 reply, 2 voices, and was last updated 8 years, 5 months ago by Christoph.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • November 22, 2017 at 4:08 am #213862
    staceychurch
    Participant

    I have added a text title under Appearance>Customise>Site Identity
    I want to add a line break to this title so some words appear below the first few words.
    If I add the html code it displays this html code.
    I probably need to amend the functions.php but unsure of the code, can anyone help please.

    http://christinegriffin.co.uk
    March 9, 2018 at 12:17 pm #217603
    Christoph
    Member

    Hi,

    Sorry, that your post didn't receive a response sooner.
    The posts on this forum are mostly answered by volunteers and sometimes questions get pushed out-of-view.

    I hope you found a solution for your issue.

    This should output HTML that you add to the Site Title:

    add_filter( 'genesis_seo_title', 'ch_allow_html_in_the_site_title', 10, 3 );
    /**
     * Allow HTML in the Site Title Output.
     *
     * @param string $title HTML output for the site title.
     * @param string $inside HTML markup of the site title.
     * @param string $wrap HTML class for the site title.
     * @return string Changed site title output.
     */
    function ch_allow_html_in_the_site_title( $title, $inside, $wrap ) {
    	$inside = sprintf( '<a href="/" title="%s">%s</a><span>Custom Catering</span>', esc_attr( get_bloginfo( 'name' ) ), html_entity_decode( get_bloginfo( 'name' ) ) );
    	$title  = sprintf( '<%s class="site-title">%s</%s>', $wrap, $inside, $wrap );
    	return $title;
    }

    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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

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