• I would like to embed the logo in the (header) of the site I work in wordpress. I came to need to put code (code) for the path to the logo in header.php and there I stopped. Please ask for a bit more detailed help about where to place it in the logo and adjust its characteristics (height, width, position, color). I work in localhost on WAMP, my topic is Twenty Eleven and I use the Easy Logo plugin for the logo.

    I inserted the line:

    add_theme_support (‘custom-logo’);

    in the functions.php file and I got the option of adding the logo to the “Identity Web site”. I inserted the logo, but he still does not see the header. You should now enter some codes in header.php – but I’m not sure which part of the file.

    Thanks and goodbye.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Firstly you should be using a child theme, details here:
    http://codex.wordpress.org/Child_Themes
    If you don’t do this then your customizations will disappear when the theme is updated.
    Then I suggest that you use your browser inspector to watch what happens in your pages html. Be sure to really refresh your page views rather than view a stale cached version. First get your logo to appear, then you can get fussy as to how it is positioned etc.
    For the plugin to work, it depends upon the theme using the correct hook functions, suggest temporarily changing to a different or more recent theme just in case 2011 does not do this.

    • This reply was modified 8 years, 4 months ago by RossMitchell.
    Moderator bcworkz

    (@bcworkz)

    Yeah, twentyeleven doesn’t do custom logos by default. In the theme’s header.php file (copied to child), insert the_custom_logo(); where ever you want the logo to appear in the HTML output. Be sure you add that line into an existing PHP block or include your own <?php ?> delimiters. Before or after the site title and description might be a good place to start.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Logo in WordPress header’ is closed to new replies.