• 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

Visual Composer shortcodes in Genesis Hooks not working

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 › Visual Composer shortcodes in Genesis Hooks not working

This topic is: not resolved
  • This topic has 10 replies, 2 voices, and was last updated 11 years, 10 months ago by report.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • October 21, 2014 at 9:40 am #128649
    report
    Member

    Hello,
    I am trying to put a Visual Composer shortcode in the genesis_after_header hook but - despite 2Enable shortcode in this hook" is activated, the shortcode does not work.

    Any idea about that?

    Thank you.

    October 21, 2014 at 9:44 am #128651
    Brad Dalton
    Participant

    You could try a custom function rather than simple hooks


    Tutorials for StudioPress Themes.

    October 21, 2014 at 10:32 am #128665
    report
    Member

    Right, thank you braddlaton. I tried it but nothing changes. This is the effect I get.

    This is my Visual Composer shortcode:

    [vc_row][vc_column width="1/3"][vc_column_text] ... all the rest of the shortcode + HTML code ... [/vc_row]

    What I get is the HTML content IN the shortcode, but WITHOUT the effect of the shortcode.

    In the example above, the shortcode should produce three 1/3 columns with HTML content in them.

    The result is the correct HTML code without the shortcode effect, and in this case it is the three 1/3 sections.

    BUT... if i enter just [vc_row][/vc_row] in the page or post content, say at the beginning of the text, the shortcode is correctly activated.

    This shortcode generates this html code:

    <div class="vc_row wpb_row vc_row-fluid"></div>

    So strange, isnt'it?

    October 21, 2014 at 11:32 am #128671
    Brad Dalton
    Participant

    What exactly do you want to do?


    Tutorials for StudioPress Themes.

    October 22, 2014 at 12:39 am #128715
    report
    Member

    As I have done in other themes where Visual Composer is integrated, i am trying to put a row of three links (in the form of buttons) below the main menu.

    This row of buttons is located below the main menu, in the genesis_after_header hook, and is supposed to appear in any page.

    The advantage of making it with VC is that the line of buttons is resizable and responsive.

    October 22, 2014 at 12:45 am #128716
    Brad Dalton
    Participant

    I would add 3 widgets inline using responsive content column classes


    Tutorials for StudioPress Themes.

    October 22, 2014 at 12:46 am #128717
    Brad Dalton
    Participant

    Add Button HTML to Text Widget


    Tutorials for StudioPress Themes.

    October 22, 2014 at 12:49 am #128718
    report
    Member

    I also tried using the echo do_shortcode('[.........'); function and entering the code in the .php template instead of in the hook, but nothing changed.

    Another attempt I have made is testing this on another WP / Genesis / Newspro website, with the same result.

    Please note that all versions are the latest releases: WP / VC / Genesis.

    October 22, 2014 at 1:09 am #128721
    report
    Member

    Right! That works fine, thank you braddalton.

    Anyway, no need to say that if VC could work, that would be advisable.

    October 22, 2014 at 1:14 am #128723
    Brad Dalton
    Participant

    Once you add support for use of shortcodes in widgets, you could then add them in text widgets.

    You might also like to use HTML for buttons which i have also posted on my site


    Tutorials for StudioPress Themes.

    October 22, 2014 at 1:24 am #128725
    report
    Member

    Thank you braddalton, you've been helpful!

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