# Site Identity & Logo

## Site Identity & Logo

**Files:** `src/config/config.toml`, `src/i18n/<lang>.json`, `src/assets/images/` · **Skill level:** Beginner

Looka makes it easy to customize your site's branding, including the logo and favicon, through the `config.toml` file.

In the Tina edition, these are under **Site settings** at `/admin/`. In the Sanity edition, they are under **Site settings > Site** and **SEO** in the Studio, but favicons stay in `config.toml`.

### Customize Your Logo

To set your logo that will be displayed on the header and footer, edit the `[site]` section in the `config.toml` file:

```toml {8-12}
# config.toml
[site]
  title            = "Looka" # Shared title for SEO and OpenGraph
  description      = "" # Empty: each language's own, seo.siteDescription in src/i18n/<language>.json
  tagline          = "" # Added to page titles. Empty: each language's own, seo.tagline in src/i18n/<language>.json
  taglineSeparator = "" # default is " - "
  baseUrl          = "https://looka-astro.pages.dev" # Change this to your domain
  logo             = "/images/logo.svg" # Path to the site's logo
  logoAlternate    = "" # Optional alternate logo path
  logoText         = "Looka" # Text displayed next to the logo
  logoWidth        = "29px" # Width of the logo
  logoHeight       = "29px" # Height of the logo
```

- **`logo`**: Path to your main logo. `/images/logo.svg` is the file `src/assets/images/logo.svg`.
- **`logoText`**: Text next to the logo (if applicable).
- **`logoWidth` & `logoHeight`**: Adjust the size of your logo.

> Looka ships with `logo = "/images/logo.svg"` and `logoText = "Looka"`. If you remove the `logo` value, the header falls back to `logoText` (or the site `title` when both are empty).

#### Different Logo for Footer

Looka's footer uses a separate white logo so it stays visible on the dark footer background. The `<Logo />` component accepts an optional `src` prop that overrides the `logo` value from `config.toml`. You can see this in `src/layouts/components/global/Footer.astro`:

```astro
// Footer.astro
<div class="flex flex-col gap-y-5 lg:pe-10">
  <Logo src="/images/logo-white.svg" />
  {
    footerDescription && (
      <p class="opacity-90" set:html={markdownify(footerDescription)} />
    )
  }
  <SocialComponent
    layout="dark"
    linkType="follow"
    class="mt-5 gap-1"
    list={social.main.filter((social) => social.enable)}
  />
</div>
```

To swap the footer logo, replace the file `src/assets/images/logo-white.svg` with your own white or light logo. This stays in code in every edition.

> **Note:** Looka's `<Logo />` component reads `logo`, `logoText`, `logoWidth`, and `logoHeight` from `config.toml`. The `logoAlternate` field is present in the config for forward compatibility but is not rendered by the current theme — use the `src` prop (as the footer does) when you need a second logo.

### Set Up Your Favicon

Favicons appear in browser tabs and are essential for branding.

```toml
# config.toml
[site.favicon]
  path  = "/images/favicons"  # Favicon storage path
  image = "/images/logo.svg"  # Use your logo here
```

#### Generate Favicons

1. Place your logo image in `src/assets/images/`, and set its path in `image`.
2. Run this command in your terminal:

   ```bash
   npm run generate-favicons
   ```

3. The tool will create favicons for various platforms and save them to `public/images/favicons/`.

### Customize SEO Metadata

Optimize your site for search engines with these SEO settings in `config.toml`:

```toml
# config.toml
[seo]
  author   = "Getastrothemes"        # Author name for SEO
  keywords = ["business astro theme, consulting astro theme"]  # SEO keywords
  robots   = "index, follow"         # Search engine crawl rules
```

- **author**: Set the author or organization for SEO.
- **keywords**: Add keywords to improve search ranking.
- **robots**: Control search engine crawling (e.g., "index, follow" to allow indexing).

The tagline and the site description are in each language file, so they can change with the language:

```json
// src/i18n/en.json
"seo": {
  "siteDescription": "A highly customizable consulting & business astro theme built with Tailwind CSS and Astro Js",
  "tagline": "Corporate Business & Consulting Astro Js Theme"
}
```

Change them in every language. A value in `description` or `tagline` under `[site]` replaces them in every language. For `robots.txt` and the files for AI tools, see [AI Links & llms](../../features/ai-links-llms/).

🚀 You've customized the site's identity and logo—now it's time to update the fonts and colors!