• 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

Can we add a short code somewhere that is not a post, page or text 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 › Can we add a short code somewhere that is not a post, page or text widget?

This topic is: not resolved

Tagged: do_shortcode, text widget

  • This topic has 5 replies, 3 voices, and was last updated 6 years, 2 months ago by Mobiusynergy.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • January 8, 2017 at 4:23 pm #199019
    Mobiusynergy
    Member

    I installed a third party plugin called "genesis coming soon". On CannabisTriangle.com. The plugin was then put to use so we could build the website on the back end. However, when we added the text with the short code, we saw the shortcode when the page loaded for the general public.

    We aren't sure what this plugin creates, but it doesn't appear to be a page, post, or have a text widget (which we can't add because there is not "ID").

    The goal is to allow them to enter their email if they wanted to. This is what the text would ideally read (it's not currently what will show up, it should be a snap code at this point in time:

    Cannabis Triangle has registered its trademarks with the federal government of United States of America.

    Enter Your Email

    We will let you know when the website is ready

    [mc4wp_form id="48"]
    ________________________________________

    http://CannabisTriangle.com
    January 8, 2017 at 4:33 pm #199022
    Brad Dalton
    Participant

    Where did you put the shortcode?

    Add this in your child theme's functions.php

    add_filter('widget_text','do_shortcode');

    Tutorials for StudioPress Themes.

    January 8, 2017 at 4:43 pm #199025
    Mobiusynergy
    Member

    The plugin has a text box, that is where we put it.

    Also, I added the filter to functions.php didn't work. I tried to add it to the extra sections of the plugin that also didn't work.

    January 8, 2017 at 6:11 pm #199029
    Brad Dalton
    Participant

    You mean a meta box?


    Tutorials for StudioPress Themes.

    January 8, 2017 at 6:19 pm #199032
    Victor Font
    Moderator

    The plugin developer responded to your post on WordPress.org and added the ability to execute your shortcode. He released a new version. Just update your plugin.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    January 8, 2017 at 8:02 pm #199040
    Mobiusynergy
    Member

    Thanks everyone

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Design Tips and Tricks’ 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

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