← WordPress

Alteração de letras para imagem no cabeçalho...

Lida 3972 vezes

Offline

Tsunamy 
Membro
Mensagens 5 Gostos 0
Troféus totais: 20
Trófeus: (Ver todos)
Linux User Mobile User Windows User Super Combination Combination Topic Starter Level 3 Level 2 Level 1 First Post

Bom dia.
Estou um utilizar um tema no meu site www.clinicveterinary.com mas não
consigo inserir uma imagem
(http://www.clinicveterinary.com/wp-content/themes/02/images/header.jpg)
em vez das letras lá em Cima do Cabeçalho Do mesmo.
Será que me podem dar Uma Ajuda?

Já estive a ver no vosso site mas não encontro nenhum tópico a ajudar
 a alteracao do mesmo. Como posso fazer a alteração podem ajudar?

Sem Mais de Momento
Com os Melhores Cumprimentos
Offline

bfms 
Equipa
Mensagens 1769 Gostos 40
Feedback +1

Troféus totais: 35
Trófeus: (Ver todos)
Search Level 6 Apple User Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

Olá,

Para fazeres essa alteração terás de modificar o ficheiro header.php do tema em questão.

Basicamente acede via ftp ou gestor de ficheiros online, na pasta wp-content/themes/o-nome-do-teu-tema
Lá terás vários ficheiros *.php. Encontra o header.php e modifica-o no teu computador usando o bloco de notas ou outra ferramenta que te possa ler e editar o tipo de ficheiros php.

No ficheiro, algures terás:
<?php bloginfo('name'); ?> ou <?php wp_title(); ?>

Substituis o que tens lá por <a href="link-do-teu-site"><img src="link-da-imagem"></a>

Depois diz algo, espero ter ajudado.

Cumps
Offline

Luís Casanova 
Membro
Mensagens 565 Gostos 9
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 500 Posts

Basicamente acede via ftp ou gestor de ficheiros online, na pasta wp-content/themes/o-nome-do-teu-tema
Lá terás vários ficheiros *.php. Encontra o header.php e modifica-o no teu computador usando o bloco de notas ou outra ferramenta que te possa ler e editar o tipo de ficheiros php.

poderá simplesmente ir ao /wp-admin + personalização + editor + header.php
Offline

Tsunamy 
Membro
Mensagens 5 Gostos 0
Troféus totais: 20
Trófeus: (Ver todos)
Linux User Mobile User Windows User Super Combination Combination Topic Starter Level 3 Level 2 Level 1 First Post

Boa noite bfms e Luís Casanova.

A unica string que lá tenho é esta parecida com isso que me estao a dizer é esta:
<title><?php wp_title(' '); ?><?php if(wp_title(' ', false)) { echo ' &middot; '; } ?><?php bloginfo('name'); ?></title>

Já fiz vários testes e o que é certo é que não consigo fazer com que a imagem funcione...
Podem-me ajudar?

OBRIGADO DESDE JÁ AMIGOS.
Offline

Jota 
Editor
Mensagens 773 Gostos 0
Feedback +1

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

Boas Tsunamy,

Estas na zona errada procura por:

Código: [Seleccione]
<div id="page">
  <div id="header">
    <div id="headerimg">
      <h1>XXXX</h1>



    </div>
  </div>

Talvez no ficheiro header.php ou index.php ( e raro ser neste ficheiro mas so em caso).

Agora para aparecer a tua image tens que remover o h1 e por algo deste genero:

Código: [Seleccione]

<img src="<?php bloginfo('template_url'); ?>/images/header.jpg" width="211" height="47" alt="Clinic Veterinary" />
Offline

Tsunamy 
Membro
Mensagens 5 Gostos 0
Troféus totais: 20
Trófeus: (Ver todos)
Linux User Mobile User Windows User Super Combination Combination Topic Starter Level 3 Level 2 Level 1 First Post

Obrigado Jota por a tua resposta mas na modificação mesmo assim não funcionou...
Deixou-te aqui o codigo da minha (header.php), caso me possas ajudar.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title><?php wp_title(' '); ?><?php if(wp_title(' ', false)) { echo ' &middot; '; } ?><?php bloginfo('name'); ?></title>

<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<style type="text/css" media="screen">

</style>

<?php wp_head(); ?>
</head>
<body>
<div id="page">


<div id="header">
   <div id="headerimg">
<?php /* If this is a category archive */ if (is_category()) { ?>
<h1><?php single_cat_title(''); ?></h1>
<h3>at <a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h3>
         
<?php /* If this is a single post */ } elseif (is_single()) { ?>
<h1><?php the_title(); ?></h1>
<h3>at <a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h3>
         
<?php /* Everything else */ } else { ?>
<h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<h3><?php bloginfo('description'); ?></h3>

<?php  } ?>

Obrigado desde já a todos.
Offline

Jota 
Editor
Mensagens 773 Gostos 0
Feedback +1

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

Boas Tsunamy,

Tenta:

Código: [Seleccione]
<div id="header">
   <img src="<?php bloginfo('template_url'); ?>/images/header.jpg" width="770" height="120" alt="Clinic Veterinary" />
   <div id="headerimg">

ou

Código: [Seleccione]
<div id="header">
   <img src="http://www.clinicveterinary.com/wp-content/themes/02/images/header.jpg" width="770" height="120" alt="Clinic Veterinary">
   <div id="headerimg">

Acho que assim a imagem vai aparecer.

Para apagares as letras do cabeçalho tenta, primeiro apaga/delete isto:

Código: [Seleccione]
<?php /* If this is a category archive */ if (is_category()) { ?>
<h1><?php single_cat_title(''); ?></h1>
<h3>at <a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h3>
         
<?php /* If this is a single post */ } elseif (is_single()) { ?>
<h1><?php the_title(); ?></h1>
<h3>at <a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h3>
         
<?php /* Everything else */ } else { ?>
<h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<h3><?php bloginfo('description'); ?></h3>

<?php  ?>


E mete

Código: [Seleccione]
<a href="<?php echo get_settings('home'); ?>/">
 <img src="<?php bloginfo('template_url'); ?>/images/header.jpg" width="770" height="120" alt="Clinic Veterinary" />
</a>
Offline

Tsunamy 
Membro
Mensagens 5 Gostos 0
Troféus totais: 20
Trófeus: (Ver todos)
Linux User Mobile User Windows User Super Combination Combination Topic Starter Level 3 Level 2 Level 1 First Post

 :obrigado: Quero-vos agradecer imenso pois já está a funcionar.

Funcionou com a rectificação do Jota...
Para os Amigos bfms, Luis Casanova e Jota.... o meu muito obrigado, por tudo...
Offline

dardevelin 
Membro
Mensagens 249 Gostos 0
Troféus totais: 21
Trófeus: (Ver todos)
Linux User Super Combination Combination Topic Starter Poll Voter Level 4 Level 3 Level 2 Level 1 100 Posts

Boas, não teria sido mais simples por um display:none; no css referente ao title e adicionar uma div ou mesmo um span e fazer a chamada do tal de logo ? Pois assim se for um theme com funções extra poderão ocorrer erros no futuro...