Forum Replies Created
-
AuthorPosts
-
May 20, 2013 at 1:23 pm in reply to: Metro Theme: HTML and Short Codes in Archive Intro Text? #41871berticusMember
@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? #41436berticusMemberShortcodes 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? #41397berticusMember@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? #40919berticusMemberI waited almost 10 days this time... Is there no one out there that can answer this question?
berticusMemberDoes no one have an answer for this? Hard Boiled Greg? Anyone?
berticusMemberI'm going to resurrect this once again. I hope there is someone out there that can answer my question.
berticusMemberAnyone? Anyone at all?
April 30, 2013 at 5:23 pm in reply to: Metro Theme: HTML and Short Codes in Archive Intro Text? #38650berticusMember@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
-
AuthorPosts