This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Replies

5
  1. Andrew Misplon Staff 10 years, 4 months ago

    Hi HG

    Unfortunately, not without custom development. If you’re using a child theme you can create a folder called “parts” in the child theme and then copy /parts/masthead.php from the parent to the child folder, same location. On line 9 you’ll find:

    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home" class="logo"><?php vantage_display_logo(); ?></a>

    You can replace:

    <?php vantage_display_logo(); ?>

    with your own logo using an HTML img tag:

    http://www.w3schools.com/tags/tag_img.asp

  2. HunterGatherer 10 years, 4 months ago

    Thanks Andrew. Great way to do it. Easier just to upload it on each site.

    If I understand, some areas of the theme can be designated in a child theme’s “…/parts/” folder. Does this work for footers and more? What other “parts” are recognized this way?

    Thanks,

    HG

  3. Andrew Misplon Staff 10 years, 4 months ago

    For sure :)

    With the parts folder we’re just copying the layout of the parent theme. If you check out the parts folder in the parent you’ll find:

    footer.php
    masthead-logo-in-menu.php
    masthead.php
    menu-empty.php
    menu.php

    Any of those could be used in your child theme parts folder.

    From the WordPress Codex:

    Load a template part (other than header, sidebar, footer) into a template. Makes it easy for a theme to reuse sections of code and an easy way for child themes to replace sections of their parent theme.

    https://codex.wordpress.org/Function_Reference/get_template_part

  4. HunterGatherer 10 years, 4 months ago

    Thanks Andrew. Any answer on my question about menu gradient backgrounds?

    HG

  5. Andrew Misplon Staff 10 years, 4 months ago

    Sure, I’ll grab that now.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread