• 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

Widget Title below widget ?

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 › Design Tips and Tricks › Widget Title below widget ?

This topic is: resolved

Tagged: shortcode, widget

  • This topic has 3 replies, 2 voices, and was last updated 8 years, 8 months ago by Toon61.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 16, 2016 at 11:37 am #194851
    Toon61
    Member

    Hi all,

    I'm using the Digital-Pro theme.
    When adding a custom shortcode (defined in functions.php) to one of the frontpage widgets, the title of the generic text widget (in which I add the shortcode in the content field) appears below the widget itself.
    Why?
    And how can I correct this: The title should appear above the 'content' field (where my shortcode resides).

    October 16, 2016 at 12:51 pm #194855
    carasmo
    Participant

    I will guess that your shortcode is echoing the content instead of returning the content. All the examples use return https://codex.wordpress.org/Function_Reference/add_shortcode because echo


    Genesis Theme Customization and Help

    October 17, 2016 at 1:12 am #194871
    Toon61
    Member

    Carasmo,

    I think that could be the issue.
    I will look into it.

    Thanks for your reply.

    October 17, 2016 at 3:47 am #194873
    Toon61
    Member

    Carasmo,

    You were right!
    Thanks for the tip.
    It's working now as expected.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Widget Title below widget ?’ is closed to new 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