Home>Support>Replace default functions in Vantage from child theme

Replace default functions in Vantage from child theme

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].

Hello.

As a happy user of Vantage (which I’ve purchased for myself, and got my boss to purchase it for our webagency) I wouldonly have 3 minor suggestions for the theme.

1, Wrap functions in if ( !function_exists() ) so it is possible to replace them from within a child theme like I have done on http://www.prowa.se/ to be able to exclude the included Font Awesome version to use a newer one from a plugin.

2. Enabling alignment of the logo when using the default masthead (left and center).

3. Put widget areas in the header when you use the default masthead, maybe 1 on each side of the logo if suggestion #2 is fulfilled and the logo is centered, or 1-2 on the right side when it’s aligned to the left.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

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

    Hi Izaac

    Thanks very much for your support and feedback. All super valid points that would make support and usage better. If you have a moment please consider posting this here: Page: Suggest a Feature and it’ll go directly through to the development team.

    Here are two things I can help with right now.

    1. It’s still possible to filter functions in a child theme, just a bit more complicated. Here is an example child theme filtering the posted_on function which renders categories and tags below blog posts.

    https://siteorigin.com/wp-content/uploads/2014/11/vantage-child-posted-in-function.zip

    The function I’m referring to is on line 30 of functions.php in the child theme. It’s filtering the vantage_get_post_categories function from line 294 of inc/template-tags.php.

    Here is some more on filter hooks: http://themeshaper.com/2009/05/03/filters-wordpress-child-themes/.

    2. Under Appearance > Customize > General you can currently center the logo. It’s default is left so that just leaves a right align option. The following Custom CSS could be used:

    /* Vantage Right Align Logo */
    
    header#masthead .hgroup .support-text {
    left: 0;
    }
    
    header#masthead .hgroup #header-sidebar {
    left: 0;
    }
    
    header#masthead .hgroup .logo {
    float: right;
    }
    
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