Home>Support>Help with changing one function in Vantage Child Theme

Help with changing one function in Vantage 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].

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

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

    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. 10 years, 8 months ago Thomas Cray

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

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

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More