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.

Load logo by Url with Vantage Premium

Resolved 5 replies premiumthemetheme-vantage
Started · Latest reply by Andrew Misplon

Hi,

Any chance of adding a way to load a logo in Vantage Theme Settings using a URL as opposed to an upload. I’m trying to use one file across sites in a multisite installation test.

HG/mws

URL: http://www.previewresorts.com

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

5
  1. Andrew Misplon Staff

    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

    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

    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

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

    HG

  5. Andrew Misplon Staff

    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