Home>Support>Load logo by Url with Vantage Premium

Load logo by Url with Vantage Premium

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    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. 9 years, 8 months ago 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. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    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. 9 years, 8 months ago HunterGatherer

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

    HG

  5. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More