• Hi everybody,
    I’m a new user of WP and I’m very dummie.. I have a question: is it possible to put images between logo and main menu?

    Thank you very much!
    gapfact

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yes, but you need to tell me how do you want those images displayed on narrow screens, when your logo is centered. Narrow your browser down to see what I’m talking about.

    Thread Starter gapfact

    (@gapfact)

    Uhm, I understand your observation and you’re right. I have not thought to mobile devices (phone, tablet, etc.), only screen. I’ll explain: I’m doing the site of film festival and I would put the festival logo in site’s head, and below the three main sponsor logo.
    Follow, the main menu, the slides, etc.
    Dou you think is possible? The sponsor logo are really small.

    Thanks!
    gapfact

    Yes, it’s possible.
    1. Write the HTML down for the three logos and heave it ready to copy/paste.
    2. Add this code at the end of your child theme’s functions.php. Please note that if functions.php ends in a ?> you need to paste this code above it, not after it. Having anything after the ending php tag, even empty lines or white space will probably break your website.

    add_filter('tc_logo_title_display', 'add_html_below_logo');
    function add_html_below_logo($output) {
    $extra_html = ''; // Paste html in this line, between the apostrophes
    return preg_replace('/<\/div>/', $extra_html.'</div>', $output, -1);
    }

    3. Paste your html between the apostrophes of the line that says: “Paste html in this line, between the apostrophes”.

    4. Save and upload.

    5. Good luck with your festival!

    Thread Starter gapfact

    (@gapfact)

    Sorry for delay, thank you very much!
    All good work 😀

    Best regards,
    gapfact

    In the same way, is it possible to add a texte on the top-right ? (my navbar and my logo is centered)

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

The topic ‘Images between logo and menu’ is closed to new replies.