• Resolved Reena.Wrights

    (@reenawrights)


    Hi, would like to know if there is a way to add site logo image to top navigation instead of adding it to the header section? thanks very much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author Richie KS

    (@rkcorp)

    if you’re on v1.6.3, there’s a hook you can add to functions.php

    open functions.php and add this

    function my_top_logo() { ?>
    <div class="toplogo"><a href="#"><img src="your image" /></a></div>
    <?php }
    add_action('bp_inside_top_nav', 'my_top_logo');

    and add this to theme option->custom css
    #top-navigation div.toplogo { float:left;margin:0 20px 0 0; }

    Thread Starter Reena.Wrights

    (@reenawrights)

    Thank you Richie!

    I managed to move site logo image from header to top navigation with your above instructions.

    Now the original site logo section is showing the site title and tagline. How do I remove this area and also center the topbanner advertisement?

    Thank you very much for helping!

    Thread Starter Reena.Wrights

    (@reenawrights)

    Would like to add on to the above:

    I added this to custom css:
    #siteinfo { display: none; }

    Managed to remove site title and tagline in full screen. But for smaller screens, the tagline and site title is still showing up. Any idea how to prevent this too?

    Thank you.

    Theme Author Richie KS

    (@rkcorp)

    try add this instead
    #custom #siteinfo { display: none !important; }

    Thread Starter Reena.Wrights

    (@reenawrights)

    Thank you very much! this worked!

    mayakay

    (@mayakay)

    Please help,

    I added the following at the end of functions and get the error message below. I am assuming I added it in the wrong place and would like to go back and remove it but have no idea how to get back as I appear to be locked out.

    Thanks (first time user)

    Maya

    function my_top_logo() { ?>
    <div class=”toplogo”><img src=”your image” /></div>
    <?php }
    add_action(‘bp_inside_top_nav’, ‘my_top_logo’);

    Parse error: syntax error, unexpected ‘}’ in /home3/mayakay/public_html/wp-content/themes/mesocolumn/functions.php on line 373

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add Site Logo To Top Navigation’ is closed to new replies.