Jump to content

Problemas para cambiar tamaño del logo (SOLUCIONADO)


nanichus

Recommended Posts

Hola gente...aprovecho de saludar a Victor (nadie) y felicitarlo por sus conocimientos en PrestaShop, ya me he leido infinidad de post relacionados con el problema del logo y sigo con el problema, Tengo instalada la version 1.5.4.1.

Desde el Firefox pongo inspeccionae elemento y logro ver y modificar tamaños del logo sin problema, pero siguiendo todos los pasos indicados en el foro para llegar a modificar el codigo del global.css de la plantilla y del header.tpl py en ningun lado encuentro donde modificar los tamaños.

Tambien hice lo que aconsejan de subir el logo desde el panel y con la opcion de compilar y solamente ajusta el logo al tamaño que trae establecido.

Tengo otra instalacion de prestashop en forma Local y con esa hice pruebas cargando la imagen desde el panel y gran sorpresa... los primeros intentos no modificaba pero como al sexto intento cargando diferentes imagenes y tamaños, por fin logró ajustarse al tamaño de la imagen, mi gran problema es que en la que tengo montada no me hace el cambio, simplemente no se ajusta.

Alguien me puede ayudar???

 

EN EL HEADER.TPL TENGO ESTO

 

<!-- Header -->

<div id="header" class="grid_9 alpha omega">

<a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}">

<img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} />

</a>

<div id="header_right" class="grid_9 omega">

{$HOOK_TOP}

</div>

</div>

 

<div id="columns" class="grid_9 alpha omega clearfix">

<!-- Left -->

<div id="left_column" class="column grid_2 alpha">

{$HOOK_LEFT_COLUMN}

</div>

 

<!-- Center -->

<div id="center_column" class=" grid_5">

 

 

 

 

 

Y EN EL GLOBAL.CSS SOLO SALE ESTO

 

 

.listcomment .authorcomment {}

 

 

/* ************************************************************************************************

HEADER

************************************************************************************************ */

 

 

/* ************************************************************************************************

BREADCRUMB

************************************************************************************************ */

.breadcrumb {

margin-bottom:10px;

font-size:12px

}

.breadcrumb .navigation-pipe {margin:0 3px 0 5px}

.breadcrumb img {

position:relative;

top:5px

}

 

 

/* ************************************************************************************************

FOOTER

************************************************************************************************ */

#footer {

color:#fff;

background:#333

}

 

Saludos cordiales desde Chile

Edited by nanichus (see edit history)
Link to comment
Share on other sites

Gracias por responder, voy a probar, ya le he dado vueltas a todos los archivos y no logro dar con el archivo que contiene las medidas para poder modificarlas, al inspeccionar con el firefox se ven las medidas las puedo regular y todo pero no logro dar con el o los archivos relacionados,

 

Hice una instalación local y después de varios intentos desde el panel temas cambie el logo y finalmente se ajusto a la medida, pero en la instalación del servidor no me hace el cambio.

 

Bueno amigo probare tu recomendación y te aviso.

Link to comment
Share on other sites

Perfecto Shacker!!!!! el logo se ajustó perfectamente al eliminar el código indicado, guardé cambios y cargué la imagen desde el panel, hasta ahí todo bien pero en el lado izquierdo del front aparecieron las dos medidas que usaba el logo, adjunto imagen, espero tu consejo igual me pondré a experimentar.

Link to comment
Share on other sites

Perfecto Shacker!!!!! el logo se ajustó perfectamente al eliminar el código indicado, guardé cambios y cargué la imagen desde el panel, hasta ahí todo bien pero en el lado izquierdo del front aparecieron las dos medidas que usaba el logo, adjunto imagen, espero tu consejo igual me pondré a experimentar.

post-582405-0-55493100-1370523243_thumb.jpg

Edited by nanichus (see edit history)
Link to comment
Share on other sites

{if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} {*

* 2007-2013 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Academic Free License (AFL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:

* http://opensource.org/licenses/afl-3.0.php

* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

* @author PrestaShop SA <[email protected]>

* @copyright 2007-2013 PrestaShop SA

* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)

* International Registered Trademark & Property of PrestaShop SA

*}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 " lang="{$lang_iso}"> <![endif]-->

<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7" lang="{$lang_iso}"> <![endif]-->

<!--[if IE 8]><html class="no-js lt-ie9 ie8" lang="{$lang_iso}"> <![endif]-->

<!--[if gt IE 8]> <html class="no-js ie9" lang="{$lang_iso}"> <![endif]-->

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}">

<head>

<title>{$meta_title|escape:'htmlall':'UTF-8'}</title>

{if isset($meta_description) AND $meta_description}

<meta name="description" content="{$meta_description|escape:html:'UTF-8'}" />

{/if}

{if isset($meta_keywords) AND $meta_keywords}

<meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" />

{/if}

<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />

<meta http-equiv="content-language" content="{$meta_language}" />

<meta name="generator" content="PrestaShop" />

<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />

<link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url}?{$img_update_time}" />

<link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" />

<script type="text/javascript">

var baseDir = '{$content_dir}';

var baseUri = '{$base_uri}';

var static_token = '{$static_token}';

var token = '{$token}';

var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals};

var priceDisplayMethod = {$priceDisplay};

var roundMode = {$roundMode};

</script>

{if isset($css_files)}

{foreach from=$css_files key=css_uri item=media}

<link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" />

{/foreach}

{/if}

{if isset($js_files)}

{foreach from=$js_files item=js_uri}

<script type="text/javascript" src="{$js_uri}"></script>

{/foreach}

{/if}

{$HOOK_HEADER}

</head>

 

<body {if isset($page_name)}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if} class="{if $hide_left_column}hide-left-column{/if} {if $hide_right_column}hide-right-column{/if} {if $content_only} content_only {/if}">

{if !$content_only}

{if isset($restricted_country_mode) && $restricted_country_mode}

<div id="restricted-country">

<p>{l s='You cannot place a new order from your country.'} <span class="bold">{$geolocation_country}</span></p>

</div>

{/if}

<div id="page" class="container_9 clearfix">

 

<!-- Header -->

<div id="header" class="grid_9 alpha omega">

<a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}">

<img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" >

</a>

<div id="header_right" class="grid_9 omega">

{$HOOK_TOP}

</div>

</div>

 

<div id="columns" class="grid_9 alpha omega clearfix">

<!-- Left -->

<div id="left_column" class="column grid_2 alpha">

{$HOOK_LEFT_COLUMN}

</div>

 

<!-- Center -->

<div id="center_column" class=" grid_5">

{/if}

Link to comment
Share on other sites

Listo Shacker.... ya pude corregirlo, quedo perfecto.. MUY AGRADECIDO AMIGO, esto ya me tenia enfermo jajaja

 

Saludos y muchas gracias

 

Editare el titulo y lo daré por solucionado.

 

Tengo otra duda pero creare un tema nuevo.

  • Like 1
Link to comment
Share on other sites

  • 3 months later...

Hola,

tengo una duda, ¿porque vienen estas variables en el codigo, como si la anchura y la altura se pudiera configurar?

He quitado el if del codigo subido la imagen en el admin de nuevo y sigue quedandose igual.

¿alguna idea? porque ahora mismo lo que he hehco a sido ponerle en el header.tpl la url a mano y subir la imagen directamente al ftp.

 

Un saludo,

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...