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.

Replace default functions in Vantage from child theme

11 years ago · Last reply by Andrew Misplon 11 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 11 years, 3 months ago

    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.

Have a different question or issue?

Start New Thread