Jump to content
Sign in to follow this  
sysorex

drop down reveal of content

Recommended Posts

sysorex

I was wondering if there is a way to make it so that some content is hidden and then when you you click on something like read more it reveals the rest of the text, an example of this is Here. on the bio for Marissa Levin when you click the read full bio that is what I am trying to achieve, thanks

Share this post


Link to post
Share on other sites
cmunns

Very simple...start by adding this hook to your PlatformBase functions.php ` add_action ('wp_head','js_additions'); function js_additions(){?> <?php } ` then just add a class of toggle to a "read more" link and wrap the hidden text in a class of toggle_content.

Share this post


Link to post
Share on other sites
bonngean

Adam, This is definitely something I'd like to do on my blog. I understand the part to add to my functions.php file but I don't understand the rest of your instructions. Could you elaborate? I'm not rehearsed in CSS but frantic to learn it. Thanks! -Bonnie

Share this post


Link to post
Share on other sites
kastelic

Like this:

<p class ="toggle">Read More...</p>
	<div class="toggle_content">Your Content Here</div>

Share this post


Link to post
Share on other sites
bonngean

Thanks Jimmy, It makes more sense now (though I feel goofy for not knowing it was that simple.) :) --Bonnie

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×