Site logo

Archived topic

Tamaño recomendado para logo

5 replies · Started by Pedro on April 24, 2020

Viewing posts 1–6 of 6

Hola! He creado un nuevo sitio con la plantilla "Marketer" https://gpsites.co/marketer/

Estuve buscando pero no encontré el tamaño recomendado para el logotipo del sitio.

¿Podrían compartirme las dimensiones recomendadas?

Gracias!

Hi:
The problem is that you cannot specify a specific width and height in the logo, so pagespeed gives an error of lack of both attributes. How do I add them manually from the CSS customizer and what class does the logo use specifically to add the measures I want and avoid the google error? Waiting for your response, attentively:

page speed google

Pau Company

Hi Pablo,

For that specific flag from google PSI, you'll need to filter the logo output to add the attributes.

Some GP sites have 2 logo versions, one for mobile and one for desktop.

For mobile(Mobile Header EnableD), you can add the image height and width by filtering it using the generate_mobile_header_logo_output filter.

See David’s code here:
https://generatepress.com/forums/topic/how-to-set-height-and-width-for-the-logo-image/#post-1563234

For the desktop version of the logo, you can add in the height and width attribute by using my snippet here:
https://generatepress.com/forums/topic/los-elementos-de-imagen-no-tienen-width-y-height-explicitos/#post-1679528

Hi:
Thanks a lot. Problem solved.

Pau Company

Nice one. No problem. :D

This archived topic is closed to new replies.