• Hello,

    I am developing a new concept and thought this theme would be useful especially for mobile use. My concern is that the logo seems to be on every page rather than just the home page. Is this the case and can I remove it?

    Many Thanks

    Leigh

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Mattia Migliorini

    (@deshack)

    Hi Leigh,
    yes, the logo shows in every page. If you want it to only be displayed in the home page without creating a Child Theme, you have to play around with the CSS.

    Be careful though: to ensure a correct behavior both on desktop and in mobile devices the logo markup is repeated twice. The section with id logo-sidebar is displayed on desktops, while that with id logo is displayed on mobile devices.

    If you want to address this issue with a Child Theme, the logo section markup is handled by the melany_logo() function in inc/template-tags.php. Just create a function with the same name in your Child Theme and it will be used instead of this one.

    Thread Starter full moon

    (@leighgregg)

    Thanks for the info.

    I think the child theme setup sounds the best solution. It is starting to go beond my knowledge though when you mention creating a new function. Ideally a logo for the home page and then a function that has no function would be perfect for the rest of the pages. I dont really need anything at all for this area.

    Would you mind suggesting some way if approaching this with the child theme approach you suggested.

    Many Thanks

    Leigh

    Theme Author Mattia Migliorini

    (@deshack)

    With a Child Theme you can override the melany_logo() function to display it only in the front page.
    This is very simple to achieve: just copy the content of the function melany_logo() you find in inc/template-functions.php and wrap its content in a conditional statement checking if the current page is the blog index page, like this:

    function melany_logo( $id ) {
      if ( is_home() ) {
        ... // the original melany_logo() function content
      }
    }

    If you want to use a static page as home page, replace is_home() with is_front_page() in the if statement.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Logo’ is closed to new replies.