← WordPress

Ajuda para esconder Widget

Lida 2349 vezes

Offline

custodio 
Membro
Mensagens 421 Gostos 6
Feedback +8

Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

Caros companheiros e gurus do Wordpress :D

É possível esconder um widget na homepage e mostrá-lo apenas nos posts e nas páginas?

Se sim, como se faz, se faz favor? :)

Obrigado
JC
Offline

bonsempregos 
Membro
Mensagens 2008 Gostos 7
Feedback +3

Troféus totais: 29
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4 Level 3 Level 2

podes usar o is_home()

Tens mais info aqui.

http://codex.wordpress.org/Function_Reference/is_home
Offline

rtbfreitas 
Equipa
Mensagens 1497 Gostos 9
Feedback +24

Troféus totais: 30
Trófeus: (Ver todos)
Windows User Apple User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4

Usa o plugin "Widget Logic", podes fazer download ou ler mais sobre o mesmo em:

http://wordpress.org/extend/plugins/widget-logic/
Offline

custodio 
Membro
Mensagens 421 Gostos 6
Feedback +8

Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

Olá

Muito obrigado a ambos! Já consegui esconder o malandro ;)

Um abraço,
JC