Home>Support>PageBuilder page no longer recognized as Home

PageBuilder page no longer recognized as Home

I have a trivial bit of code in my child theme’s header.php that displays a different metaslider depending on whether the page in question is_home() or not.

if (!is_home())
{
	echo do_shortcode("[metaslider id=746]");
}

Simple, right? After the update, the home page never triggers is_home as being true. This is made more clear by the following changes to my code:

if (is_home())
{
	vantage_render_slider();
}
else
{
	echo do_shortcode("[metaslider id=746]");
}

In this case, only the ELSE statement is ever executed.

Any ideas? The only thing that’s changed is updating Page Builder.

Thanks!

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, 2 months ago Greg Priday
    Hi, I Work Here

    Hi Strika

    Due to some new rules for themes hosted on WordPress.org, we needed to make changes to how Page Builder handles home pages so that we could make our themes comply with the new rules.

    You should be able to fix the issue by changing is_home() to is_front_page(). This should properly detect the new Page Builder home page.

    Please let me know if this works for you.

  2. 10 years, 2 months ago Strika Eins

    Absolutely beautiful; it works perfectly again!

    Thanks so much!

  3. 10 years, 2 months ago Greg Priday
    Hi, I Work Here

    Fantastic! Glad to have your site back on track.

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