Show/Hide
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Como conseguir esta funcionalidade:
- Definir estilos CSS no template
- Definir bloco de código javascript dentro do header desse template
- Criar no post a seguinte estrutura
Customize->Template->Edit HTML
.posthidden {display:none}
.postshown {display:inline}
«script type='text/Javascript'»
function expandcollapse(postid) {
whichpost = document.getElementById(postid);
if (whichpost.className=="postshown") {
whichpost.className="posthidden";
}
else {
whichpost.className="postshown";
}
}
«/script»
Resultado Final é algo deste género
«a onclick="javascript:expandcollapse ('blck1')"»Show/Hide«/a»
«span id="blck1" class="posthide"»
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
Hide show hide show Hide show hide showHide show hide showHide show hide show
«/span»
NOTA: substituir o « por MenorQue e o » por MaiorQue devido a limitações do editor tive que os colocar desta forma para poderem ver código html