← WordPress

[Ajuda] Header Rotativo

Lida 2647 vezes

Offline

Strikker 
Membro
Mensagens 369 Gostos 0
Troféus totais: 25
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

Queria saber como se faz um Header Rotativo para um blog wordpress.

Algo que mude sempre que se muda a pagina.

Alguém me sabe explicar?
Offline

Strikker 
Membro
Mensagens 369 Gostos 0
Troféus totais: 25
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

Grande ajuda... Enfim acho que ja consegui criar o código sozinho
Offline

João Godinho 
Membro
Mensagens 1755 Gostos 2
Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

eu tinha um codigozito mas não o encontro.
Offline

Shaddz 
Membro
Mensagens 2324 Gostos 2
Feedback +9

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

Offline

Luís Salvador 
Membro
Mensagens 2068 Gostos 37
Feedback +4

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

Basta ires ao Header e quando tiveres por exemplo:

<img src="http://ptwrestling.net/wp-content/themes/inove/img/banner.png">

Colocares:

<img src="http://ptwrestling.net/wp-content/themes/inove/img/banner<?php echo(rand(1,3)); ?>.png">

Só tens que dar o nome aos ficheiros: banner1.png, banner2.png, banner3.png, (...) e ir trocando ali no código de que número a que número queres que o "sistema" alterne...
Offline

Strikker 
Membro
Mensagens 369 Gostos 0
Troféus totais: 25
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

Basta ires ao Header e quando tiveres por exemplo:

<img src="http://ptwrestling.net/wp-content/themes/inove/img/banner.png">

Colocares:

<img src="http://ptwrestling.net/wp-content/themes/inove/img/banner<?php echo(rand(1,3)); ?>.png">

Só tens que dar o nome aos ficheiros: banner1.png, banner2.png, banner3.png, (...) e ir trocando ali no código de que número a que número queres que o "sistema" alterne...


Thanks Salvador isto e melhor que o plugin que tenho agora!

Fico-te a dever uma! :grin:
Offline

Shaddz 
Membro
Mensagens 2324 Gostos 2
Feedback +9

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

 #-o