• Resolved Jaygol

    (@jaygol)


    Hi! I would greatly appreciate if someone could tell me if it is possible (and if so – how) to add an image (same size as the header) under the navigation menu in a Twenty Eleven Child theme?

    Many thanks in advance!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Do you want this image to be uploaded through the dashboard?

    Thread Starter Jaygol

    (@jaygol)

    Not necessarily – I could also insert it into the root folder via ftp and take it from there. I am just not sure what php/css changes I need to do…

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Which version of the theme are you using too?
    If you create an “images” folder in your Child Theme and put your banner in there, you may just want:

    <img alt="description of image" src="<?php echo get_stylesheet_directory() ?>images/your-banner.png" />

    Thread Starter Jaygol

    (@jaygol)

    Thanks for your reply! I am creating a child of version 1.8 of the Twenty Eleven Theme.

    I’m sorry, but in which .php do I put the code you suggested?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Header.php maybe, copy that file and paste it into your Child Theme folder.
    Find this line:

    </nav><!-- #access -->

    Start a new line after that and put the code for your image.

    Thread Starter Jaygol

    (@jaygol)

    I have added it into the Header.php as per your suggestion but only a large empty box appears with the image description in the top left corner. Perhaps I need to make some changes in style.css too to make it appear properly?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Maybe the path to your image is wrong

    Thread Starter Jaygol

    (@jaygol)

    All sorted, thanks for your help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Add image under navigation menu in Twenty Eleven Child’ is closed to new replies.