• 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

berticus

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • May 20, 2013 at 1:23 pm in reply to: Metro Theme: HTML and Short Codes in Archive Intro Text? #41871
    berticus
    Member

    @essaysnark - Didn't work with the revised bit of code, either.

    Thanks for the input, everyone. I'm going to keep looking around for answers. If anyone has any ideas I would love to hear them, though.

    Albert

    May 17, 2013 at 3:37 pm in reply to: Metro Theme: HTML and Short Codes in Archive Intro Text? #41436
    berticus
    Member

    @essaysnark

    Shortcodes don't work with the code you specified added to 'functions.php'.

    All I'm trying to do is execute a standard 'accordion display' as you called it. So far I've had no luck. I think I've got too much going on here. Perhaps I just need solid javascript before I go fussing about with the 'functions.php'.

    Initially I was looking for a shortcode plugin that would allow me to implement the accordion display. Then I switched focus to javascript.

    The code you provided didn't work for expanding the accordion. Sorry.

    If anyone has a solution for this I would greatly appreciate input.

    Albert

    May 17, 2013 at 10:40 am in reply to: Metro Theme: HTML and Short Codes in Archive Intro Text? #41397
    berticus
    Member

    @sokratesagogo - I don't think so. Let me show you what I'm talking about.

    The website is: http://themesquirrel.com/themeblog/opencart-themes/

    That particular category page is one that I haven't been able to replicate with any plugins or find the code for in the theme files. As you can see at the top there is a link "Click here to read more" that doesn't work. The hidden body of text is almost 900 words and I would like for it to hide mostly until clicked. The text has been input into the "Archive Intro Text" box in the category's editing page.

    The snippet of code I'm using is:

    <script type="text/javascript">
    function showMore() {
    var mydiv = document.getElementById('myText');
    mydiv.style.height = mydiv.scrollHeight;
    }
    </script>

    <div id="myText" style="overflow:hidden; height:150px;">
    <p style="text-align: center;"><strong>OpenCart Themes - An Overview</strong></p>

    Text text text.

    </div>
    <center><a href="javascript:;" onclick="showMore()">Click To Read More</a></center>

    I know how to add shortcode filters to say, widgets. For example, on this website:

    http://webdesign.onyou.ch/2010/08/11/using-shortcodes-everywhere/

    the author specifies the following code:

    add_filter( 'widget_text', 'shortcode_unautop');
    add_filter( 'widget_text', 'do_shortcode');

    to be added to 'functions.php'. In my case this would be for the 'functions.php' file under the child theme in Genesis.

    I have been unable to identify what to replace 'widget_text' with in order to add the shortcode filter to the appropriate box in the archive. I have also been unable to identify what to replace 'do_shortcode' in order to execute the above javascript.

    I hope that was clear... If there are any additional questions concerning this situation please ask and I will answer to the best of my ability.

    Thanks!

    Albert

    May 14, 2013 at 4:45 pm in reply to: Metro Theme: HTML and Short Codes in Archive Intro Text? #40919
    berticus
    Member

    I waited almost 10 days this time... Is there no one out there that can answer this question?

    May 3, 2013 at 6:43 pm in reply to: Metro Theme: HTML and Short Codes in Archive Intro Text? #39196
    berticus
    Member

    Does no one have an answer for this? Hard Boiled Greg? Anyone?

    May 2, 2013 at 1:40 pm in reply to: Metro Theme: HTML and Short Codes in Archive Intro Text? #38960
    berticus
    Member

    I'm going to resurrect this once again. I hope there is someone out there that can answer my question.

    May 1, 2013 at 3:37 pm in reply to: Metro Theme: HTML and Short Codes in Archive Intro Text? #38835
    berticus
    Member

    Anyone? Anyone at all?

    April 30, 2013 at 5:23 pm in reply to: Metro Theme: HTML and Short Codes in Archive Intro Text? #38650
    berticus
    Member

    @HArd Boiled Greg - HTML is just fine, but shortcodes don't work at all. I'm familiar with the PHP code below, but not what to put in the section I have labeled "taxonomy-description". Any help on this would be grand.

    add_filter( 'taxonomy-description', 'shortcode_unautop' );
    add_filter( 'taxonomy-description', 'do_shortcode' );

    Thanks so much!

    Albert

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)

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