You are here:  » Logo Insertion

Logo Insertion

Submitted by Tobix on Thu, 2022-02-10 18:26 in

Hi David, but how can I change the logo on my site? It happens that when I change the logo, then I no longer see the preview of the products on social media but the logo ...

Submitted by support on Fri, 2022-02-11 08:44


Adding the og:image property should resolve this. To try, edit html/header.php and look for the following code at line 22:

      <link rel='stylesheet' href='<?php print $config_baseHREF?>html/vendor/foundation.min.css' />

...and REPLACE with:

      <?php if (isset($header["prop"])): foreach($header["prop"] as $property => $content): ?>
        <meta property='<?php print $property?>' content='<?php print htmlspecialchars($content,ENT_QUOTES,$config_charset); ?>' />
      <?php endforeach; endif; ?>
      <link rel='stylesheet' href='<?php print $config_baseHREF?>html/vendor/foundation.min.css' />

Then edit products.php and look for the following code at line 72:

      $header["meta"]["keywords"] = $product["products"][0]["name"];

...and REPLACE with:

      $header["meta"]["keywords"] = $product["products"][0]["name"];
      if ($product["products"][0]["image_url"])
        $header["prop"]["og:image"] = $product["products"][0]["image_url"];

Hope this helps!


Submitted by Tobix on Fri, 2022-02-11 18:26

Hi David unfortunately
No white image when sharing on social media.
Maybe wrong to put the logo? Can you tell me the right procedure to insert the logo?

Submitted by support on Mon, 2022-02-14 08:52

Hi Tobix,

The area to the left of (or above) the search form in html/searchform.php is ideal for a site logo.

The distribution template just has a holding space at this position, at line 5:

  &nbsp; REPLACE this with your logo image, or as required:

  <a href='<?php print $config_baseHREF?>'>
    <img src='<?php print $config_baseHREF?>images/logo.png' />

(assuming a logo file logo.png uploaded to the images folder)


Submitted by Tobix on Fri, 2022-02-18 17:56

Work! Thanks!