Reputation: 449
I want to add several new tags/subpages/sub-contents (I don't know what it is called) like this one: http://www.rle.mit.edu/gg/publications/#1456759349089-640f1dcb-938f
【publications】is a page in which there are 【2016】,【2015】,...
When I hit 2016, the relative contents show up. How can I do this? Thanks.
Upvotes: 0
Views: 65
Reputation: 138267
If you wanna do it yourselve, copy this into your file:
<script>
function pshow(id){
document.getElementById(id).style.display="block !important";
}
function phide(id){
document.getElementById(id).style.display="none !important";
}
</script>
<a href="javascript:pshow('p1')">Show p1</a>
<a href="javascript:phide('p1')">Hide p1</a>
<p class="hide" id="p1">This is p1</p>
Add this under design> customize css
.hide{display:none !important;}
Upvotes: 1
Reputation: 472
from looking at the demo you've given, you're talking about an accordian. Try this plugin https://wordpress.org/plugins/tabby-responsive-tabs
Upvotes: 1