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.

Help with changing one function in Vantage Child Theme

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

Hi, I purchased the Premium Vantage theme and love it however in my attempt to use a full width (1080px) logo I found that there is a function preventing it from displaying at full width:

if ( ! isset( $vantage_site_width ) ) {
		$vantage_site_width = siteorigin_setting('layout_bound') == 'full' ? 1080 : 1010;

I have been unsuccessful at creating a functions.php for my child theme that will change that function to allow the full 1080 as below:

if ( ! isset( $vantage_site_width ) ) {
		$vantage_site_width = siteorigin_setting('layout_bound') == 'full' ? 1080 : 1080;

Would you be able to provide the code I’d need for a child functions.php to allow?

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

Need fast email support? Get SiteOrigin Premium

Replies

4
  1. Izaac Johansson

    None of the functions in Vantage are wrapped in the if( !function_exists()) clause, which is why declaring an override function doesn’t work in a child theme. I’ve posted about this issue here: Thread: Replace default functions in Vantage from child theme

  2. Andrew Misplon Staff

    Hi Thomas

    If you are running the fixed width layout bound option, you can handle a 1080px wide logo by inserting the following under Appearance > Custom CSS:

    /* Full header logo */
    header#masthead {
    padding: 0 !important;
    }
    header#masthead .hgroup {
    padding: 0 !important;
    }
    header#masthead .hgroup .logo img {
    width: 1080px;
    }
    .main-navigation {
    margin: 0 !important;
    }
    body.responsive header#masthead .hgroup .support-text, body.responsive header#masthead .hgroup #header-sidebar {
    display: none !important;
    }

    Isaac, thanks for your feedback. I’ll hop onto your thread ASAP. Some functions are wrapped, but I agree, they all should be.

  3. Thomas Cray

    Thank you! I added it to my child style, made some additional adjustments, and am good to go.

  4. Andrew Misplon Staff

    Super, glad that helped. All the best.

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