Home > Software design >  wordpress - how to add logo on menu
wordpress - how to add logo on menu

Time:09-21

I am creating my custom theme, but I cannot find any option which allow me to create logo on the left on menu bar

enter image description here

My current Menu: enter image description here

I want to add the logo here:
enter image description here

Appearance > Theme Editor > header.php

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="xxxxx" crossorigin="anonymous">
    <?php 
    wp_head(); 
    ?>
</head>

</html>

<body <?php body_class('bg'); ?>>
    <?php wp_body_open(); ?>

CodePudding user response:

One trick is to use the image HTML in the custom link:

enter image description here

With this it will show the image at the menu mentioned:

enter image description here

  • Related